Re: [Exim] Re: Lines: xxx mail header and maildir

Página Inicial
Delete this message
Reply to this message
Autor: Marc MERLIN
Data:  
Para: Miquel van Smoorenburg, Nico Erfurth, exim-users, Dave C.
Assunto: Re: [Exim] Re: Lines: xxx mail header and maildir
On Sat, Oct 19, 2002 at 07:34:19PM +0000, "Miquel van Smoorenburg" wrote:
> >My guess is that exim does add the line count, but it gets removed by
> >procmail and not re-added when procmail delivers to maildir :-(
>
> Procmail does not randomly remove header lines.


Indeed

=> |/usr/bin/procmail -m /home/merlin/.procmail/procmailrc_marcme (marcme at merlins.org) <marc at merlins.org> F=<merlin at merlins.org> R=system_aliases_merlin T=address_pipe_root S=398

I forgot that I was doing something special and runnign procmail by hand.
All better now.

On Sat, Oct 19, 2002 at 09:47:58PM +0200, Nico Erfurth wrote:
> >There really must be a \n at the end of that
>
> Mhhh, AFAIK it must be only there if you want to write multiple headers.


I added it, it can't hurt.

On Sat, Oct 19, 2002 at 02:42:23PM -0400, Dave C. wrote:
> Just as an aside, in my 8 years of running mailservers, I have never
> seen or used such a header. It must be some nonstandard thing your MUA
> needs.


I guess, mutt and elm are two.

On Sun, Oct 20, 2002 at 02:43:31PM +0800, Greg Matheson wrote:
> There's a procmail recipe on the Mutt FAQ page,
> http://www.fefe.de/muttfaq/faq.html:
>
>       With Maildir, all the messages have a length of 0!

>
>          That is because the headers don't contain a "Lines:"
>          header. You can use this procmail recipe to fix it
>          (courtesy of Liviu Daia and Alex Shnitman, who
>          continue to shorten this recipe):
>     :0 Bfh
>     * H ?? !^Lines:
>     * -1^0
>     *  1^1 ^.*$
>     | formail -A "Lines: $="

>
> Looks like it is counting the lines. I don't know if it works.


Right, I saw that one a few times, but since exim already had the line
count, I wanted to add it there.

Turns out, I had to add the line count in my address_pipe transport.

Thanks to all for the suggestions
Marc
--
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems & security ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/   |   Finger marc_f at merlins.org for PGP key