First Last Prev Next    No search results available
Details
: Add operator to make address part arguments (name,firstna...
Bug#: 26597
: smarttemplate4
: General
Status: RESOLVED
Resolution: FIXED
: PC
: Windows NT
: unspecified
: P3
: enhancement
: ---

:
:
:
:
:
  Show dependency tree - Show dependency graph
People
Reporter: Axel Grude <axel.grude@gmail.com>
Assigned To: Axel Grude <axel.grude@gmail.com>

Attachments
1.6 prerelease 216 (503.20 KB, application/x-xpinstall)
2018-10-26 03:14, Axel Grude
no flags Details
1.6 prerelease 240 (504.60 KB, application/x-xpinstall)
2018-10-28 10:34, Axel Grude
no flags Details


Note

You need to log in before you can comment on or make changes to this bug.

Related actions


Description:   Opened: 2018-10-26 03:07
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
------- Comment #1 From Axel Grude 2018-10-26 03:14:24 -------
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)%
------- Comment #2 From Axel Grude 2018-10-28 10:34:05 -------
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.
------- Comment #3 From Axel Grude 2019-07-28 07:19:29 -------
Resolved Completed: Version 2.0 - 23/12/2018

First Last Prev Next    No search results available