tmailfs: plumb messages correctly even if body comes before header - plan9port - [fork] Plan 9 from user space
HTML git clone git://src.adamsgaard.dk/plan9port
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 478054e0a73fe1339b73710a8e6eabfa252c7d24
DIR parent a490444938eff6c12b7a7d7a5a8fcd4e68a101a1
HTML 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:
M src/cmd/upas/nfs/imap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/src/cmd/upas/nfs/imap.c b/src/cmd/upas/nfs/imap.c
t@@ -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 {
t@@ -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