From mboxrd@z Thu Jan 1 00:00:00 1970 From: quanstro@coraid.com (erik quanstrom) Date: Mon, 21 Jul 2008 21:21:01 -0400 Subject: [9fans] Unescaped "From" in mail items In-Reply-To: <20080720072831.BA0FC1E8C1F@holo.morphisms.net> References: <20080720072831.BA0FC1E8C1F@holo.morphisms.net> Message-ID: <5f997b973ebc0e8224579226e3c6b04a@coraid.com> Topicbox-Message-UUID: ed3ee382-ead3-11e9-9d60-3106f5b1d025 > This is acme mail's fault. The easiest fix is to change > /acme/mail/src/mesg.c to do two writes: first use write > to write the header, and then use write2 to write the body > (write2 is in reply.c and knows how to escape From). > You'll probably also want to make write2 return whether > or not it succeeded. it's a bit odd that the mail readers (Mail, ned, imap4d) all use upas/fs to take care of reading mailboxes, but when appending a message to a mailbox, all three assume they know how mailboxes are structured. - erik