nmh-workers
[Top] [All Lists]

Re: Messages change when I inc and then packf

2020-07-26 09:18:48
Hi David,

What's the best way to fix?  If no address, wait to see if the
next line(s) is/are continuation lines?

Handle the field spread over multiple physical lines?
Also, cope with the field name in a case-insensitive manner.

- Get a line.
- Loop:
    - Get a character.
    - If that's the white-space which marks a continuation line then
        - Append it.
        - Get a line and append it.
    - Else
        - Unget the character.
        - Break.

Or, can "From " have a continuation line?

No, it's not a header field but a bit of mbox structure, and mbox
doesn't allow it to be continued.

Does a timestamp have to be added if not present?  It isn't with
X-Envelope-From.

RFC 4155, App. A, says a UTC time-stamp has to be present so the
omission looks like a bug.  https://tools.ietf.org/html/rfc4155

-- 
Cheers, Ralph.

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