plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit 478054e0a73fe1339b73710a8e6eabfa252c7d24
parent a490444938eff6c12b7a7d7a5a8fcd4e68a101a1
Author: Russ Cox <rsc@swtch.com>
Date:   Sat,  6 Dec 2008 18:54:02 -0800

mailfs: plumb messages correctly even if body comes before header

Diffstat:
Msrc/cmd/upas/nfs/imap.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cmd/upas/nfs/imap.c b/src/cmd/upas/nfs/imap.c @@ -1495,6 +1495,7 @@ xmsgenvelope(Msg *msg, Sx *k, Sx *v) { hdrfree(msg->part[0]->hdr); msg->part[0]->hdr = parseenvelope(v); + msgplumb(msg, 0); } static struct { @@ -1612,7 +1613,6 @@ xmsgbody(Msg *msg, Sx *k, Sx *v) msg->box->maxseen = msg->imapid; if(msg->imapuid >= msg->box->uidnext) msg->box->uidnext = msg->imapuid+1; - msgplumb(msg, 0); } static void