nmh-workers
[Top] [All Lists]

[Nmh-workers] 128 byte field name limit in NAMESZ breaks scan(1)

2008-10-17 17:33:25

Messages with very long envelope "From" lines break scan(1). This behavior
happens with nmh 1.3 and 1.2.

These messages are typically from mailing lists (Yahoo groups, in particular). 
The "Subject" field in the scan listing is displayed as just an asterisk (*).

When I run scan, I get errors like:

-----------------------------------------------------------------
scan: field name "From 
SRS0=+Q5m=2Z=returns(_dot_)groups(_dot_)yahoo(_dot_)com=sentto-xxxxxxxx-1162-1224269864-xxxxxxxxxxxxxxx=merctech(_dot_)com(_at_)bounce(_dot_)secureserver(_dot_)net"
 exceeds 127 bytes
??Format error (message 1764) in component 1
1764+ 10/17*
scan: field name "From 
SRS0=+Q5m=2Z=returns(_dot_)groups(_dot_)yahoo(_dot_)com=sentto-xxxxxxxx-1163-1224270102-xxxxxxxxxxxxxxx=merctech(_dot_)com(_at_)bounce(_dot_)secureserver(_dot_)net"
 exceeds 127 bytes
??Format error (message 1765) in component 1
-----------------------------------------------------------------

The warning comes from sbr/m_getfld.c, which uses the value of NAMESZ (set to
128 in h/mh.h).


I've increased NAMESZ to 192, which fixes scan(1), and nothing seems to have
blown up...but I'd appreciate some guidance on whether this is the correct 
solution and if there are unforeseen side-effects.


Thanks,

Mark




_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
http://lists.nongnu.org/mailman/listinfo/nmh-workers

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