mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-30 12:33:37 +08:00
11 lines
308 B
Fish
11 lines
308 B
Fish
|
# start smtp debugging server, can pass an option port parameter. Default to 1025
|
||
|
function pysmtp
|
||
|
if test -n "$argv"
|
||
|
set SMTPPORT $argv
|
||
|
else
|
||
|
set SMTPPORT 1025
|
||
|
end
|
||
|
echo "smtp server started on port" $SMTPPORT;
|
||
|
python -m smtpd -n -c DebuggingServer localhost:$SMTPPORT;
|
||
|
end
|