From: Carl Worth Date: Mon, 19 Oct 2009 23:38:44 +0000 (-0700) Subject: Rework message parsing to use getline rather than mmap. X-Git-Tag: 0.1~826 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=371091139abb00e0eb6b17cd19311e2a30fd7470;hp=371091139abb00e0eb6b17cd19311e2a30fd7470;ds=sidebyside Rework message parsing to use getline rather than mmap. The line-based parsing can be a bit awkward when wanting to peek ahead, (say, for folded header values), but it's so convenient to be able to trust that a string terminator exists on every line so it cleans up the code considerably. ---