jobisoft / quicktext

An extension for Thunderbird that lets you create templates that can be easily inserted into your own emails.
Mozilla Public License 2.0
184 stars 52 forks source link

How can I set a conditional "prefix" for a person (not the subject line) e.g. Dr. or Prof.? #342

Open ReaderGuy42 opened 1 year ago

ReaderGuy42 commented 1 year ago

Some of my contacts have name prefixes, such as Dr.

What function in my script can I use so that it checks that IF there is such a prefix to that contact it puts it instead of Ms./Mr.?

Currently in my GoodMorning-Formal script part I have this line:

return "Dear Ms. [[TO=lastname|, dear Ms. ]],";

which checks to see if there are multiple addressees and then adds their last name/s.

How can I add something like [[prefix|Ms.]] so it depends on the existence of a contact's prefix?

Thanks!

ReaderGuy42 commented 1 year ago

Any ideas?