procmail
[Top] [All Lists]

forwarding archived mail problem

2009-04-22 11:20:50
Dear procmail community,

I don't know if this problem is procmail specific, but if possible, I
would greatly appreciate it if you can direct me to the correct mailing
list or give me some suggestions on it.

Basically I use this code snippet( I found it in a reply to one of my
post on procmail mailing list) to forward a users's archived mails to
his desired new gmail address.

 find .maildir/{cur,new} .maildir/.*/{cur,new} -type f -print | \               
                                                                 
     while read file                                                            
                                                                 
     do mail -s 'test mnovak forwarding' 
zhang(_dot_)zhengquan(_at_)gmail(_dot_)com < "$file"                            
                                         
     echo 'sending' "$file"                                                     
                                                                 
 done   

But now I got big problems. 

First, the mail subject is 'test mnovak forwarding' rather than the
right subjects. The headers are literally in the mail body because I
simply redirected them to mail command. I would want to forward those
emails to his gmail and it looks as if they were forwarded in a
sensible mailer.


Second, the attachment, I think the attachments are encoded as pure
texts after the mail body. I wonder how to forward the mail to gmail and
get the attachments correct.

Thank you very much for any suggestions!

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

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