Open Bug 178263 Opened 20 years ago Updated 1 year ago

placeholders / variables in message templates

Categories

(MailNews Core :: Composition, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

People

(Reporter: vdvo, Unassigned)

References

(Blocks 2 open bugs)

Details

In message teplates, I would like to be able to use codes (or "tags", if you
prefer) as placeholders for some information that would automatically be filled
in when using the template. There would be a code for the current date, time,
for the signature, for the most common message headers, and for the placement of
the cursor when the user composes a message using that template. Also, for when
templates for replying (bug 21210) and forwarding (?) are implemented, there
should be codes for the headers of the original message, for the quoted text of
the original message, and perhaps the list of attachments in original message.
Also, some kind of solution for the "Re: " of the reply would have to be created
with the codes (perhaps a code to insert text xyz but only if it's not already
there; or allow only the hardcoded "Re:").

Then, the current built-in template for replying could be expressed as, e.g.:
Subject = "<Re: (only once)><original subject>"
Body = "<original from> wrote:
<original text>
<cursor>
<signature>"

One could change the body to, for example:
"Hello <original from name or email>!
<cursor>
On <original date>, you wrote:
<original text>
<signature>"
*** Bug 189442 has been marked as a duplicate of this bug. ***
There should also be a recipient tag that replaces the recipient's name. Of
course, that would require Mozilla to create a new mail for every recipient. If
this gets implemented, please make sure that failed send operations result in
saving the message to the unsent message folder. 
confirming.

changing summary for clarification and easier searching:
was:  placeholders in message templates
now:  placeholders / variables in message templates
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: placeholders in message templates → placeholders / variables in message templates
Product: MailNews → Core
Blocks: 273277
(In reply to comment #0)

> 
> Then, the current built-in template for replying could be expressed as, e.g.:
> Subject = "<Re: (only once)><original subject>"
> Body = "<original from> wrote:
> <original text>
> <cursor>
> <signature>"
> 
> One could change the body to, for example:
> "Hello <original from name or email>!
> <cursor>
> On <original date>, you wrote:
> <original text>
> <signature>"

Well, this would be great feature... I search for a this since I changed from "TheBat! profesional" to thunderbird...
I use lots of HTML templates ( http://www.lahr.net/martin/tb1.jpg ) and it would be an important step to use any kind of template for replys (bug 21210).... 

I hope somebody creates an extension for that problem... but it should definatly be a core feature ;-))
Assignee: ducarroz → nobody
QA Contact: esther → composition
Product: Core → MailNews Core
Blocks: 218624
Duplicate of this bug: 519082
You need to log in before you can comment on or make changes to this bug.