procmail
[Top] [All Lists]

Re: formail header concatenation

2009-01-25 06:27:35
On Sun, Jan 25, 2009 at 09:57:55AM +0100, Per Jessen wrote:

Per Jessen wrote:

Dallman Ross wrote:

[snip dallmans test which didn't show the problem]
I think maybe the package you have on your system comes
broken, then.  That's all I can think of.  Try grabbing the
formail source and recompiling it yourself.

It's certainly a possibility I'll have to try.

You were right - compiling from source produced a formail that
works as expected.  I'll be opening a bugreport on openSUSE
instead. openSUSE has had the wrong version/code since 10.0.

Excellent.  Very glad we found the problem.  I'm surprised
it's been out there in the wild like that for some long while.


By the way, when I was being so overly clever revising your
formail command-line test to make it more efficient, I was
still less clever than I could have been. You had written: 

Run this

formail -c <testemail2 | grep ^Received | head -1 | hexdump -c

And I wrote, in response, this comment:

we don't actually have to grep Received lines to extract
only Received lines using formail.  We can use formail to extract
the Received lines. :-)  Saves us the bother of a grep, anyway.

   2:44am [~/Mail] 610[0]> formail -c -X Received: < per | sed 1q


But I shouldn't have stopped there.  We don't need sed, either, for
this:

   12:13pm [~/Mail] 514[0]> formail -c -u Received -X Received < per  
  Received: from mail2.panix.com (mail2.panix.com [166.84.1.73])  by 
mailbackend.panix.com (Postfix) with ESMTP id 27DD6D5C0      for 
<dman+nomo(_at_)panix(_dot_)com>; Sat, 24 Jan 2009 13:06:06 -0500 (EST)


More empirical proof that brains work even better at noon than at
2:40 AM after a night out on the town. :-)

Dallman (in Wiesbaden)
____________________________________________________________
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