Closed Bug 935588 Opened 11 years ago Closed 5 years ago

Attachments seem to be corrupted even tho they are not.

Categories

(Thunderbird :: Folder and Message Lists, defect)

24 Branch
x86_64
Windows 7
defect
Not set
major

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: seo, Unassigned)

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0 (Beta/Release)
Build ID: 20131025151332

Steps to reproduce:

Hard to say, read an e-mail.


Actual results:

Whenever i open some of e-mails some of them say that attachment is empty. When looking at code attachment is in base64 format. Client can't read it.
Webmail service can read and show it without any problem.

There is also problem in answering those messages when attachment is embedded into text. for example image in text. When replying image is not shown, only small X informing that can't find picture. When sending e-mail it hangs on "adding attachment" forever. You got to click on cancel, go to message, remove attachment form text then send again.


Expected results:

Being able to open attachments from e-mail messages
Severity: normal → major
What Content-Type is set for the base64 attachmnt in the mail?
No Content-Type: header? Or Content-Type: header with no mime-type in it?

> When sending e-mail it hangs on "adding attachment" forever.
It sounds new variant of bug 532395 - cause of "attachment is empty" produces "attachment in replied mail is not found" condition.
Not sure what you mean. I uploaded source code of e-mail. If you need whole e-mail source tell me where to send it. Dont want to make it public, so i turncated files and text and left only headers.
(In reply to Grzegorz from comment #2)
> a sample of corrupted file (files got turncated)

What kind of phenomenon do you call "corrupted file (files got turncated)"?

Sample of which problem in your comment #0?
(a-1) Whenever i open some of e-mails some of them say that attachment is empty.
(a-2) Client can't read it.
(b-1) When replying image is not shown, only small X informing that can't find picture.
(b-2) When sending e-mail it hangs on "adding attachment" forever.
All problems occur at same time on this sample mail?

Is embed image in HTML(image/png with Cotent-Id:, which is pointed by <img src="cid: ... ">) shown normally when this sample mail is viewed?
Is all "image/png parts under multipart/related" correctly pointed by <img> tag in HTML?
Does all "<img src=cid: ...> in HTML" have corresponding "image/png with Content-Id: under multipart/related"? 
As for (b-2), same problem as bug 532395? (i.e. problem of bug 453196 or bug 817245)
Ok.

Hard to say if it's A-1 or B-2 answer. Attachments are not displayed correctly. And when replying to e-mail with this error it gets an "adding attachment forever bug".

The above is applied to attachment of images that are in-text. However, attachments of files that are meant for me to open (like rar and psd files) say "attachment is empty". So all attachments seem to be unreadable, even tho they're not corrupted.

On the other hand, images that are linked to webserver (src="http://a.com/img.png") display correctly.

For example (wont turncate names this time):

More info about source:

<td style="border-top: 2px solid #d7df21;"
                  valign="bottom" width="280"><img
                    src="cid:part2.04040900.03010003@kgcvisuals.pl"
                    align="bottom" border="0">
                </td>

cid:part2.04040900.03010003@kgcvisuals.pl

A file linked to it does not display. It displays "broken image" icon like when File is not found. (image is not corrupted, i entered it in <img src="data:image/png;base64, tag to check if it displays)

--------------050307070904000203080807
Content-Type: image/png;
 name="nowa_stopka_logo.png"
Content-Transfer-Encoding: base64
Content-ID: <part2.04040900.03010003@kgcvisuals.pl>
Content-Disposition: inline;
 filename="nowa_stopka_logo.png"

iVBORw0KGgoAAAANSUhEUgAAAQ4AAABRCAIAAAHbe+/yAAAAGXRFWHRTb2Z0d2FyZQBBZG9i
[...........]
NoLbBumc4+dmp+BLcut98OH3BHxR8cEHX1R88MEXFR988EXFBx98UfHBB19UfPDh6w3/DxRO
0J/Xmz11AAAAAElFTkSuQmCC
--------------050307070904000203080807
(In reply to Grzegorz from comment #4)
> However, attachments of files that are meant for me to open (like rar and psd files)
> say "attachment is empty". So all attachments seem to be unreadable, even
> tho they're not corrupted.

I can see following only in sample mail, and "attachment part under multipart/mixed" is one image/jpeg only(all image/png part is placed under multipart/related under multipart/alternative under multipart/mixed). 
> Content-Type: multipart/mixed;
>    Content-Type: multipart/alternative;
>       Content-Type: text/plain; charset=ISO-8859-2; format=flowed
>       Content-Type: multipart/related;
>          Content-Type: text/html; charset=ISO-8859-2
>          Content-Type: image/png
>    Content-Type: image/jpeg;
Does "attachment is empty" occur on the last image/jpeg part in sample mail you attached?
Or "attachment is empty" occurs on all image/png parts or some of them?
If latter, it should occur on "image/png part which is not pointed by <img>"... 
(Because non-used part under multipart/related is not shown by HTML rendering, Tb shows it in attachment pane as if "Attachment" in order to provide a way to save the non-used part. This is never "Real Attachment", even if it's shown in attachment pane. And, if image/png part is correctly pointed, it shoud be rendered as embed image of HTML mail and it shouldn't be shown in attachment pane.)

> <img ... src="cid:part2.04040900.03010003@kgcvisuals.pl"
> Content-Type: image/png;
> Content-ID: <part2.04040900.03010003@kgcvisuals.pl>
> Content-Disposition: inline;
> A file linked to it does not display. It displays "broken image" icon
> like when File is not found. (image is not corrupted, 

Other concerns - reversed order of http-equiv and content in meta, Inline.
> <head> <meta content="text/html; charset=ISO-8859-2" http-equiv="Content-Type"> </head>
Bug 594646 is already fixed in Tb 24, but it may still produce somthing wrong in parser.
Do you see your problem with "no <meta> tag in HTML" or with <meta http-equiv="..." content="...">
> Content-Disposition: inline;
If problm occurs on all image/png part, it may be caused by "Content-Disposition: inline;".
Do you see your problem with "no Content-Disposition: header"?
First of all I allowed myself to e-mail you with more details.

I sent you .eml file. But later opened it and it displayed just fine (with all images). Mails that are in inbox do not display correctly.

if .eml works fine i do not know how to edit Content-disposition header.

Error applies to ALL attachments in mail. All that are embeded in text or attached as files.
(In reply to Grzegorz from comment #6)
> But later opened it and it displayed just fine (with all images). 
> Mails that are in inbox do not display correctly.

POP3 mail folder or "Local Folders"? Or IMAP folder? 

> Error applies to ALL attachments in mail. All that are embeded in text or attached as files.

Do you see any diffrence among following cases?
                              (1-a)   (1-b)   (2-a)    (2-b)    (3-a)      (3-b) 
 View/Messae Body As       :   Plain   Plain   Simple   Simple   Original   Original
                                Text    Text    HTML     HTML     HTML       HTML
 Display Attacments Inline :    O       X       O        X        O          X       
 (O=Checked, X=Unchckd)
Note:
 - in any casse, image/jpeg under top level multipart/mixed should be shown in attachment
   pane always regardless of view mode.
 - in any (?-b) case, image/jpeg under top level multipart/mixed should not be rendered
   and displayed in inline.
 - when (1-?), 
   "image/png under multipart/related under multipart/alternative under multipart/mixed"
   is better shown in atatchment pane as if attachment, because it's not displayed.
 - when (2-?) and (3-?), if image/png part is not used by <img src=cid:...>,
   "image/png under multipart/related under multipart/alternative under multipart/mixed"
   should be shown in atatchment pane as if attachment, because it's not displayed.

Unable to see any of your problems on the .eml attachment in the sent mail to me, with "View/Message Body As/xxxx HTML" mode.
- Save the .eml attachment to .eml file, then Drag&Drop the .eml file to thread paane of
  a local mail folder in Tb 24.1.0 on Win-XP. (import of .eml fil by Drag&Drop)
- Open Saved Message... of the saved .eml file.
I could see following only in Tb 24.1.0 on Win-XP with the mail.
(A) View/Message Body As/Plain Text, Display Attachments Inline=Enaled(Cecked).
 - (i)  two .png (nowa_stopka_logo.png, face.png)
   (ii) one .jpg (eLiquids_layout_sub.jpg)
   are shown in attachment pane with file name + extension.
 - file size of saved .png of (i) is ZERO, if it's saved via "Save As".
   If I rememer correctly, this is already reported problem.
(B) View/Message Body As/Plain Text, Display Attachments Inline=Disabled(Unchecked).
  - 19 attachments are shown in attachment pane.
    - (i) two .png, and (ii) one .jpg, which are shown in case (A)
    - (iii) additional 16 files with file name = Part.1.1.2.?? where ?? is 1 to 16
 - file size of saved .png of (i) is ZERO, if it's saved via "Save As", as seen in (A).
 - no file size problem on (iii).
   if file extrnsion=.png is added to saved file, it's normmaly displayed by IrfanView.
In any case, no problem on (ii), image/jpeg in multipart/mixed.

Following is summay of mail. "Where does 19 attachments come from?".
>  IMG tag in HTML                                       Content-ID                                            mime-type, Content-Disposition, filename, name
> 
> (00) <img src="green.gif" border="0">  No relevant content in mail
> (01) <img src="cid:part12.04060205.00080606@kgcvisuals.pl"> Content-ID: <part12.04060205.00080606@kgcvisuals.pl>     (image/png, no filename/name, no Content-Dispostion:)
> (02) <img src="cid:part16.05050805.04010800@kgcvisuals.pl"> Content-ID: <part16.05050805.04010800@kgcvisuals.pl>     (image/png, no filename/name, no Content-Dispostion:)
> (03) <img src="cid:part19.02010806.08020508@kgcvisuals.pl"> Content-ID: <part19.02010806.08020508@kgcvisuals.pl>     (image/png, no filename/name, no Content-Dispostion:)
> (04) <img src="cid:part2.04040900.03010003@kgcvisuals.pl" > Content-ID: <part2.04040900.03010003@kgcvisuals.pl>   image/png; inline; filename="nowa_stopka_logo.png" name="nowa_stopka_logo.png"      
> (06) <img src="cid:part22.04090008.02070705@kgcvisuals.pl"> Content-ID: <part22.04090008.02070705@kgcvisuals.pl>     (image/png, no filename/name, no Content-Dispostion:)
> (06) <img src="cid:part23.01030907.05060908@kgcvisuals.pl"> Content-ID: <part23.01030907.05060908@kgcvisuals.pl>     (image/png, no filename/name, no Content-Dispostion:)
> (07) <img src="cid:part25.09030705.05060209@kgcvisuals.pl"> Content-ID: <part25.09030705.05060209@kgcvisuals.pl>     (image/png, no filename/name, no Content-Dispostion:)
> (08) <img src="cid:part28.01080006.04090504@kgcvisuals.pl"> Content-ID: <part28.01080006.04090504@kgcvisuals.pl>     (image/png, no filename/name, no Content-Dispostion:)
> (09) <img src="cid:part32.02090504.05030008@kgcvisuals.pl"> Content-ID: <part32.02090504.05030008@kgcvisuals.pl>     (image/png, no filename/name, no Content-Dispostion:)
> (10) <img src="cid:part35.06070900.07060205@kgcvisuals.pl"> Content-ID: <part35.06070900.07060205@kgcvisuals.pl>     (image/png, no filename/name, no Content-Dispostion:)
> (11) <img src="cid:part39.02000208.01010406@kgcvisuals.pl"> Content-ID: <part39.02000208.01010406@kgcvisuals.pl>     (image/png, no filename/name, no Content-Dispostion:)
> (12) <img src="cid:part42.07060906.05040403@kgcvisuals.pl"> Content-ID: <part42.07060906.05040403@kgcvisuals.pl>     (image/png, no filename/name, no Content-Dispostion:)
> (13) <img src="cid:part49.00070908.07020602@kgcvisuals.pl"> Content-ID: <part49.00070908.07020602@kgcvisuals.pl>     (image/png, no filename/name, no Content-Dispostion:)
> (14) <img src="cid:part5.00000802.03080501@kgcvisuals.pl" > Content-ID: <part5.00000802.03080501@kgcvisuals.pl>   image/png; inline; filename="face.png"              name="face.png"                  
> (15) <img src="cid:part52.00030804.04010206@kgcvisuals.pl"> Content-ID: <part52.00030804.04010206@kgcvisuals.pl>     (image/png, no filename/name, no Content-Dispostion:)
> (16) <img src="cid:part57.07080004.06090300@kgcvisuals.pl"> Content-ID: <part57.07080004.06090300@kgcvisuals.pl>     (image/png, no filename/name, no Content-Dispostion:)
> (17) <img src="cid:part60.00080807.01050905@kgcvisuals.pl"> Content-ID: <part60.00080807.01050905@kgcvisuals.pl>     (image/png, no filename/name, no Content-Dispostion:)
> (18) <img src="cid:part9.09070000.06010103@kgcvisuals.pl" > Content-ID: <part9.09070000.06010103@kgcvisuals.pl>      (image/png, no filename/name, no Content-Dispostion:)
> (19) No  <img> in HTML,No Content-ID:, because of actual attachment in  none. image/jpeg;attachment; filename="eLiquids_layout_sub.jpg"  name="eLiquids_layout_sub.jpg"  attachment;

Phenomena looks;
- When View/Message Body As/Plain Text,
  if "image/png under multipart/related under multipart/alternative under multipart/mixed",
  which is correctly pointed by <img src=cid:> and Content-Id:,
  has filename in Content-Dispostion(or name in Content-Type:),
  the part is shown at attachment pane as if attachment,
  if "Display Attachments Inline" is enabled.
  And, if "Save As" is requested via attachmet pane, and perhaps if data is base64 encoded,
  file is not correctly saved, then "file size=0" occurs.  
- If the part doesn't have filename,
  it's shown at attchment pane as if attachmrnt only when "Display Attachments Inline" 
  is disabled, and the part is saved normally when "Save As" is requested.

> Whenever i open some of e-mails some of them say that attachment is empty.

What message was shown by whom on what kind of "attachment" upon what kind of action you did with what setting?
First of all, did you recive my e-mail? Along with a link to a movie?

Secondly. Problem seems to be ONLY WHEN MAIL IS on IMAP folder. I took problematic mail, RMB and took Copy to > (chose one of local folders). This same mail displayed without problem when it was copied to local folder. Attachments open without problem too.

Now, your test cases:
I Chose to display e-mails as HTML/Simple HTML and Plain Text. In all cases attachments are still unreadable. In plain text inline attachments show as file attachments in bottom and when I try to open them they cannot be read too.
In simple html mode I see broken images icons where images should be shown. This are not displayed in attachment pane like you suggested.


Plain text: When opening attachment it shows error: "This attachment looks empty. Contact with sender of this e-mail", inline elements dispay same message(i use Polish version of TB, dont know how original message looks like so its back-translated).
Simple HTML: : When opening attachment it shows error: "This attachment looks empty. Contact with sender of this e-mail" 
Normal HTML: : When opening attachment it shows error: "This attachment looks empty. Contact with sender of this e-mail"

When in Plain text mode 3 attachments show at bottom. One is eLiquids_layout_sub.jpg (486KB) nowa stopka logo.jpg and face.png nothing displayed about size.
In summary above file list it says "at last 486KB".

(if you're some kind of IRC or other chat/communicator maybe we could setup a TeamViewer session so you would be able to test it yourself?)
First of all, I must apologize about wrong report.
  "file size=ZERO" doesn't occur with sample mail you transferred to me.
  It was merely delay in refresh of file meta data at Windows Explorer.
  In any case, "any file shown in attachment pane" was saved as expected.

(In reply to Grzegorz from comment #8)
> did you receive my e-mail? Along with a link to a movie?
Sorry but I was not aware of link to video.
I saw it today, and I could guess that you viewed mail with "Message Body As/Original HTML" mode because I knew rendering result of the test mail, and I could know that your mail composition mode was "HTML mode". However, I couldn't understand what "text in shown dialog in video" does mean, even though I could guess it's "Attaching...".
And, I couldn't see message like "attachment is empty" in your video.
 
> Problem seems to be ONLY WHEN MAIL IS on IMAP folder.
> I took problematic mail, RMB and took Copy to (chose one of local folders).
> This same mail displayed without problem when it was copied to local folder. 
> Attachments open without problem too.

Even with IMAP folder, in both Offline-Use=On folder and Offline-Use=Off folder, I couldn't see any problem with sample mail in Tb 24.1.0 on Win-XP, except following issue.
  - Inconsistency in "showing non-displayed part as if attachment".
    - View/Message Body As/xxx HTML, any of "Display Attachments Inline".
      one image/jpeg only
    - View/Message Body As/Plain Text, Display Attachments Inline = Enabled.
      one image/jpeg, 2 image/png(with filename)
    - View/Message Body As/Plain Text, Display Attachments Inline = Disabled.
      one image/jpeg, 2 image/png(with filename) + 16 image/png(no filename)
    19 image sub parts :
       1  1KB-png(filename=face.png),   7  1KB-png(without filename, same as "face.png")
       1 12KB-png(filename=nowa...png), 7 12KB-png(without filename, same as "nowa...png")
       1 140KB-png(no filename), 1 238KB-png(no filename)
       1 487KB-jpeg(filename=eLiquids_layout_sub.jpg)
I couldn't see any difference from local mail folder case, except that it takes long to fetch image data and to render all image upon first mail viewing when mail in IMAP folder(I tested with Yahoo! IMAP).

Because 19 images are needed to be downloaded before HTML and image rendering, and because jpeg attachment is large, it takes long to fetch all image sub parts from IMAP server.

Is you IMAP folder Offline-Use=On? Or Offline-Use=Off? (Folder Properties/Synchronization)
If Offline-Use=On, was entire mail data already fetched and downloaded to Offline-store file by auto-sync?
If Offline-Use=Off, did you wait for fetch of all image sub parts upon mail viewing in HTML mode?

> Plain text: When opening attachment it shows error: "This attachment looks empty. Contact with sender of this e-mail", inline elements dispay same message

When Offline-Use=Off folder, if "View/Message Body As/Plain Text", image/png sub parts for HTML <img> is perhaps not fetched upon mail viewing, and if "Display Attachments Inline"=Disabled, image/jpeg part under multipart/mixed is not also fetched upon mail viewing.
This is applicable to viewing mail in Offline-Use=On folder, if entire mail data is not fetched yet by auto-sync.
IIRC, if fetch of sub parts is not done yet or is incomplete, some problems may occur when some special condition exist.
And, IIRC, I saw report of "This attachment looks empty" in other bug for IMAP case. 

Is all image/png and image/jpeg parts fetched from server normally upon mail viewing?
See bug 402793 comment #28 and get IMAP log, and check fetch commands issued by Tb using Text Editor by yourself.
Because mail data is logged by imap:5, and because all IMAP activities at all sessions with all IMAP accounts is logged, get log with new profile with single IMAP account only defined.

Sample procedure to get minimum IMAP log.
(1) create new Tb's profile, define a relevant IMAP account only.
(2) Disable Gloda(Tools/Options/Advanced/General, Global Search and Indexer)
(3) Set Offline-Use=Off to all folders
    (Server Settings, Synchronization, uncheck "Keep messages ... on this computer"
(4) Disable any automatic new mail check, new mail download
(5) Disable Junk setting, disable any automatic delete/purge
(6) Restart Tb, click Inbox and wait for mail list in Thread pane.
(7) Create two folders(call F-A, F-B),
    F-B : Folder Properties/Synchronization, set Offline-Use=On 
(8) Copy the problematic mail in Inbox to F-A and F-B.
(9) Without opening F-A/F-B after copy mail, terminate Tb.
(10) With IMAP logging enabled, restart Tb, and do test.
    View mail in F-A, try to save attachment shown in attachment pane, reply, ...,
    and terminate Tb, kep ackup of IMAP log.
(11) With IMAP logging enabled, restart Tb, and do test.
    Confirm message of "account is update" at Activity Manager,
    and view mail in F-B, try to save attachment shown in attachment pane, reply, ...
    and terminate Tb, kep ackup of IMAP log.
(In reply to Grzegorz from comment #6)
> But later opened it and it displayed just fine (with all images). 
> Mails that are in inbox do not display correctly.
(In reply to Grzegorz from comment #8)
> Problem seems to be ONLY WHEN MAIL IS on IMAP folder.

Another concern : <img src="green.gif" border="0"> in the HTML mail.

Following is shown for the mail by Tb, if imported from .eml file by Drag&Drop.
> To protect your privacy. Thunderbird has blocked remote content in this message. [ Show Remote Content ]
This is by <img src="green.gif"> in the HTML mail.
If "[ Show Remote Content ]" is clicked, Tb tries to download something, and it won't stop.
I don't know "default Protocol of relative URL in mail" and I don't know where Tb tries to send request for resource named "green.gif", but Iguess that it may interfere "fetching sub parts of mail from IMAP server".

Do you enable "Show Remote Content" option for Inbox or enable it by default in Tb?
Remote images show without a problem. A background from: background-image:url(http://kgcvisuals.pl/nowa_stopka_gfx.png); shows without a problem.

It seems attachments are only broken from that one person....

I attached clean e-mail sent by this person without text and only with footer (less code to analyze) (maybe there is something breaking things in this footer. Also .gif was removed).
Also, (by drag and drop) I moved email to my dekstop (it saved to it as a .eml file ) And then dragged it back to imap server. It displayed normally.

Attachment is made from View Source and Copy Paste.
As plain text, i coped 3 sources and compared them in Notepad++ Compare option.

1 source was Broken mail -> View Soruce -> Copy paste to Notepad.
2 source was .eml file opened in Notepad.
3 source was a mail that I moved back from desktop eml file back to Imap folder -> View Soruce -> Copy paste to Notepad.

All files Match.

I'm somehow lost since everything seems to be fine. But it is not.
I asked peron whos mails are corrupted. Only from that person and only on that mailbox.
Other mailbox that is on same server works fine. gmail mailbox works fine too (all are IMAP).

So only e-mails from that particular person and on that particular mailbox are unreadable.

Now, is it fault on my server or is it thunderbird that can't read email even tho they seem to be valid?
Ok. I had automatic filters to put mails from this person in one of folders. I disabled filter and asked to send another e-mail. It showed in main folder and opened without problem.

I re-enabled filter, pressed "Filter" to make this filter move e-mail again into specified directory. And after that ALL e-mails (even ones sent before) started opening normally...

Now when re-enabled it works fine. I do not know what was the problem then.
Found another one. And his attachments are also corrupted. He's also put into another IMAP Folder by automatic filter. Funny thing, when I moved one of e-mails out of folder to main folder and back it started working and other e-mails too started working.

Maybe something is corrupted on my HDD index or something? Can I purge it to make Thunderbird re-download whole IMAP server?
(In reply to Grzegorz from comment #11)
> Source of clean broken mail
Which?
(i)  Your problem still does occur on this "clean, but still BROKEN, mail".
(ii) Your problem does not occur on this "CLEAN 'originally broken mail'".

> Remote images show without a problem. A background from:
> background-image:url(http://kgcvisuals.pl/nowa_stopka_gfx.png);
> shows without a problem.

It looks that getting NSPR log for http:(and cache) is needed in additio to imap log.
> SET NSPR_LOG_MODULES=timestamp,imap:5,nsHostResolver:5,nsHttp:5,CACHE:5

(In reply to Grzegorz from comment #14)
> So only e-mails from that particular person and on that particular mailbox are unreadable.
> Now, is it fault on my server or is it thunderbird that can't read email even tho they seem to be valid?

One of big diffrences between Offline-Use=Off and Offline-Use=On.
  If mail is sent via Web mail and is placed in IMAP folder without passing to SMTP server,
  "[CRLF] at end of mail data stream" may not exist, because it's not mandatory.
  (if sent via SMTP, or if downloaded via POP3, "[CRLF] at end" always exists,)
  (because protocol requests it.)
  When "no [CRLF] at end of mail data stream" ;
    Offline-Use=Off  : mail data for Tb = as-is
       (if entire mail data is saved in Cache, Memory or Disk, data in Cache is re-used.)
       (if partial data of multipart is saved in Cache, mail data is re-fetched always. )
    Offline-Use=On   : [CRLF] is always exists at end of mail data, as in POP3,
                       because mail data for Tb = mail data in Offline-store file,
                       and because Tb uses Unix Mbox file format for Offline-store file,
                       and because "Unix Mbox format" requests "[CRLF] between mail data",
                       and because "mail data for Tb" includes the "[CRLF] between mails".
  "Gmail Web mail + Gmail IMAP server" is an example of "who produces no [CRLF] at end".
And, Tb may re-fetch entire mail upon mail viewing if this "lack of [CRLF] at end of mail data stream" occurs.

This is also a reason why I asked you about "Offline-Use is Off or On" several times.

A way to obtain mail data as-is.
(1) Copy the mail to Offline-Use=Off folder of same IMAP account. Because "uid xx copy Target" is used, copy of mail is executed at server. (2) At copy target folder, Folder Properties/Repair Folder => mail header/data is re-fetched from scrach. (3) Save the mail to .eml file. Because of Offline-Use=Off, data stream by "fetch body" is directly written to HDD file. (4) View the .eml file using Text Editor who can process line-ending, or check .eml file content by Tool or small Script.

Anyway, get IMAP log for the specific mail in specific Mbox and check logs relevan to "uid xxx fetch body[ ... ]".
I think its (ii).

But as I staed earlier, all e-mails seem to be fine. Not broken, however could not be displayed. Maybe that was corrupted index file and it got magically refreshed.. I do not know.

I'm sorry. But what is this Offline-Use? You mena File > Offline Mode > Work in offline mode?
However, if you mean when i RMB IMAP folder on left, click Properties and goto Synchronization tab, The "Selected folder will be avaiable in offline mode" it is disabled for one of folders that had problems. Other one got this option Enabled.

All in all, everything seems to be fine now.
(In reply to Grzegorz from comment #18)
> But what is this Offline-Use? You mena File > Offline Mode > Work in offline mode?
Please do "Search" or "Find" on this BUG of bugzilla.mozilla.org by Browser's "Text Search" or "Find Text" feature.
Another way : Google Search for "thunderbird imap offline-use".
Sorry.

Today I had same error. Attachments did not open/display. After hitting Fix Folder in Folder properties it started working. Something is wrong with indexing i think. I will do some tests with different settings and report back how it behaves.
After getting some mails. I can say only that mails that are moved by automatic filter to IMAP subdir are wrongly indexed on local machine. Movind them to another dir makes them readable again (also after moving again back to folder they work fine ). So they need to be re-indexed.
Repair folder also works to make them readable.

E-mail in main/sent folder are unaffected.

Can you reproduce this when using a current version?

Flags: needinfo?(seo)
Whiteboard: [closeme 2019-06-15]

Resolved per whiteboard

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Flags: needinfo?(seo)
Resolution: --- → INCOMPLETE
Whiteboard: [closeme 2019-06-15]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: