• Jonathan Kamens's avatar
    Fix faultly mbox message separators · 7cdd0712
    Jonathan Kamens authored
    Jonathan writes:
    I noticed an issue with mairix today when doing a search with output into an
    mbox file.
    
    Technically, the message separator for mbox files is “\n\nFrom “, i.e., there’s
    always supposed to be a blank line before the “From “ line, but the mbox being
    generated by mairix search is missing the blank line at the end of some
    messages, with the result that some programs that parse mbox files were missing
    some message breaks and glomming messages together.
    
    The attached patch fixes this by ensuring that there’s a blank line at the end
    of every message in the mbox.
    7cdd0712
search.c 38.8 KB