bugzilla.mozilla.org has resumed normal operation. Attachments prior to 2014 will be unavailable for a few days. This is tracked in Bug 1475801.
Please report any other irregularities here.

UI to change the "quoteline" by setting mailnews.reply_header_* preferences

NEW
Unassigned

Status

SeaMonkey
MailNews: Message Display
P3
enhancement
19 years ago
4 years ago

People

(Reporter: Henrik Lynggaard Hansen, Unassigned)

Tracking

(Depends on: 1 bug)

Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [2012 Fall Equinox])

Attachments

(2 attachments)

(Reporter)

Description

19 years ago
when replying Messenger normally adds a " <name> wrote on the <date>"

I would like this line to be customizable, preferably on a indiviul account
basis

Updated

19 years ago
Assignee: phil → nobody
Summary: ability to change the "quoteline" → [HELP WANTED] ability to change the "quoteline"
Whiteboard: [HELP WANTED]
Target Milestone: M20

Comment 1

19 years ago
Actually, we normally add "<name> wrote:", but I can see some utility in having
this be customizable. Adding to the help wanted list, and cc'ing alecf on the
multiple account angle.
(Reporter)

Comment 2

19 years ago
This should preferably work with parameters, like the old Fido readers.

$1 = name
$2 = date
$3 = newsgroups
$4 = origanization
$5 = subject

so the user can define something like

$1 on stardate $2 sendt $5 via subspace channel $3

Updated

19 years ago
QA Contact: lchiang → pmock

Comment 3

19 years ago
changing QA assigned to pmock@netscape.com

Updated

19 years ago
Keywords: helpwanted

Updated

19 years ago
Summary: [HELP WANTED] ability to change the "quoteline" → Ability to change the "quoteline"
Whiteboard: [HELP WANTED]
Target Milestone: M20

Comment 4

19 years ago
*** Bug 30484 has been marked as a duplicate of this bug. ***

Comment 5

19 years ago
The dup bug has some comments about configuring this in the prefs. Note, that
both suggestions and not exclusive.

If somebody wants to implement it: The current code is at
mozilla/mailnews/compose/nsMsgCompose.cpp, line 1139 - 1176.

Comment 6

19 years ago
s/and/are

Comment 7

17 years ago
*** Bug 91579 has been marked as a duplicate of this bug. ***

Comment 8

16 years ago
*** Bug 141583 has been marked as a duplicate of this bug. ***

Comment 9

16 years ago
See also bug 78101, make the reply line customizable with preset options.

Comment 10

16 years ago
If anyone want to do this, it's at:
http://lxr.mozilla.org/seamonkey/source/mailnews/compose/src/nsMsgCompose.cpp#1710
        case 4: // XXX implement user specified header

Comment 11

16 years ago
*** Bug 158709 has been marked as a duplicate of this bug. ***

Comment 12

16 years ago
Created attachment 93939 [details]
screenshot of mailer with different style for text of different authors

This is FidoNet mail reader GoldEd. It can automaticaly quote with prefix like
first letter of name and second name, and separate quote from different authors
with dofferent colors

Comment 13

16 years ago
I think not only header, but every quote line can be customizable, like in fido
readers. Then message with nimber of squtial quotes can look like this 
--------------------------------------------------------------------------
 OC>>> Subj. Atceros, ka k&#9566;dreiz bija kaut-k&#9566;da adrese... Vai vel ir?
 OC>>> WWW nepiedav&#9566;t.
 AK>> #######@sms.tele2.lv
 AK>> #######@sms.baltcom.lv
 AR> Man liekas, ka ¤&#9578;s adreses der&#1105;s tikai gad&#9578;jum&#9566;, ja cilv&#1105;kam ir Zelt&#9566;
 AR> Zivti&#9558;a. Man ir Tele2 piesl&#1105;gums un SMS netiek s&#9612;t&#9578;t&#9566;s caur e-pastu.
 AR> V&#1105;l diviem cilv&#1105;kiem ar&#9578;. Kur ir probl&#1105;ma?

Nezinu k&#9566; ir ar tele2, bet lmt lai var&#1105;tu sa&#9558;emt sms no e-maila, vispirms ir
j&#9566;at&#1111;auj to dar&#9578;t. To izdara aizs&#9612;tot sms "mail on" uz numuru 9915 (ja atmi&#9558;a
nevi&#1111;)

 AR> V&#1105;l viens jaut&#9566;jums: k&#9566; one.lv s&#9612;ta SMS t&#9566;, lai taj&#9566;s att&#1105;lotos
 AR> telefona numurs, nevis IP? Vai ar saviem sp&#1105;kim neizdosies to
 AR> izdar&#9578;t?
 AR> - tobi¤, man ir interesanti caur ko one.lv s&#9612;ta zi&#9558;ojumus.
------------------------------------------------------------------------
There AR, AK, OC - first letters from Name and second name of authors, ">", ">>"
and ">>>" - level of quoting.
Will be better, if possibly to set different font style for dofferent quote
levels.  

also, look to attachement - golded screenshot. it was very comfortable

Comment 14

16 years ago
Comment for #12 and #13:

I agree that would be a nice feature. But afaik all other mail clients would
have problems to quote such lines. It was a standard feature in the Fidonet.

Comment 15

16 years ago
This way uses the "The Bat!" mailing programm - the most powerfull mailer at
this time (mine and thousands other people's opinion). No problems at all...

http://www.ritlabs.com/the_bat/index.html - you can download a trial copy to
look how it works.

Comment 16

16 years ago
yes, many of my correspondents using "The Bat!" mailer woth this feature without
any problem...
OK! 

a) this feature (quoting with first letters) may be optional
b) template fot header, footer, and style separation for different quote level
not depend on a)

Comment 17

15 years ago
Taking.
Status: NEW → ASSIGNED
Keywords: helpwanted

Comment 18

15 years ago
No *really* taking this time
Assignee: nobody → teilo+bugzilla
Status: ASSIGNED → NEW

Comment 19

15 years ago
When you are implementing a configurable quoteline it would be nice to have
placeholders for common fields like "From:", "To:", "Subject:" and so on, e.g.
(examples with header, placeholder and value):

From: Stephan Slabihoud  (%f %F = %o)
 %f = Stephan
 %F = Slabihoud
 %o = Stephan Slabihoud
To: John Archer  (%t %T = %o)
 %t = John
 %T = Archer
 %O = John Archer

 %d = Date
 %D = Time
 %n = Newsgroup
 %s = Subject
 %% = %

A quoteline could be "In a mail from %d, you my friend %f has written to %t in
Newsgroup %n:"

Some of the placeholders are available in News only of course.

Thanx, for taking the bug 

Comment 20

15 years ago
I will first aim to get in 
%d -> date
%t -> time
%a -> author  (full name if present otherwise email)
%o -> organisation
%% -> %

I will later look at splitting author into firstname/lastname.

To and newsgroups (one and the same?) will possibly be added last
(imagine replying to a message posted 5 newsgroups/emails!)

Comment 21

15 years ago
> To and newsgroups (one and the same?) will possibly be added last
> (imagine replying to a message posted 5 newsgroups/emails!)

I see no problem here. Just use the name of the group that is active when the
user quotes the message.

It would be fine to have a placeholder for the recipient as well, for example to
create quotelines like: "In a message <from> wrote to <recipient>:"

Comment 22

15 years ago
#20: great, adding %d -> date and %t -> time is just the right way to start
dealing with this bug; indeed, besides <name> those field are simply the minimum
necessary to keep track of (of the steps in) a discussion all within the <body>
of msgs.

Comment 23

15 years ago
*** Bug 212189 has been marked as a duplicate of this bug. ***

Comment 24

15 years ago
I believe that either KMail or Sylpheed has this functionality already, in case
that helps development at all...

Comment 25

15 years ago
*** Bug 91584 has been marked as a duplicate of this bug. ***
This is already possible:

// Change the reply header
// 0 - No Reply-Text
// 1 - <Author> wrote:   - Netscape 3.xx/4.xx style
// 2 - On <date> <author> wrote:
// 3 - user-defined string. Use the prefs below in conjuction with this.
user_pref("mailnews.reply_header_type", 3);
// If you set 3 for the pref above then you may set the following prefs.
// The end result will be <authorwrote><separator><ondate><colon>
user_pref("mailnews.reply_header_authorwrote", "%s said the following");
user_pref("mailnews.reply_header_ondate", "on %s");
user_pref("mailnews.reply_header_separator", " ");
user_pref("mailnews.reply_header_colon", ":"); 

Taken from <http://www.geocities.com/pratiksolanki/#mailnews>.

Suggest WONTFIX.

Comment 27

15 years ago
If Moz Mail has the ability to do it then I think this bug should be adding UI
for it to configure it unless the default is changed to be something that
contains the date of the previous mail. Thoughts?

Comment 28

15 years ago
Vidar Braut Haarr:

Please, see to http://bugzilla.mozilla.org/attachment.cgi?id=93939&action=view ,
posts 13, 19 - and see the differences.
Product: Browser → Seamonkey

Comment 29

12 years ago
changed job shortly after taking this bug and haven't done any work on it since so reassigning default owner.
Assignee: teilo+bugzilla → mail
QA Contact: pmock

Comment 30

11 years ago
So nobody is working on this? Pity! 

Comment 31

11 years ago
A UI workaround is the Newsworthy extension that adds a tab to the Options/ Preferences dialog. This is a transient fix as the Dev can loose interest.

Nit with present prefs is a single "%s" placeholder is used for three distinct variables. Are there any other variables that do not seem to be documented?

I strongly believe an ability to cite the message ID of news post being replied to should be insertable into the reply header.  This is a feature of many newsreaders. Given that some MessageID patches have landed in core, can they be tapped for this and have the ID be a clickable link to the posting.

Comment 32

10 years ago
Shouldn't this be MailNews: Composition rather than Message Display?

There is also MailNews Core bug 171822 with its various dependencies, not considering comment #12 though on annotating the quote bars with names.

(In reply to comment #31)
> Nit with present prefs is a single "%s" placeholder is used for three distinct
> variables. Are there any other variables that do not seem to be documented?

No, not that I know of. Those prefs are fed into nsTextFormatter::smprintf() which is essentially applying the C-style printf() syntax ("%s" = string).

Comment 33

9 years ago
(In reply to comment #12)
> Created an attachment (id=93939) [details]
> screenshot of mailer with different style for text of different authors

bug 330566

Comment 34

9 years ago
(In reply to comment #32)
> Shouldn't this be MailNews: Composition rather than Message Display?
> 

Display seems most correct. However the summary would be more accurate if it read:
"Provide UI to customize attribution line of quoted content in message pane."

The Extension named in Comment #31 has not been maintained and is no longer a workaround for missing UI tab in Options/Preferences dialog.

Further more, inclusion of more text fields is desirable. Particularly the Msg ID field for News attribution.

Comment 35

6 years ago
Created attachment 611785 [details]
Composition preferences in SM 2.10

(In reply to Vidar Haarr (not reading bugmail) from comment #26)
> user_pref("mailnews.reply_header_type", 3);

As an update here, note that this preference setting is now available in the "Composition" settings after bug 694514, so that's a partial solution to the initial problem for which this bug was opened.

Updated

6 years ago
Depends on: 694514
(In reply to rsx11m from comment #35)
> Created attachment 611785 [details]
> Composition preferences in SM 2.10
> 
> (In reply to Vidar Haarr (not reading bugmail) from comment #26)
> > user_pref("mailnews.reply_header_type", 3);
> 
> As an update here, note that this preference setting is now available in the
> "Composition" settings after bug 694514, so that's a partial solution to the
> initial problem for which this bug was opened.

Yes, but the other ones are still only available from about:config

Since comment #26, one more type has been added (new type 3, _authorwrote _separator _ondate _colon). See http://kb.mozillazine.org/Reply_header_settings#Preferences for details
In addition, Type 4 is supposedly "User defined" according to the C++ code but currently not foreseen by the SeaMonkey Preferences UI and, if used, gives the same result as type 1.
Summary: Ability to change the "quoteline" → UI to change the "quoteline" by setting mailnews.reply_header_* preferences
Whiteboard: [2012 Fall Equinox]

Comment 37

4 years ago
Looks like the backend for this is created in bug 107884.
This bug can be used for the UI part.
Depends on: 107884
You need to log in before you can comment on or make changes to this bug.