Closed Bug 320439 Opened 20 years ago Closed 20 years ago

Attachments still download when "Display Attachments Inline" deselected and "Wait x to Mark a Message As Read" selected.

Categories

(MailNews Core :: Networking: IMAP, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: mehovis, Assigned: Bienvenu)

References

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7 When "Display Attachments Inline" is not selected and "Wait n seconds to mark a message as read" is selected, the attachments will alays download. Reproducible: Always Steps to Reproduce: 1.View->Display Attachments Inline is NOT checked 2.Tools->Options->Advanced "Wait n seconds to mark a message as read" is checked. 3.Select a message w/ a large attachment 4 [review].Ensure you're using an IMAP4rev1 server. Actual Results: A download of all attachments will occur w/ every selection of that message. When "Display attachments inline" is disabled - no attachments should download regardless of the other setting.
This patch enables messages w/ attachments to only download completely if the option to display inline attachments is enabled.
Attachment #205997 - Flags: review?
Assignee: mscott → bienvenu
Component: General → Networking: IMAP
Flags: review?
Product: Thunderbird → Core
QA Contact: general → grylchan
Version: unspecified → Trunk
Comment on attachment 205997 [details] [diff] [review] Enables trytochunk and BODYSTRUCTURE, also Enabled peeks to occur to prevent premature /seen Mike, can you explain why we need this code now: + if (endByte > 0) + { + // if we are retrieving chunks + char *byterangeString = PR_smprintf("<%ld.%ld>",startByte,endByte); + if (byterangeString) + { + commandString.Append(byterangeString); + PR_Free(byterangeString); + } + }
(In reply to comment #2) > (From update of attachment 205997 [details] [diff] [review] [edit]) > Mike, can you explain why we need this code now: > > + if (endByte > 0) > + { > + // if we are retrieving chunks > + char *byterangeString = PR_smprintf("<%ld.%ld>",startByte,endByte); > + if (byterangeString) > + { > + commandString.Append(byterangeString); > + PR_Free(byterangeString); > + } > + } > This code allows FetchTryChunk call to get into that particular portion of the case statement and still allow information about the attachments/body to be retrieved.
Attachment #205997 - Flags: review?(bienvenu)
Comment on attachment 205997 [details] [diff] [review] Enables trytochunk and BODYSTRUCTURE, also Enabled peeks to occur to prevent premature /seen thx, Mike.
Attachment #205997 - Flags: review?(bienvenu) → review+
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
*** Bug 342717 has been marked as a duplicate of this bug. ***
This was also checked in on branch (2006-02-04 14:45).
Status: RESOLVED → VERIFIED
OS: Windows XP → All
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: