First thing: I’m amazed that someone uses that script
The only thing that comes in my mind is to use the descriptive part of the From: header
For example, if the From header is
From: Saito Benkei <email@example.com>
I can make the user comparison on the “Saito Benkei” part and not on “saitobenkei” mail address part.
It is however necessary that each client of that user produces an equal header description (same spaces, lower/uppercases, etc…)
For example:, if the user has Thunderbird on the PC and another mail client on his/her smartphone, both must fill in the From field with the same description.
So, i can’t have Thunderbird that produces “
Saito Benkei <firstname.lastname@example.org>” and smartphone’s email client that produces “
Saito Benkei Mobile <email@example.com>”.
Both clients have to compile the From header with “
Saito Benkei <firstname.lastname@example.org>”
So you have to configure in Thunderbird the “Your Name” field in the account as “Saito Benkei”. Same thing in the smartphone’s email-client.
Here there’s a untested version of the script (v0.10):
extract the script (it’s contain
addsignatures script only) and copy on
chown root:adm /var/lib/nethserver/mail-disclaimers/scripts/addsignatures
chmod 755 /var/lib/nethserver/mail-disclaimers/scripts/addsignatures
edit the file
addsignatures and change the
READFROMDESC variable’s value to 1
then modify your
/var/lib/nethserver/mail-disclaimers/domain.tld/users/users.txt changing the first field of every line with the exact description that you put in your email client
If your line was
You have to change in
So you can have multiple lines with the same email address but different users.
Please, tell me if it works!
As usuaI have no responsibility for the loss of data, blah, blah blah…