Bugzilla@Mozdev – Bug 26597
Add operator to make address part arguments (name,firstname,mail etc.) optional
Last modified: 2019-07-28 07:19:29
You need to log in before you can comment on or make changes to this bug.
New operator ?? can be used to make parts of an address header optional. ??name ??mail ??firstname ??lastname ??bracketMail(..) the part will be omitted if other parts return something. Example: %from(name,??mail)% If no name is given: xyz.com ==> xyz.com If name is given: Fred <xyz.com> ==> Fred
Created an attachment (id=8542) [details] 1.6 prerelease 216 Test version. You can use ?? on any argument of %to(arg)% %from(arg)% %cc(arg)% %bcc(arg)% %reply-to(arg)%
Created an attachment (id=8545) [details] 1.6 prerelease 240 Added the possibility to add ?? as optional parameter to the bracketMail() / bracketName() arguments. If ?? is prefixed to any of the possible arguments of bracketMail, the bracket expressions will only show up if other parts of the header expression exist For instance %from(name,bracketMail(??angle))% will display either name <email> when a name can be found, or email when no name can be found and thus email is the only string returned. in this case the angle brackets are omitted.
Resolved Completed: Version 2.0 - 23/12/2018