aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/upas
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2008-12-06 18:54:02 -0800
committerRuss Cox <rsc@swtch.com>2008-12-06 18:54:02 -0800
commit478054e0a73fe1339b73710a8e6eabfa252c7d24 (patch)
tree48d21f7af2e9eb8e5d17f11fa622cf193e82fd9b /src/cmd/upas
parenta490444938eff6c12b7a7d7a5a8fcd4e68a101a1 (diff)
downloadplan9port-478054e0a73fe1339b73710a8e6eabfa252c7d24.tar.gz
plan9port-478054e0a73fe1339b73710a8e6eabfa252c7d24.tar.bz2
plan9port-478054e0a73fe1339b73710a8e6eabfa252c7d24.zip
mailfs: plumb messages correctly even if body comes before header
Diffstat (limited to 'src/cmd/upas')
-rw-r--r--src/cmd/upas/nfs/imap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/upas/nfs/imap.c b/src/cmd/upas/nfs/imap.c
index 64ffeb17..757bf0ba 100644
--- 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