Bugzilla@Mozdev – Bug 25152
Feature Request: Ability to set "Subject" field for new messages
Last modified: 2015-07-09 04:51:57
You need to log in before you can comment on or make changes to this bug.
Wondering if it would be possible to have the Subject field filled in automatically when you compose a new e-mail. Ideally it would be identity dependent, possibly support for variables. For example, I work in a chemical stockroom where we inform students when they have received a package, and send copies of the packing slip to the office once they are picked up. I have two identities, one 'receiving@chem' and the other 'packingslip@chem'. Any e-mails from the first would have a subject "Package from " automatically and I could add just the company it came from. E-mails from the second identity would have the subject "Packing Slip". Seems like it would be trivial to add at least basic support of this, but I haven't looked at the code. This would definitely be a time-saver for me, and I imagine others as well. Otherwise, this is a great add-on. Keep up the good work.
(In reply to comment #0) > Wondering if it would be possible to have the Subject field filled in > automatically when you compose a new e-mail. Ideally it would be identity > dependent, possibly support for variables. > > For example, I work in a chemical stockroom where we inform students when they > have received a package, and send copies of the packing slip to the office once > they are picked up. I have two identities, one 'receiving@chem' and the other > 'packingslip@chem'. Any e-mails from the first would have a subject "Package > from " automatically and I could add just the company it came from. E-mails > from the second identity would have the subject "Packing Slip". > > Seems like it would be trivial to add at least basic support of this, but I > haven't looked at the code. It is probably relatively trivial to write the code that fills the subject line, the main work here is to build a user interface (without overcrowding the templates dialog and confusing the users). It would probably be okay for just the "new mail" case (as there is extra space in the configuration) and it is definitely an edge case (not many users would need this feature). I will discuss this with Marc, to see what he thinks of it.
One problem with this is that it need to support resolving the "Normal" ST4 variables first, and injecting them in the subject text field afterwards. It also needs to be able to contain the other variables in order to build a meaningful subject line. Therefore the current syntax %variable(arguments)% is not ideal for this; if we stick to this Syntax it could be more like %setsubject_start% %setsubject_end% And then could contain the other variables. This needs some careful consideration, because it can be a lot of work to implement.
*** This bug has been marked as a duplicate of bug 25904 ***