Open
Bug 215514
Opened 22 years ago
Updated 12 years ago
email_in.pl should accept inline text attachments
Categories
(Bugzilla :: Incoming Email, enhancement, P4)
Tracking
()
NEW
People
(Reporter: alex, Unassigned)
References
Details
Attachments
(1 file, 2 obsolete files)
2.05 KB,
patch
|
LpSolit
:
review-
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
Build Identifier:
When submitting a patch along with a description as an email, mozilla sends
mail as multipart/mixed as expected with the patch added as inline content
disposition, type text. bug_email simply appends the patch to the
description. While this may be acceptable for some, this is an inconvenience
when attempting to extract a patch.
This could be worked around by the mail application (e.g. in in mozilla by
ensuring attachments are always sent as attachments by setting user_pref
("mail.content_disposition_type", 1); in .mozilla/.../prefs.js) but that
impacts the user mail-reader.
My preferred approach is to take the first text portion of a multipart
message, use that as the description, and then have the remaining parts be
added as attachments.
Reproducible: Always
Steps to Reproduce:
Reporter | ||
Comment 1•22 years ago
|
||
Reporter | ||
Updated•21 years ago
|
Attachment #129431 -
Flags: review?
Comment 2•21 years ago
|
||
I would tend to agree, and I know that bug_email will take on more importance
for justdave very soon. I can't actually confirm that this doesn't work properly
at the moment, though I would believe it does. (bug_email is pretty *old* right
now.)
However, please re-submit that patch without the whitespace changes. It's nearly
impossible to tell what's actually changed.
-M
Blocks: bz-email-in
Severity: normal → enhancement
Summary: bug_email.pl adds inline text attachment as description → bug_email.pl should accept inline text attachments
Version: unspecified → 2.17.6
Reporter | ||
Comment 3•21 years ago
|
||
Patch without whitespace changes
Attachment #129431 -
Attachment is obsolete: true
Reporter | ||
Updated•21 years ago
|
Attachment #139895 -
Flags: review?
Reporter | ||
Updated•21 years ago
|
Attachment #129431 -
Flags: review?
Reporter | ||
Comment 4•21 years ago
|
||
(In reply to comment #2)
> I would tend to agree, and I know that bug_email will take on more importance
> for justdave very soon. I can't actually confirm that this doesn't work properly
> at the moment, though I would believe it does. (bug_email is pretty *old* right
> now.)
OOI, I have made further mods to bug_email.pl, namely, corrected the handling
and insertion of attachments. I can provide patches if required - I have had no
complaints or problems reported since the last set of changes in August 2003 and
the system is in regular use at http://bugs.ecos.sourceware.org/
-- Alex
Comment 5•21 years ago
|
||
Comment on attachment 139895 [details] [diff] [review]
Updated patch to provide the behaviour desired
>+ if (($msg_part =~ /^inline/) && ($type =~ /^(text|message)$/) && ($Body eq '')) {
>+ if ($IO = $body->open("r")) {
> [snip]
You might want to add a brief comment (with this bug number) at the top of this
block, just explaining what it does. I'm not a reviewer, but that would be my
first comment if I was. :-)
-M
Comment 6•21 years ago
|
||
Oh, whoops. It made me the person requesting review. That's no good. It's
actually the patch author, Alex. -M
Reporter | ||
Comment 7•21 years ago
|
||
Added comments to the patch as suggested.
Reporter | ||
Updated•21 years ago
|
Attachment #139895 -
Attachment is obsolete: true
Reporter | ||
Updated•21 years ago
|
Attachment #139966 -
Flags: review?
Comment 8•21 years ago
|
||
Comment on attachment 139895 [details] [diff] [review]
Updated patch to provide the behaviour desired
Clearing r? flag on obsolete attachment.
Attachment #139895 -
Flags: review?
Updated•21 years ago
|
Assignee: justdave → alex
Comment 9•20 years ago
|
||
*** Bug 279727 has been marked as a duplicate of this bug. ***
Comment 10•20 years ago
|
||
This need on which this patch is predicated is actually a Core/Thunderbird
issue, not a Bugzilla one; see bug 65794 for discussion.
This patch still applies to the tip (probably because almost nobody ever
touches the stuff in contrib), but I am of the opinion that we should not be
fixing problems with other tools by implementing workarounds in Bugzilla... not
in the core code anyway. (OTOH, if someone wants to post a patch for anyone to
take if they need it for a local site, though, then that's fine; I would
consider this to fall into that category.)
Others' opinions may differ, and I'm sure we'll hear from them soon. :)
Comment 11•20 years ago
|
||
I'd tend to agree with Shane... I've seen several mail clients that add your
signature block to the end of a message by making it an inline text attachment.
So we'd likely wind up with attachments with nothing but a 3 or 4 line email
signature in them.
This is one of those stupid places about email where fixing it so it works in
one casae will break it in another, so neither way is ideal.
Reporter | ||
Comment 12•20 years ago
|
||
Oddly, I disagree ;-)
There are unfortunately a couple of email clients that automatically inline text
attachments (i.e. not only moz/TB, but also evolution and webmail). Since the
patch is simple enough, I could modify the patch to be a configuration option so
the bz admin can choose how they want to handle inline text attachments.
And yes, inline .sigs will also get added as an attachment if implemented, an
unfortunate side-effect of this solution. Don't think I have not tried to find a
way around this :-( However, generally this is not an issue since the format of
bugmail implies that .sigs should be excluded. Also, in our case everyone who
uses bugmail also do not use HTML mail or inline .sigs, so this is a non-issue.
Comment 13•20 years ago
|
||
Is this a dupe of bug 176190?
Comment 14•20 years ago
|
||
This is not an exact duplicate of bug 176190, although they are related.
bug_email_append.pl has no attachment handling at all, this is about one aspect
of the already implemented attachment handling for bug_email.pl
Updated•20 years ago
|
QA Contact: mattyt-bugzilla → default-qa
Updated•19 years ago
|
No longer blocks: bz-email-in
![]() |
||
Comment 15•19 years ago
|
||
Comment on attachment 139966 [details] [diff] [review]
Updated patch with comments as suggested
bitrotten, probably because all tabs have been removed.
Attachment #139966 -
Flags: review? → review-
Comment 16•18 years ago
|
||
The proposed solution may fix the Thunderbird problem but may be a problem if a bug report is submitted from e.g. gmail, which will have the string "Content-Disposition: inline" for the body of the mail. So, to fix both the inline attachment problem and also make sure bug reports from gmail clients are accepted I had to change line:
if( $msg_part =~ /^attachment/ ) {
to
if(( $msg_part =~ /^attachment/ ) || (( $msg_part =~ /^inline/) && ($msg_part =~ /filename/)) ) {
This change will only treat a message part with "Content-Disposition" set to "inline" as an attachment, if it is followed by a filename tag. Otherwise it is left to be handled as the message body.
Comment 17•18 years ago
|
||
Enhancement request + people already working on it = confirmed
Status: UNCONFIRMED → NEW
Ever confirmed: true
![]() |
||
Updated•17 years ago
|
Assignee: alex → incoming.email
Component: Bugzilla-General → Incoming Email
Updated•16 years ago
|
Depends on: bz-email_in-attach
Priority: -- → P4
Summary: bug_email.pl should accept inline text attachments → email_in.pl should accept inline text attachments
You need to log in
before you can comment on or make changes to this bug.
Description
•