nmh-workers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: bergman
Subject: [Nmh-workers] 128 byte field name limit in NAMESZ breaks scan(1)
Date: Fri, 17 Oct 2008 17:33:00 -0400

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 address@hidden" exceeds 127 bytes
??Format error (message 1764) in component 1
1764+ 10/17*
scan: field name "From address@hidden" 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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]