procmail
[Top] [All Lists]

Re: procmailrc, formail -a to add charset/encoding to missing out mails.

2006-02-28 01:30:27
Thanks,

I've managed to do it with fwh as flags :>

Thanks for the pointers though :)

On Tue, February 28, 2006 02:18, Google Kreme wrote:

On 27 Feb 2006, at 16:18 , Ricardo Matias wrote:

:0 c
* !^Content-Type:
| formail -a "Content-Type: text/plain;charset=iso-8859-15"

:0 c
* !^Content-Transfer-Encoding:
| formail -a "Content-Transfer-Encoding: 8 bit"

You are passing the mails off to a filter but there's no f or w flag:

:0 cfw
* !^Content-Type:
| formail -a "Content-Type: text/plain;charset=iso-8859-15"

:0 cfw
* !^Content-Transfer-Encoding:
| formail -a "Content-Transfer-Encoding: 8 bit"

But this will give you a total of THREE copies of an email without
either header.  I suspect what you want is:

:0 c
* !^Content-Type:
* !^Content-Transfer-Encoding:
{
   :0 fw
   * !^Content-Type:
   | formail -a "Content-Type: text/plain;charset=iso-8859-15"

   :0 fw
   * !^Content-Transfer-Encoding:
   | formail -a "Content-Transfer-Encoding: 8 bit"
}


--
You try to shape the world to what you want the world to be. Carving
your name a thousand times won't bring you back to me. Oh no, no I
might as well go and tell it to the trees. Go and tell it to the
trees, yeah.



____________________________________________________________
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



-- 
Eat right, stay fit, die anyway.


____________________________________________________________
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>