Created
December 1, 2011 10:24
-
-
Save xianhuazhou/1415626 to your computer and use it in GitHub Desktop.
a fake sendmail script for testing mail related applications, can replace /usr/sbin/sendmail
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# chmod 666 /var/mails.txt | |
# all mails will be stored in this file | |
MAILS_FILE='/var/mails.txt' | |
while read x | |
do | |
echo $x >> $MAILS_FILE | |
done | |
echo "----------------------" >> $MAILS_FILE | |
echo >> $MAILS_FILE | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment