From 811626ef2f066b437ce57a565d8a1fe0d82a66f1 Mon Sep 17 00:00:00 2001 From: "jefft%netscape.com" Date: Wed, 8 Sep 1999 20:34:12 +0000 Subject: [PATCH] always want the dummy envelope header when save message to the disk --- mailnews/local/src/nsMailboxProtocol.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mailnews/local/src/nsMailboxProtocol.cpp b/mailnews/local/src/nsMailboxProtocol.cpp index 299d694cfed1..ff35d5a83a98 100644 --- a/mailnews/local/src/nsMailboxProtocol.cpp +++ b/mailnews/local/src/nsMailboxProtocol.cpp @@ -262,7 +262,11 @@ nsresult nsMailboxProtocol::LoadUrl(nsIURI * aURL, nsISupports * aConsumer) // create a temp file to write the message into. We need to do this because // we don't have pluggable converters yet. We want to let mkfile do the work of // converting the message from RFC-822 to HTML before displaying it... - ClearFlag(MAILBOX_MSG_PARSE_FIRST_LINE); + if (m_mailboxAction == + nsIMailboxUrl::ActionSaveMessageToDisk) + SetFlag(MAILBOX_MSG_PARSE_FIRST_LINE); + else + ClearFlag(MAILBOX_MSG_PARSE_FIRST_LINE); m_tempMessageFile->OpenStreamForWriting(); m_nextState = MAILBOX_READ_MESSAGE; break;