oh-my-fish/plugins/python/pysmtp.fish

12 lines
292 B
Fish
Raw Normal View History

2013-05-21 21:42:17 +00:00
# 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;
2013-05-21 21:42:17 +00:00
end