Closed
Bug 55657
Opened 24 years ago
Closed 22 years ago
Possibility to disable Display inline attachments
Categories
(SeaMonkey :: MailNews: Message Display, defect, P3)
SeaMonkey
MailNews: Message Display
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.3alpha
People
(Reporter: bernd.mielke, Assigned: bugzilla)
References
Details
Attachments
(1 file, 4 obsolete files)
24.53 KB,
patch
|
bugzilla
:
review+
Bienvenu
:
superreview+
|
Details | Diff | Splinter Review |
In Nav4.6 there was a menu entry to disable the the display of inline
attachments (in the view menu). I miss this button in mozilla. If somebody sends
you a drawing as dxf it will be rendered instead of beening a pure attachment
because it is a text document.
win98 20001007
Reporter | ||
Updated•24 years ago
|
Keywords: 4xp
Summary: Possibility to disable Display inline attachments → Possibility to disable Display inline attachments
I think this is particularly important if you're using imap mail, since the
mail.imap.mime_parts_on_demand pref ignores those attachments that are being
viewed inline.
Thus if someone sends you a bunch of frigging huge html/text/jpg attachments,
mozilla tries to display them. No attachment icon/menu appears until after the
message has downloaded, so you're buggered :-).
What happens if you just set the mail.inline_attachments pref to false? :-)
Comment 2•24 years ago
|
||
nominating mail3 and reassigning to sspitzer
Assignee: putterman → sspitzer
Keywords: mail3
Comment 3•24 years ago
|
||
marking nsbeta1+ and moving to mozilla0.8.
How hard will this be to do? Adding mscott and rhp to find out why we haven't
done this so far.
Comment 6•24 years ago
|
||
marking nsbeta1-
Comment 8•23 years ago
|
||
What is the status of this bug? It looks as if it may have fallen off of
people's radars.
This is not an enhancment, because it means that large IMAP attachments
essentially prevent you from reading the message until they are downloaded.
Severity: enhancement → normal
Comment 9•23 years ago
|
||
*** Bug 104730 has been marked as a duplicate of this bug. ***
Comment 10•23 years ago
|
||
*** Bug 108003 has been marked as a duplicate of this bug. ***
Updated•23 years ago
|
Comment 11•23 years ago
|
||
Anything happening to this one? This behaviour is really painful e.g. when using
slow connection with IMAP server. Prevents you reading messages with large
attachments at all.
Comment 12•23 years ago
|
||
yeah, the perf is working in the file.. just no menu item. Besides this is on
the future radar and not set for any milestone.
Assignee | ||
Updated•23 years ago
|
Status: NEW → ASSIGNED
Comment 13•23 years ago
|
||
*** Bug 112947 has been marked as a duplicate of this bug. ***
Comment 14•23 years ago
|
||
Some notes on this: (build 20020122)
- mozilla displays text/plain (may be other) attachment inline even if Content-
Disposition: attachment;
- I would appreciate if mozilla can display attachment inline based on size. It
is fine, if I can view 2kB readme.txt inline, but it sucks, if displaying 14MB
logfile.txt freezes whole MailNews
Comment 15•23 years ago
|
||
I send around a lot of XML documents which are forcibly inlined (and therefore
show up as unreadable junk on the receiver end).
This is a major usability issue for me.
Updated•23 years ago
|
Comment 16•23 years ago
|
||
Dennis, which pref is that?
Everyone else (with a slow IMAP connection): Please test that pref.
Adding a menu item should be trivial, if the pref works reliably.
Comment 17•23 years ago
|
||
I think I was refering to the one listed here, that doesn't do anything... I'll
take a look to see I copied it down somewhere, but it might be some before I
find anything.
Comment 18•23 years ago
|
||
I couldn't find anything on my computer but I just did find inline_attachment
info in bug 32767..
Comment 19•23 years ago
|
||
please reconsider the nsbeta marking it was working in NN4xx. And
http://slashdot.org/comments.pl?sid=29319&cid=3146404 shows the bad press we get
not fixing this.
Comment 20•23 years ago
|
||
Bernd, what you quote is not at all related. HTML can appear in the body as
well, disabling attachments buys you *nothing*. In you fully read the page you
referenced, you see links to bugs that do apply.
Comment 21•23 years ago
|
||
Ben,
read this comment http://bugzilla.mozilla.org/show_bug.cgi?id=32767#c8, bienvenu
says to adjust both perfs for this to work.. if not, there was sometime ago,
many perfs were wiped away that were un-used (to get rid of, and drop confusion
from users when trying perfs..) around late november or early december '01, when
the perf file problem came in.
Comment 22•23 years ago
|
||
*** Bug 130464 has been marked as a duplicate of this bug. ***
Comment 23•23 years ago
|
||
Discussed in Mail News bug meeting with Engineering, QA, Mktng and PjM.
Decision was to minus this bug.
Comment 24•23 years ago
|
||
*** Bug 135277 has been marked as a duplicate of this bug. ***
Comment 25•23 years ago
|
||
*** Bug 150501 has been marked as a duplicate of this bug. ***
Comment 26•23 years ago
|
||
If this is not the same bug as "Possibility to disable Display inline
attachments" let me know & I'll enter a new one. I had a hard time finding this
bug because it's listed under Mail Window Front End! What does it have to do
with the front end? I think it makes MUCH more sense for this to be listed
under COMPONENT: Attachements. Shouldn't OPSYS be ALL instead of OTHER?
Shouldn't Platform be ALL rather than PC? This bug seems to be seriously
miscataloged!
Using Mozilla 1.0 MailNews on Solaris. Using SMTP/POP email. I attach multiple
text files to an email, and type a brief message explaining their contents.
MailNews shows me the two files as attachments. I send the message. On MS
Windows using Eudora and SMTP/POP email, I get no attachments! The multiple
text files are concatenated together in one long message body! YUCH! There is
not even a break in between the two attached files! Is this the same bug as
described above? Is there a preference I'm overlooking to prevent text
attachments from becoming inline?
Forcing attachments to be inline WILL prevent me and my users from using Mozilla
MailNews! I see this as a critical function! HELP! Can someone increase the
severity of this bug?
Here are the headers. The short note is "Here's the latest ..." The first
attached file begins with "Jun 10" and there should be a header before it
indicating that. I cut the remainder of the long message out. I've replaced
system names, IPs, and email addresses with '_' for privacy.
X-Time: <200206101758.g5AHwhg25254>
Return-Path: <_>
Received: from clemson.edu (_)
by CLEMSON.EDU (8.11.4/8.11.4) with ESMTP id g5AHwhg25254
for <_>; Mon, 10 Jun 2002 13:58:43 -0400 (EDT)
Message-ID: <3D04E8D3.9070303@clemson.edu>
Date: Mon, 10 Jun 2002 13:58:43 -0400
From: _
User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.1a) Gecko/20020606
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: _
Subject: _
Content-Type: multipart/mixed;
boundary="------------050400060608060502090504"
here's the latest messages along with patching from /var/adm
on the sunblade 1000 'lily'
Jun 10 10:46:13 lily reboot: [ID 662345 auth.crit] rebooted by root
Jun 10 10:46:13 lily xntpd[246]: [ID 866926 daemon.notice] xntpd exiting on
signal 15
Jun 10 10:46:13 lily syslogd: going down on signal 15
J
Comment 27•23 years ago
|
||
This bug is in the Front End component because there was/is? a backend for
inline attachments. All that needs to be done now is to have the front end
hooked up.
Changing platform and OS to all, and adding mozilla1.2 keyword to get this
looked at. If the backend does exist, this should be a fairly simple fix. If it
doesn't, then we'd probably have to push it back a little farther while the
backend is worked out.
CCing bienvenu because of his comment in bug 32767 comment 11 that
"mail.inline_attachments is obsolete"
Charles,
I'm inclined to believe that this bug is not the problem you are describing.
Inline attachments in the context of this bug are on the receiving end. Since
you are receiving through eudora you are having a problem with mozilla _sending_
inlined attachments.
Comment 28•23 years ago
|
||
I was told that mime didn't support this anymore. But JF should know.
Assignee | ||
Comment 29•23 years ago
|
||
Mime does not support that anymore but it would be easy to restore it as it is
much simpler than it was in 4.x
Comment 30•23 years ago
|
||
Thank You Mike Young. I entered a new bug for needing to send email with
attachments NOT being inline. Turns out there is a user_pref to turn on the
behavior I want, but no GUI way of doing it that I know of.
FYI here it is: bug #151256
Comment 31•23 years ago
|
||
*** Bug 154859 has been marked as a duplicate of this bug. ***
Comment 32•23 years ago
|
||
*** Bug 146459 has been marked as a duplicate of this bug. ***
Comment 33•22 years ago
|
||
*** Bug 159505 has been marked as a duplicate of this bug. ***
Comment 34•22 years ago
|
||
There is an excellent discussion about this over in bug 98360 especially the
quotes from the relevant RFCs in comment seven.
Mozilla's current behavior is in violation of RFCs 1806 and 2183.
Not only does Mozilla force us to view images marked "inline" it also displays
all image "attachments" inline which is NOT appropriate for that Content
Disposition.
Given the 4xp status, IMAP performance hit, and the fact that this is a
violation of the relevant RFCs, I think the severity should be bumped a little
higher.
Did I mention, it's been fixed over in the *BROWSER* component? (bug 98360)
Assignee | ||
Comment 35•22 years ago
|
||
I aggree, we should giv ethe user the option to display (inline) or not inline
parts and/or attachment parts. I'll see if I have time to implement that for 1.3
Target Milestone: Future → mozilla1.3beta
Assignee | ||
Comment 37•22 years ago
|
||
*** Bug 179727 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 38•22 years ago
|
||
the pref name for this feature should be "mail.inline_attachments" like in 4.x.
This is a boolean
Assignee | ||
Comment 39•22 years ago
|
||
First implementation of the UI: added a View attachment Inline under the
mail3Pane window View menu.
First Implementation of the support of this feature in Mime. I still need to do
intensive testing.
Missing: Imap part of this feature. Imap need to not fetch part that are
normaly displayed inline when not needed.
Comment 40•22 years ago
|
||
UI Suggestion: Make a submenu Attachments. This would match the "Headers" and
Body ("Message Body As") submenus. It would currently contain one menuitem only,
but that may change in the future. In any case, it would much more logical to
me. I'd also add a separator before Headers to stress that these 3
submenus/items apply to the message (pane), while the 2 above ("Sort As" and
"Messages") apply to the thread (pane).
Comment 41•22 years ago
|
||
+<!ENTITY inlineAttachmentMenu.label "View Attachment Inline">
Suggested wording for View menu item: "Display Attachments Inline"
Comment 42•22 years ago
|
||
>Suggested wording for View menu item: "Display Attachments Inline"
I agree.
Thanks for fixing the conflicting mnemonic for "Message Body As". :-)
>Make a submenu Attachments. ... It would currently contain one menuitem only,
I'd leave it as a single menu item until if/when it has more items.
>I'd also add a separator before Headers to stress that these 3 submenus/items
>apply to the message (pane), while the 2 above ("Sort As" and "Messages") apply
>to the thread (pane).
I agree the separator would be good.
Show/Hide --->
--------------------------
Sort by --->
Messages --->
---------------------------
Headers --->
Message Body As --->
Display Attachments Inline
---------------------------
Assignee | ||
Comment 43•22 years ago
|
||
I updated the UI to Jenifer last proposition. This patch also include IMAP
modification. I still have some trouble with IMAP when displaying attachment as
link (in the chrome): It refuse to provide the content when fetching some
part...
Attachment #106264 -
Attachment is obsolete: true
Assignee | ||
Comment 44•22 years ago
|
||
The problem I have is with message with embedded image (multipart/related). When
the option "Display Attachments Inline" is turn off, they are not showing up at
all, not even has attachment. In some case neither does the message body. In
fact, 4.x has the same bug!
My guess is that the problem is caused by the fact we are not generating IMAP
url for the related part like we do for regular attachment. That also explain
why we download n time the whole message when displaying a email with n embedded
images (View Attachments Inline on) instead of downloading n time just the
needed part.
Assignee | ||
Comment 45•22 years ago
|
||
This patch is complete and fix problem with multipart/related already present
in 4.x. The modifications in mime and imap come from 4.x except for the bug
fix:
- Accepting to display the first part of multipart/related even if this one
(the parent) is the second part in the message. This is the case where a we
have a multipart/related embedded into a multipart/alternative.
- We have a mix up between &part= and ?part= which cause several troubles. I
cleaned up that by generating a valid url (use ? first and then &) and also,
imap look for both case now.
Attachment #106409 -
Attachment is obsolete: true
Assignee | ||
Updated•22 years ago
|
Attachment #106459 -
Flags: review?(cavin)
Assignee | ||
Updated•22 years ago
|
Whiteboard: have fix
Target Milestone: mozilla1.3beta → mozilla1.3alpha
Comment 46•22 years ago
|
||
Comment on attachment 106459 [details] [diff] [review]
Proposed fix, v1
r=cavin. But in GetShowAttachmentsInline(), make sure argument ‘aResult’ is
not null before referencing it.
Attachment #106459 -
Flags: review?(cavin) → review+
Assignee | ||
Comment 47•22 years ago
|
||
Addressed Cavin's comment
Attachment #106459 -
Attachment is obsolete: true
Assignee | ||
Comment 48•22 years ago
|
||
Comment on attachment 106715 [details] [diff] [review]
Proposed fix, v2
carry over R=cavin
Attachment #106715 -
Attachment description: Proposed fix, v1 → Proposed fix, v2
Attachment #106715 -
Flags: superreview?(bienvenu)
Attachment #106715 -
Flags: review+
Comment 49•22 years ago
|
||
+
+ if (GetShowAttachmentsInline())
SetContentModified(IMAP_CONTENT_MODIFIED_VIEW_INLINE);
+ else
+ SetContentModified(IMAP_CONTENT_MODIFIED_VIEW_AS_LINKS);
can we just use the ? operator here:
+ if (m_protocolConnection)
+ m_showAttachmentsInline = m_protocolConnection->GetShowAttachmentsInline();
+ else
+ m_showAttachmentsInline = PR_TRUE;
m_showAttachments = !m_protocolConnection ||
m_protocolConnection->GetShowAttachmentsInline();
+ *aResult = PR_TRUE; // true per defaul
typo - should be default
+{
+ PRBool rv = PR_TRUE;
+ if (m_imapMessageSink)
+ m_imapServerSink->GetShowAttachmentsInline(&rv);
+ return rv;
+
we tend to use rv for nsresults. Can you change this var name to
"showAttachmentsInline?
other than that, it looks OK. I think this needs lots of testing. Have you made
sure that things like save attachment works, etc? I'm worried about this change,
for example:
PL_strcat(result, imappart);
- PL_strcat(result, "&part=");
+ PL_strcat(result, "?part=");
We might have some (bad) code that's looking for &part, for example.
Assignee | ||
Comment 50•22 years ago
|
||
I have addressed bienvenu's comment. I have carefully tested the patch in
various situations especially opening and saving imap attachments and imap
embedded object like images. Works great.
About the change from &part to ?part, I looked at lxr and there was only one
spot where we don't check both cases and this is in
/mailnews/imap/src/nsImapUrl.cpp, line 443 which I have changed in this patch.
Attachment #106715 -
Attachment is obsolete: true
Assignee | ||
Comment 51•22 years ago
|
||
Comment on attachment 106970 [details] [diff] [review]
Proposed fix, v3
carry over R=cavin
Attachment #106970 -
Flags: superreview?(bienvenu)
Attachment #106970 -
Flags: review+
Comment 52•22 years ago
|
||
Comment on attachment 106970 [details] [diff] [review]
Proposed fix, v3
sr=bienvenu, but
+ // Enforce the invariant that any chached shell we use
fix this typo - "cached"
Attachment #106970 -
Flags: superreview?(bienvenu) → superreview+
Assignee | ||
Comment 53•22 years ago
|
||
Fix checked in
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Whiteboard: have fix
Comment 54•22 years ago
|
||
YOU made my day, thanks a lot. I can't verify on all platforms, but it works as
intended on win98
Assignee | ||
Comment 55•22 years ago
|
||
This fix has cased the crash bug 181856
Comment 56•22 years ago
|
||
Comment on attachment 106970 [details] [diff] [review]
Proposed fix, v3
>Index: base/resources/content/mailWindowOverlay.js
>===================================================================
>RCS file: /cvsroot/mozilla/mailnews/base/resources/content/mailWindowOverlay.js,v
>retrieving revision 1.146
>diff -u -4 -w -r1.146 mailWindowOverlay.js
>--- base/resources/content/mailWindowOverlay.js 20 Nov 2002 11:49:10 -0000 1.146
>+++ base/resources/content/mailWindowOverlay.js 21 Nov 2002 01:34:00 -0000
>@@ -172,8 +172,12 @@
> if (threadColumn && thread_menuitem){
> thread_menuitem.setAttribute('checked',threadColumn.getAttribute('currentView')=='threaded');
> }
>
>+ // Initialize the View Attachment Inline menu
>+ var viewAttachmentInline = pref.getBoolPref("mail.inline_attachments");
>+ document.getElementById("viewAttachmentsInlineMenuitem").setAttribute("checked", viewAttachmentInline ? "true" : "false");
>+
> document.commandDispatcher.updateCommands('create-menu-view');
> }
>
> function setSortByMenuItemCheckState(id, value)
>@@ -1365,8 +1369,17 @@
> gPrefs.setIntPref("mailnews.display.disallow_mime_handlers",
> disallow_classes_no_html);
> MsgReload();
> return true;
>+}
>+
>+function ToggleInlineAttachment(target)
>+{
>+ var viewAttachmentInline = !pref.getBoolPref("mail.inline_attachments");
>+ pref.setBoolPref("mail.inline_attachments", viewAttachmentInline)
>+ target.setAttribute("checked", viewAttachmentInline ? "true" : "false");
>+
>+ MsgReload();
> }
>
> function MsgReload()
> {
Nit: you don't have to set the checked attribute on the target because you have
to do it again in view_init() anyway.
Updated•22 years ago
|
Attachment #106715 -
Flags: superreview?(bienvenu)
QA Contact: yulian → stephend
QA Contact: stephend → esther
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•