astehlik / thunderbird-addon-subaddress-reply

Add-on for Thunderbird that supports replies with subaddresses.
https://addons.thunderbird.net/de/thunderbird/addon/reply-with-subaddress/
1 stars 2 forks source link

thunderbird-addon-subaddress-reply does not work #3

Open JAtC-nl opened 1 year ago

JAtC-nl commented 1 year ago

I have my own e-mail domain (say @surname.org) and have configured the catch all feature. My standard address is ab@surname.org. So if some one sends a mail to ab@surname.org it is delivered in my thunderbird inbox, also are mails to ab.xy@surname.org delivered to my inbox. Without your add-on, a reply to a mail in my inbox which is addressed to ab.xy@surname.org is send from the address ab@surname.org. Installing your add-on does not change this behavior. I installed the add-on because I would like to see ab.xy@surname.org in stead of ab@surname.org as sender in the above example. Kind regards Jan Arnoud ten Cate

JAtC-nl commented 1 year ago

Ah, I see, it works as advertised with ab+xy@surname.org but not with ab.xy@surname.org. Could you make the add-on work with every *@surname.org?

CrysK commented 1 year ago

I can only agree with that. An extension to @.surname.org would also be important for me resp. *@ab.surname.org.

Anyway, I do not understand the restriction. It has no use at all.

Johann-Tree commented 1 year ago

To be able to use a . in addition to - and + sign before the @ you can change the line 44 in background.js to the following: const subaddressRegex = new RegExp(identityMailUser + "[\-+\.].+@" + identityMailDomain, "i");

I tried it out and it works!