kazu-yamamoto / Mew

Messaging in the Emacs World
http://www.mew.org/
Other
190 stars 51 forks source link

Check LF for IMAP FETCH #153

Closed tats closed 3 years ago

tats commented 3 years ago

cf. https://groups.google.com/g/mew-ja/c/6cTxl35J8s4

tats commented 3 years ago

I've improved the commit log with the reference, and force pushed.

kazu-yamamoto commented 3 years ago

Sorry but I cannot find your comment.

tats commented 3 years ago

The intention of "\n" is to certainly remove the matched line with "\n".

In mew-imap-filter(), if "\n" is not yet received, the problem occurs. Because the line without "\n" is removed, but the next "\n" will remain which causes blank line in the header.

See also the below removing part in mew-imap-filter().

       (when bytes
     (goto-char (point-min))
     (while (and (looking-at "^\\*") (= (forward-line) 0))
       (delete-region (point-min) (point))))
kazu-yamamoto commented 3 years ago

Merged. Thank you for your contribution!