procmail
[Top] [All Lists]

Re: formail header concatenation

2009-01-24 13:06:06
Dallman Ross wrote:

[big snip]
If you think you can prove something different, please let's see it.
Use my test rcfile shown above, if you want.

My suspicion is ther Per's terminal is not showing him tab chars
correctly, is all.

Hi Dallman

I didn't discover this on my terminal, but because a regex failed to
pick out the right bits of a formail concatenated string.  

Here's an excerpt of a test email:  http://jessen.ch/files/testemail2

Run this

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


0000000   R   e   c   e   i   v   e   d   :       f   r   o   m       d
0000010   i   n   g   b   a   t   .   e   x   a   m   p   l   e   .   c
0000020   o   m       (   d   i   n   g   b   a   t   .   e   x   a   m
0000030   p   l   e   .   c   o   m       [   2   1   .   2   1   .   2
0000040   1   .   2   1   ]   )   b   y       s   r   v   1   .   e   x
0000050   a   m   p   l   e   .   c   o   m       (   P   o   s   t   f
0000060   i   x   )       w   i   t   h       E   S   M   T   P       i
0000070   d       1   7   0   9   C   4   D   0   D   3   f   o   r
0000080   <   c   a   t   c   h   t   h   i   s   m   a   i   l   @   j
0000090   e   s   s   e   n   .   c   h   >   ;       T   u   e   ,
00000a0   2   0       J   a   n       2   0   0   9       1   0   :   1
00000b0   2   :   4   8       +   0   1   0   0       (   C   E   T   )
00000c0  \n
00000c1


In line 4, you'll notice that 'by' is not preceded by any whitespace. 
In line 7, the same goes for 'for'. 


/Per

____________________________________________________________
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