0
0
mirror of https://github.com/PHPMailer/PHPMailer.git synced 2024-09-20 01:52:15 +02:00
PHPMailer/test/runfakepopserver.sh
2024-04-01 20:48:10 +02:00

13 lines
295 B
Bash
Executable File

#!/usr/bin/env bash
set -xv
# Run the fake pop server from bash
# Defaults to port 1100 so it can be run by unpriv users and not clash with a real server
# Optionally, pass in a port number as the first arg
rm -f fifo
mkfifo fifo
nc -l ${1:-1100} <fifo |bash ./fakepopserver.sh >fifo
rm fifo