Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Feature request: set variables from addressbook fields #25
Not sure why you closed this item (twice)? I am reopening it from here to start the discussion.
Ok, so let's start by adding some new field switches for the %from%, %to% %cc% and %bcc% variables; from the Edit Contact pages we could potentially extract:
at the moment these items are just concatenated with space, like this:
This would result in something like this:
John Smith @JoeSmith123 Toronto Canada
leaving out the missing parts. It might be helpful to be able to add a delimiter (ideally html) so be able to make a vertical list (maybe even a table). Maybe, by adding this as (optional) literal last parameter it may be more useful, something like this:
If the user spends time feeding the AB, it is likely to contain relevant information that can be used to enrich a response specific to the recipient(s).
A minimum (or a little more) of ST4 "conditional" such as [[...]] should allow you to take advantage of the information in the address book or, on the contrary, to manage its absence.
At the moment AB lookup is only employed when the option "resolve names from address book" is activated. It means it will override whatever the user has give in his address line and use what you have in your AB for the name / firstname / lastname parameters.
not quite. The Adressbook item is derived using the email address using one of the standard headers:
it's documented here: http://smarttemplate4.mozdev.org/variables.html#to and can also be looked up in the variables tab on the variables tab on the "advanced" section of the SmartTemplate⁴ Settings window:
One thing I am missing there, however, is the in-depth description of the ?? operator which is relatively new.
I should probably also add a chapter about the
By the way, if you have multiple arguments, don't be tempted to add space after the commas, my parser doesn't like that!
sure let's expand; I see there is also an address field in work, so let me expand the variables, like this:
Contact (no prefixes here)
Still work in progress - I am leaving for Germany for the next 10 days; going to bring the laptop, maybe going to release a trial version here when I get some programming time in between. It appears that some AB fields are still not working, most likely just naming issues...