On Wed, Apr 22, 2009 at 10:11:07PM +0200, Michelle Konzack wrote:
Am 2009-04-22 10:19:02, schrieb Zhengquan Zhang:
COUNT=1
for FILE in $(find .maildir/{cur,new} .maildir/.*/{cur,new} -type f)
do
echo "To: zhang(_dot_)zhengquan(_at_)gmail(_dot_)com
From: zhang(_dot_)zhengquan(_at_)gmail(_dot_)com
Date: $(date --rfc-822)
Subject: Forwarded Message ${COUNT}
This will make the subject line "Forwarded Message number". I would
like to have the forwarded message to show up in his gmail with the
original subject line.
Message-Id: <$(date --rfc-822)@localhost>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="foo-blub-blah"
--foo-blub-blah
Content-Type: text/plain
Forwarded Message ${COUNT}
--foo-blub-blah
Content-Type: message/rfc822
$(cat ${FILE})
--foo-blub-blah--
" |sendmail -oi -t
printf "%00i) sending %s\n" ${COUNT} ${FILE}
COUNT=$((COUNT+1))
done
Thanks Michelle, I will try this out except the subject line.
Regards,
--
Zhengquan
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail