Commit 1f3cb027 authored by sikeda's avatar sikeda
Browse files

[feature][#10005][Proposed by Y. Baouch, univ. of Colorado] New...

[feature][#10005][Proposed by Y. Baouch, univ. of Colorado] New dmarc_protection.phrase parameter values "list_for_email" and "list_for_name" to give the from field "List (on behalf of SENDER) <munged_email>".

This will solve the problem reported by several listmasters: If DMARC protection feature munges originator field, the many mail client caches such address by replaced display name, and misleadingly associates the list address with the name of sender.


git-svn-id: https://subversion.renater.fr/sympa/branches/sympa-6.2-branch@12352 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
parent ea114da5
......@@ -1882,9 +1882,11 @@ our %pinfo = (
'phrase' => {
'format' => [
'display_name', 'name_and_email',
'name_via_list', 'name_email_via_list'
'name_via_list', 'name_email_via_list',
'list_for_email', 'list_for_name',
],
'synonym' => {'name' => 'display_name'},
'synonym' =>
{'name' => 'display_name', 'prefixed' => 'list_for_name'},
'default' => {'conf' => 'dmarc_protection_phrase'},
'gettext_id' => "New From name format",
'occurrence' => '0-1',
......
......@@ -3507,6 +3507,40 @@ sub dmarc_protect {
$language->gettext_sprintf('via %s Mailing List',
$list->{'name'});
}
} elsif ($phraseMode eq 'list_for_email') {
if ($listtype eq 'owner') {
$newName = $language->gettext_sprintf(
'Owner Address of %s Mailing List',
$list->{'name'});
} elsif ($listtype eq 'editor') {
$newName = $language->gettext_sprintf(
'Editor Address of %s Mailing List',
$list->{'name'});
} else {
$newName =
$language->gettext_sprintf('%s Mailing List',
$list->{'name'});
}
$newComment = $language->gettext_sprintf(
'on behalf of %s', $origName);
} elsif ($phraseMode eq 'list_for_name') {
if ($listtype eq 'owner') {
$newName = $language->gettext_sprintf(
'Owner Address of %s Mailing List',
$list->{'name'});
} elsif ($listtype eq 'editor') {
$newName = $language->gettext_sprintf(
'Editor Address of %s Mailing List',
$list->{'name'});
} else {
$newName =
$language->gettext_sprintf('%s Mailing List',
$list->{'name'});
}
$newComment = $language->gettext_sprintf(
'on behalf of %s', $origFrom);
} else {
$newName = $origName;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment