Skip to content

Instantly share code, notes, and snippets.

@xianhuazhou
Created December 1, 2011 10:24
Show Gist options
  • Save xianhuazhou/1415626 to your computer and use it in GitHub Desktop.
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
#!/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