Closed
Bug 124865
Opened 23 years ago
Closed 21 years ago
IMAP: load attachments separately from mail body
Categories
(MailNews Core :: Networking: IMAP, enhancement)
MailNews Core
Networking: IMAP
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: shom, Assigned: mscott)
References
Details
Attachments
(1 file)
1.07 KB,
patch
|
Details | Diff | Splinter Review |
0.9.8/Linux
When click a mail message with attachments on an IMAP server,
mozilla seems to download whole mail (with attachments).
# and when "save attachment ..", it seems that mozilla downloads the attachment
# via network again... Bug?
I want to get only the body message (or only with displayable attachments)
via narrowband networks.
Comment 1•23 years ago
|
||
0.9.8/Solaris
I have a relatively slow (128K) ISDN link over which I read mail from an IMAP
server.
When an email with a large attachment is selected for viewing, Mozilla
downloads the whole attachment, even though I haven't requested the
attachment.
Additionally, there is a configuration flag in the "Offline & Disk Space"
properties which allows you to instruct Mozilla not to download mails over
a certain size. This size does not appear to take into account the size of
attachments, though.
For myself an other users who are broadband challenged, it would be a very
useful feature to add a flag which prevents attachments from being
downloaded automatically when a mail is displayed.
TW
Comment 2•23 years ago
|
||
I don't think this is possible, because the entire mail needs to be scanned for
MIME headers.
Marking NEW so someone can say if this is possible.
Severity: normal → enhancement
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Linux → All
Hardware: PC → All
Reporter | ||
Comment 3•23 years ago
|
||
I think 'selective fetch' is one of the most useful features of IMAP...
see below...
---
% telnet smtp.sunbridge.com 143
:
a005 fetch 97 full
* 97 FETCH (FLAGS (\Seen) INTERNALDATE "20-Feb-2002 00:50:47 +0900" RFC822.SIZE
5723 ENVELOPE ("Wed, 20 Feb 2002 00:48:31 +0900" "attachment test" (("Shoji
Matsumoto" NIL "shom" "sunbridge.com")) (("Shoji Matsumoto" NIL "shom"
"sunbridge.com")) (("Shoji Matsumoto" NIL "shom" "sunbridge.com")) ((NIL NIL
"shom" "sunbridge.com")) NIL NIL NIL "<3C7273CF.8020707@sunbridge.com>") BODY
(("TEXT" "PLAIN" ("CHARSET" "ISO-2022-JP") NIL NIL "7BIT" 20 1)("APPLICATION"
"OCTET-STREAM" ("NAME" "ServletSample.class") NIL NIL "BASE64"
2658)("APPLICATION" "ZIP" ("NAME" "pdftest.zip") NIL NIL "BASE64" 1410) "MIXED"))
a005 OK FETCH completed
Comment 4•22 years ago
|
||
Maybe I'm reading this bug incorrectly, but the behavior I've been seeing
(at least lately) with Mozilla 1.0 (Linux) is that the attachment(s) only
get downloaded when I request to open/save/forward them ...
I haven't seen any slowdown in reading a message with a large attachment.
Comment 5•22 years ago
|
||
I think the requested functionality is the way Netscape Mail 4.79 works today.
I use IMAP with Netscape Mail at work and only get an attachment when I click
the link to that attachment at the bottom of the mail text body.
I too think it would be very useful to have an option where Mozilla Mail will
only download attachments upon explicit request.
Updated•22 years ago
|
Summary: [RFE] IMAP: load attachments separately from mail body → IMAP: load attachments separately from mail body
I guess the bug is still present in 1.3 release.
I'm using very slow GPRS link, and mozilla mail is always downloading whole
message (speaking from modem activity applet). I wouldn't mind, but when I
select attachment to save, or do "Save all", it starts downloading them again,
exactly like reporter have stated.
*** Bug 232410 has been marked as a duplicate of this bug. ***
Comment 8•21 years ago
|
||
Did this ever work? I vaguely seem to remember it working properly once upon a
time (pre 1.0?) but I may be wrong...
Comment 9•21 years ago
|
||
this is fixed and has been for a long time - we do download inline attachments
with the message body, but that's because they're inline...but we don't download
external attachments, e.g., a .doc file, or a .zip or .exe. - I fixed the
downloading of attachments to used the cached copy in 1.6, I believe. Marking wfm.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → WORKSFORME
Comment 10•21 years ago
|
||
It doesn't work for me with a fresh trunk build of thunderbird and "Display
attachments inline" off.
I think the problem is at
http://lxr.mozilla.org/seamonkey/source/mailnews/imap/src/nsImapProtocol.cpp#1975
and I think it regressed between versions 1.446 and 1.447 of nsImapProtocol.cpp.
The problem is that messages are all fetched by running the IMAP URL with
m_imapAction set to nsIImapUrl::nsImapMsgFetchPeek, which causes Mozilla fetch
the whole message like so:
2456[1e98a78]: 222abc0:woodstock:S-INBOX.Stuff:SendData: 13 UID fetch 196 (UID
RFC822.SIZE BODY.PEEK[])
2456[1e98a78]: ReadNextLine [stream=2358080 nb=57 needmore=0]
2456[1e98a78]: 222abc0:woodstock:S-INBOX.Stuff:CreateNewLineFromSocket: * 194
FETCH (UID 196 RFC822.SIZE 117150 BODY[] {117150}
2456[1e98a78]: 222abc0:woodstock:S-INBOX.Stuff:STREAM:OPEN Size: 117150: Begin
Message Download Stream
2456[1e98a78]: ReadNextLine [stream=2358080 nb=36 needmore=0]
If I remove the "|| m_imapAction == nsIImapUrl::nsImapMsgFetchPeek" part of the
if, messages load without having to wait for the attachments. But of course this
is not a fix. :)
Reopening.
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Comment 11•21 years ago
|
||
This fixes the symptoms, but it probably breaks junk mail and lots of other
stuff...
Comment 12•21 years ago
|
||
do you have the junk mail controls turned on? Is that the message fetch that
you're referring to?
Comment 13•21 years ago
|
||
Yes, I have junk mail controls turned on (couldn't live without them...)
The fetches I'm referring to are not the ones used to see if a message is junk
or not. This is an old message that has been read many times (and is not in the
inbox). I start up TB, open the folder, and click on the message. Without the
hack, it does a full fetch. With the hack, it just fetches what it needs to.
Comment 14•21 years ago
|
||
this works fine for me w/o the hack...do you have the thunderbird pref turned on
to not mark a message read until a certain delay? That will cause this.
Comment 15•21 years ago
|
||
(In reply to comment #14)
> this works fine for me w/o the hack...do you have the thunderbird pref turned on
> to not mark a message read until a certain delay? That will cause this.
Ah, that's it! Can it be worked around?
Comment 16•21 years ago
|
||
thx, reclosing this bug - please file a new one on the delay mark read problem
and assign it to me. It can be fixed, I'm sure...
Status: REOPENED → RESOLVED
Closed: 21 years ago → 21 years ago
Resolution: --- → WORKSFORME
Comment 17•21 years ago
|
||
Spun off bug 244254 for this issue.
bienvenu, thanks for alerting me to the workaround!
Updated•20 years ago
|
Product: MailNews → Core
Updated•16 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•