procmail
[Top] [All Lists]

Re: Re: forwarding archived mail problem

2009-04-23 10:47:04
Am 2009-04-22 15:40:00, schrieb Zhengquan Zhang:
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. 

SUBJECT=$(formail -czx Subject: <${FILE})

and then insert

    Subject: ${SUBJECT}

instead of

    Subject: Forwarded Message ${COUNT}


Thanks, Greetings and nice Day/Evening
    Michelle Konzack
    Systemadministrator
    24V Electronic Engineer
    Tamay Dogan Network
    Debian GNU/Linux Consultant

-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
<http://www.tamay-dogan.net/>                 Michelle Konzack
<http://www.can4linux.org/>                   Apt. 917
<http://www.flexray4linux.org/>               50, rue de Soultz
Jabber linux4michelle(_at_)jabber(_dot_)ccc(_dot_)de           67100 
Strasbourg/France
IRC #Debian (irc.icq.com)                     Tel. DE: +49 177 9351947
ICQ #328449886                                Tel. FR: +33  6  61925193
____________________________________________________________
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

<Prev in Thread] Current Thread [Next in Thread>