Closed Bug 472236 Opened 17 years ago Closed 17 years ago

can't save attachment (File attachment with a '#' in the name, IMAP only)

Categories

(MailNews Core :: Networking: IMAP, defect)

x86
Windows Vista
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 370951

People

(Reporter: wsmwk, Unassigned)

Details

(Keywords: regression)

Attachments

(2 files)

can't save pdf attachment with message on imap account 20081104 Shredder/3.0b1pre. works with message local folder. saves fine on imap account with TB2.0.0.12 and version 3.0a1pre (2008012003)
Flags: blocking-thunderbird3?
Note: I have an IMAP4 mail account on Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b3pre) Gecko/20090105 Shredder/3.0b2pre and can save email attachments just fine. Just tried a PDF. I realize the poster is making a note that this bug is on x86/Windows/Vista and that he is using an older version of Shredder as well.
Attached file imap log
I failed to state is also fails today's nightly Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1b3pre) Gecko/20090105 Shredder/3.0b2pre attached log includes login to wsm0 account click just one message right click .pdf attachment and save I don't see anything in the log, but perhaps I missed something
WFM on linux/trunk.
Attachment #355511 - Attachment mime type: application/octet-stream → text/plain
(In reply to comment #2) > click just one message > right click .pdf attachment and save Do you mean that 20090105 build also didn't save the PDF attachment to local disk by this operation? > I don't see anything in the log, but perhaps I missed something Do you enable Syncing&Disk Space/Message Synchronizing? Is Inbox chosen as "offline use folder" in "Advanced" of the option? When both=yes, I think no log which relates to download is normal, if all mail data is already downloaded into local mail folder file for offlien use. If "save to disk" of 20090105 build does nothing, and if Message Synchronizing is enabled, can next be a workaround? 1. Check file size of offline mail data file(file with no extension). Greater than 2GB or 4GB? 2. Delete Inbox(not Inbox.msf) under mail directory for the IMAP account. 3. Restart Tb, Rebuild-Index(Tb forgets fact that Tb downloaded), and check mail folder content. 4. Folder properties/"Download Now", or File/Offline/Download&Sync Now.
started in safe mode - if I open the message from this saved file, thunderbird will save the attachment. fails when saving from 3pane or standalone message window. imap log looks good - so not an imap problem yes, it fails in 20090105 probably unrelated, I do get two messages in the console upon opening the .eml file Error: [Exception... "'Failure' when calling method: [nsICommandLineHandler::handle]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "<unknown>" data: no] Error: uncaught exception: [Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIMsgDBView.hdrForFirstSelectedMessage]" nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)" location: "JS frame :: chrome://messenger/content/mailWindowOverlay.js :: UpdateJunkButton :: line 1651" data: no]
Wayne, is it possible the imap offline store for the message is missing the complete attachment? If you do a view message source for the message, does it look like it has the whole attachment?
(In reply to comment #5) > .eml message with pdf file attachment > fails when saving from 3pane or standalone message window. I put the mail in local mail folder of a dummy POP3 account, adding "From - ..." at top of the mail data. Many errors could be observed with Tb trunk 20090105 build. (Case-1) Display Attachments Inline=On, both at message pane of 3pane and standalone window PDF is displayed as attachment, because the PDF is a part in message/rfc822 part(attached mail to main mail) and PDF is not displayable. (Case-1-A) Open attachment of ".eml" => blank window, error in Error Console (same error message as yours) (Case-2-B) Open attachment of ".pdf" or double click => open/save dialog, error in Error Console (Case-2) Display Attachments Inline=Off, both at message pane of 3pane and standalone window PDF is not displayed as attachment, because the PDF is a part in message/rfc822 part(attached mail to main mail). (Case-2-A) Open attachment of ".eml" => same result as (Case-1-A) It looks for me that above is new variation of phenomena of bugs listed in meta Bug 269826 Comment #0. However, I couldn't observe "save error" when an attachment is displayed as attachment with icon/filename in attachemnt box. In any case, "save via context menu" worked well. When PDF, both "open via open dialog" and "save via open dialog" also worked well. "save error" looks for me to be IMAP unique issue. As David says, I also suspect incomplete/damaged data in offline store or partial download case. I'll try to test IMAP case, by uploading the mail to Gmail IMAP, with offline-use=yes & offline-use=no.
David, view source shows the whole deal. (I also can't save this on a 3rd PC) I received two messages with similar (not same) pdf from the same person. I can save the pdf from the first message, body starts with Content-Type: multipart/mixed; boundary="part000_bndry_902B69979325F000" This is a multi-part message in MIME format. --part000_bndry_902B69979325F000 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit and pdf starts with --part000_bndry_902B69979325F000 Content-Type: application/octet-stream; name="Quote_MSS0463.pdf" Content-Transfer-Encoding: base64 ======================================================================== the second message which has the pdf I can't save starts with Content-Type: multipart/mixed; boundary="----=_NextPart_000_624F_01C96F4B.1D5FAE90" X-Mailer: Microsoft CDO for Windows 2000 Content-Class: urn:content-classes:message Importance: normal This is a multi-part message in MIME format. ------=_NextPart_000_624F_01C96F4B.1D5FAE90 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Description: body xxxxxxx body xxxxxxxxxxxxxxxxxxx ------=_NextPart_000_624F_01C96F4B.1D5FAE90 Content-Type: application/octet-stream; name="CDWGQuote#BFRV964.pdf" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="CDWGQuote#BFRV964.pdf"
(on vista laptop) version 3.0a2pre (2008060403) 20080412, 20080217, 20080203, 20070601, 20070101 save pdf as a 0 byte file, and pdf icon doesn't show in the attachment 2 [review].0.0.13 successfully saves it, and it's openable. so there are two points at which the behavior changes 1. some time between 2008060303 and now, it doesn't even save a 0 byte file 2. some time before 20070101 it stopped saving the full file
(In reply to comment #5) > .eml message with pdf file attachment I uploaded the mail data to Gmail IMAP, and problem was reproduced. When "Save As" and "Save All", nothing was created in save target folder. File name change(remove of "#") at file picker dialog didn't help. When "#" is removed from name/filename parameter value, problem disappeared. > name="CDWG Quote #BFRV964 - .eml" > filename="CDWG Quote #BFRV964 - .eml" > name="CDWGQuote#BFRV964.pdf" > filename="CDWGQuote#BFRV964.pdf" Dup of Bug 370951?
looks like dupe. narrowed to regression range of 20061127-20061201
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
narrowed in bug 370951 to 20061127-20061128
Summary: can't save attachment → can't save attachment (File attachment with a '#' in the name, IMAP only)
Flags: blocking-thunderbird3?
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: