Closed Bug 16925 Opened 25 years ago Closed 22 years ago

[FEATURE] Want additional header options

Categories

(MailNews Core :: Composition, enhancement, P3)

enhancement

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: John_David_Galt, Assigned: bugzilla)

References

(Depends on 1 open bug)

Details

Attachments

(3 files, 5 obsolete files)

At a minimum I would like to be able to set these headers: Approved: Distribution: Expires: Keywords: Supersedes: X-No-Archive: Some of these are not always allowed on posts, but I feel that enforcing that is the server's job, not the client's.
Blocks: 16904
No longer blocks: 16904
Depends on: 16904
Assignee: ducarroz → nobody
Summary: [FEATURE] Want additional header options when posting news → [HELP WANTED][FEATURE] Want additional header options when posting news
Whiteboard: [HELP WANTED]
Add to help wanted list
There is a way today to specify through the prefs a custom header but I don't remember which pref. Seth?
this feature sort of works. for example, add this to your prefs.js: user_pref("mail.compose.other.header","Approved"); a good help wanted bug would be to fix it so that worked like this: user_pref("mail.compose.other.headers","Approved,Supersedes,Expires"); right now, you can only have one additional header at a time.
this feature sort of works. for example, add this to your prefs.js: user_pref("mail.compose.other.header","Approved"); a good help wanted bug would be to fix it so that worked like this: user_pref("mail.compose.other.headers","Approved,Supersedes,Expires"); right now, you can only have one additional header at a time.
this feature sort of works. for example, add this to your prefs.js: user_pref("mail.compose.other.header","Approved"); a good help wanted bug would be to fix it so that worked like this: user_pref("mail.compose.other.headers","Approved,Supersedes,Expires"); right now, you can only have one additional header at a time.
This is a small javascript hack. The code that needs changing is in package/chrome/messengercompose/content/default/MsgComposeCommands.js from the M10 package or a recent nightly build. Since the needed code is part of the UI, its released with the binary so you can edit that and don't need to pull an entire source tree. http://lxr.mozilla.org/seamonkey/source/mailnews/compose/resources/content/MsgComposeCommands.js#280 if (other_header != "") { var opt = new Option(other_header + ":", "addr_other"); selectNode.add(opt, null); }
*** Bug 17380 has been marked as a duplicate of this bug. ***
Keywords: helpwanted
Summary: [HELP WANTED][FEATURE] Want additional header options when posting news → [FEATURE] Want additional header options when posting news
Whiteboard: [HELP WANTED]
Moving way out there.
Target Milestone: --- → Future
Widening scope to mail (not just news). The feature seth and dawn spoke of regressed. Got it to work again. Attaching patch.
Summary: [FEATURE] Want additional header options when posting news → [FEATURE] Want additional header options
Bug 61520 is related - it is about adding headers at identity setup time.
Superseding articles (and therefore use of the Supersedes: header) is the subject of bug #11045.
*** Bug 56273 has been marked as a duplicate of this bug. ***
*** Bug 94395 has been marked as a duplicate of this bug. ***
*** Bug 116870 has been marked as a duplicate of this bug. ***
Added CC
abiltiy to support arbitrary header in mail/news, and turn off auto completion for these
support arbitrary header in mail/news abiltiy to support arbitrary header in mail/news. feature is controlled by a new pref mail.compose.other.headers which takes comma separated headers. user_pref("mail.compose.other.headers","Approved,Supersedes,Expires") this should probably have a default somewhere in the prefs section but I'm not quite sure where that lives
patches are against 1.1a source. keywords -> review patch??
:-)
Assignee: nobody → teilo+bugzilla
Target Milestone: Future → ---
first, you'll want to get a review from the compose window module owner, ducarroz. I'll look at it after that.
Comment on attachment 88964 [details] [diff] [review] support arbitrary header in mail/news, part 1 of 2 Looks good. R=ducarroz
Attachment #88964 - Flags: review+
Attachment #88964 - Attachment description: support arbitrary header in mail/news → support arbitrary header in mail/news, part 1 of 2
Comment on attachment 88965 [details] [diff] [review] support arbitrary header in mail/news, part 2 of 2 Looks good. R=ducarroz
Attachment #88965 - Attachment description: support arbitrary header in mail/news → support arbitrary header in mail/news, part 2 of 2
Attachment #88965 - Flags: review+
can you attach unified diffs? cvs diff -uw ? they're easier to read
unified patch. (sorry not from cvs - its taking an etirnity to do make -f client.mk)
Attachment #88964 - Attachment is obsolete: true
and here we go again...
Attachment #88965 - Attachment is obsolete: true
should give some credit to neil@parkwaycc.co.uk as this patch incorporates a patch for bug 151223
Comment on attachment 89464 [details] [diff] [review] support arbitrary header in mail/news, unified patch part 1 of 2 sr=bienvenu, and carrying over r=
Attachment #89464 - Flags: superreview+
Attachment #89464 - Flags: review+
Comment on attachment 89466 [details] [diff] [review] support arbitrary header in mail/news, unified patch part 2 of 2 sr=bienvenu, and carrying over r=. Thx for the patch.
Attachment #89466 - Flags: superreview+
Attachment #89466 - Flags: review+
Yes, thanks from me, too! :-)
nice to be able to give a little back for once ;-) (who wants to check this in on the correct branch(es)/trunk?)
I'd suggest getting this into the trunk, but not the branch.
QA Contact: lchiang → gayatri
QA Contact: gayatri → laurel
ducarroz (someone!) can you commit this patch? Would be nice to start using the nightlies again ;-)
Status: NEW → ASSIGNED
*** Bug 155742 has been marked as a duplicate of this bug. ***
*** Bug 110091 has been marked as a duplicate of this bug. ***
Attached patch version of patch for linux (obsolete) (deleted) — Splinter Review
The 2 parts of unified patch were not directly applicable on linux due to the backslashes. I just merged the two parts and adapted it so it runs in linux (patch -p1). Note for people using the patches. Although it is stated in the bug messages I overlooked it. So take note and don't repeat my mistake: ************************************** ******the relevant entry in prefs.js changes from ...header to ...headers ***** **************************************
This patch you can apply against a current trunk tree...
Attachment #89464 - Attachment is obsolete: true
Attachment #89466 - Attachment is obsolete: true
Attachment #90304 - Attachment is obsolete: true
Comment on attachment 90508 [details] [diff] [review] same patch but diff agains a current trunk tree Carry over R= and SR=
Attachment #90508 - Flags: superreview+
Attachment #90508 - Flags: review+
Just so people notice the user pref is back to "mail.compose.other.header" ;-)
Fix checked in the trunk
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Just nitpicking but this code's reuse of bad existing code makes it worse. My particular nit concerns calling document.getElementById in a loop, but I would also like to point out that menulists have an appendItem(label, value) method.
I reopen the bug in order to use the new patch...
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
All/all. My apologies if that is wrong.
OS: other → All
Hardware: PC → All
It's probably just me, but looking at the patches I can't see how you add a value to the arbitrary headers. For instance, if I want X-No-Archive: True, how do I get the "true" in there?
Jerry, you set the value for the headers in the compose window, just as you would for a To or a Cc header.
By the way: We have the pref "mailnews.customHeaders" which can contain a header field list for searching etc., like "Message-ID: Newsgroups: Supersedes:". Here, we now have the pref "mail.compose.other.header" which takes a comma-separated list of such header fields, like "X-No-Archive,Expires". I suggest to unify these two list formats. And it would be nice to be able to add default values for this user fields...
Re-assigning to Jean-Francois Ducarroz as I don't have checkin privs, and my work is done here ;-)
Assignee: teilo+bugzilla → ducarroz
Status: REOPENED → NEW
Whiteboard: have fix
Comment on attachment 90928 [details] [diff] [review] Patch to move document.getElementById out of the loop and use selectNode.appendItem Works great, R=ducarroz
Attachment #90928 - Flags: review+
Comment on attachment 90928 [details] [diff] [review] Patch to move document.getElementById out of the loop and use selectNode.appendItem sr=bienvenu
Attachment #90928 - Flags: superreview+
Patch was checked in by timeless.
Status: NEW → RESOLVED
Closed: 22 years ago22 years ago
Resolution: --- → FIXED
*** Bug 165069 has been marked as a duplicate of this bug. ***
Whiteboard: have fix
OK using 2002-01-13 commercial trunk win98.
Status: RESOLVED → VERIFIED
Is this feature in Thunderbird yet?
Product: MailNews → Core
Still doesn't work in TB 1.5.0.2.
> Is this feature in Thunderbird yet? yes >Still doesn't work in TB 1.5.0.2. yes it does edit prefs.js add user_pref("mail.compose.other.header","Approved,Supersedes,Expires,Wibble,Whatever");
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: