r3c / custom_from

Plugin for Roundcube webmail, enable virtual email sender input.
https://plugins.roundcube.net/#/packages/r3c/custom-from
Other
20 stars 16 forks source link

Avoid overiding values extracted form different headers #12

Closed kermit-the-frog closed 10 years ago

kermit-the-frog commented 10 years ago

If the same mailto is extracted from diffent parts of the header, the settings from the last extraction overrides any other extraction.

Example say you have $rcmail_config['custom_from_header_rules'] = 'Envelope-To=deo;to=de'; And the header contains To: me@bar.com ... Envelope-To: me@bar.com And your domain is foo.com The address me@bar.com will not be choosen because the settings for me@bar.com will both be saved in $recipients['me@bar.com'] with the one for the To-Header overriding the one for the Envelope-To-Header. That results in not taking me@bar.com becaues $recipients['me@bar.com']['match_other'] will be false.