procmail
[Top] [All Lists]

Re: how to make procmail generate content-length?

1996-03-11 17:49:30
Joe Pruett <joey(_at_)teleport(_dot_)com> wrote:
we use procmail for local delivery, and would like to get it to generate
the content-length header, if one doesn't exist.  mailtool at least gets
confused and merges messages together if there is no message body.  i
can't seem to find a way to make that happen, nor can i seem to figure
out a way to make a procmailrc rule via formail to do it, either.

All you need to do is:
1. Make sure that procmail is started without the -Y flag.
2. Either, in your sendmail.cf, insert:

        H?l?Content-Length: 0000000000

   Or (slightly less efficient), insert the following recipe
   in your /etc/procmailrc file:

        :0 hfw
        * !^Content-Length:
        | /usr/bin/formail -a "Content-Length: 0000000000"

Procmail will take care of any necessary magic.
-- 
Sincerely,                                                          
srb(_at_)cuci(_dot_)nl
           Stephen R. van den Berg (AKA BuGless).

The eleventh commandment: Thou shalt not re-curse!

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