2 messages in net.sourceforge.lists.courier-maildrop[maildropl] maildrop 1.3.7 adds a bla...
FromSent OnAttachments
David LaightFeb 12, 2002 7:36 am 
Sam VarshavchikFeb 12, 2002 2:43 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[maildropl] maildrop 1.3.7 adds a blank line before generated 'From ' linesActions...
From:David Laight (ds@l8s.co.uk)
Date:Feb 12, 2002 7:36:45 am
List:net.sourceforge.lists.courier-maildrop

This is a littel problem I found using maildrop under NetBSD.

(NetBsd bug pkg/15568)

If maildrop has to create a 'From ' line at the start of a mail item then it erronously includes a blank line before it.

This causes some MUA (eg mutt) to complain that /var/mail/xyz isn't a valid mailbox.

Even the maildrop man page says: At least one mail program writes an empty line before a From_ header when saving a message into a file. maildrop ignores empty lines at the beginning of messages.

How-To-Repeat:

Use maildrop to deliver mail that doesn't have a 'From ' line into an empty /var/mail/xyz mailbox then try to read the mail using mutt.

Fix:

in pkgsrc/mail/maildrop/work/maildrop-1.3.7/maildrop/formatmbox.C remove the \n from the "\nFrom " in FormatMbox::GetfromLine.

*** formatmbox.C Sun Feb 10 12:41:58 2002 --- formatmbox.C.issue Sun Feb 10 12:41:52 2002 *************** *** 42,48 ****

time(&tm);

! tempbuf="From "; tempbuf += maildrop.msginfo.fromname; tempbuf += ' ';

--- 42,48 ----

time(&tm);

! tempbuf="\nFrom "; tempbuf += maildrop.msginfo.fromname; tempbuf += ' ';

David