Unverified Commit fc9b3a28 authored by IKEDA Soji's avatar IKEDA Soji Committed by GitHub
Browse files

Merge pull request #534 from ikedas/unavailable_mail_command by ikedas

Mail command unavailable in confirmation requests
parents d3f02169 5e7bd31d
[%# request_auth.tt2 ~%] [%# request_auth.tt2 ~%]
To: [% to %] To: [% to %]
[% IF user_interfaces.size() == 1 and user_interfaces.0 == 'mail' -%] [% IF conf.wwsympa_url && type == 'signoff' -%]
Subject: [% FILTER qencode %]AUTH [%keyauth%] [%cmd%][%END%]
[%- ELSIF type == 'signoff' -%]
Subject: [% FILTER qencode %][%|loc(conf.title,list.name)%]%1 / unsubscribing from %2[%END%][%END%] Subject: [% FILTER qencode %][%|loc(conf.title,list.name)%]%1 / unsubscribing from %2[%END%][%END%]
[%- ELSIF type == 'subscribe' -%] [%- ELSIF conf.wwsympa_url && type == 'subscribe' -%]
Subject: [% FILTER qencode %][%|loc(conf.title,list.name)%]%1 / subscribing to %2[%END%][%END%] Subject: [% FILTER qencode %][%|loc(conf.title,list.name)%]%1 / subscribing to %2[%END%][%END%]
[%- ELSE -%] [%- ELSE -%]
Subject: [% FILTER qencode %]AUTH [%keyauth%] [%cmd%][%END%] Subject: [% FILTER qencode %]AUTH [%keyauth%] [%cmd%][%END%]
...@@ -33,9 +31,11 @@ Subject: [% FILTER qencode %]AUTH [%keyauth%] [%cmd%][%END%] ...@@ -33,9 +31,11 @@ Subject: [% FILTER qencode %]AUTH [%keyauth%] [%cmd%][%END%]
[%- END -%] [%- END -%]
[% IF not conf.wwsympa_url -%] [% IF conf.wwsympa_url -%]
[% sympa = BLOCK %][% conf.email %]@[% domain %][%END -%] [%|loc%]If you want this action to be taken, please hit the following link:[%END%]
[%|loc(sympa,"AUTH ${keyauth} ${cmd}") %]If you want this action to be taken, please [% 'auth' | url_abs([keyauth,type],{email=>to}) ~%]
[%- ELSE -%]
[%|loc("${conf.email}@${domain}","AUTH ${keyauth} ${cmd}") %]If you want this action to be taken, please
- reply to this mail - reply to this mail
OR OR
...@@ -43,10 +43,7 @@ OR ...@@ -43,10 +43,7 @@ OR
%2 %2
OR OR
- click on the following URL[% END %] - click on the following URL[% END %]
[% sympa | mailtourl({subject => "AUTH ${keyauth} ${cmd}"}) %] [% "${conf.email}@${domain}" | mailtourl({subject => "AUTH ${keyauth} ${cmd}"}) %]
[%- ELSE -%]
[%|loc%]If you want this action to be taken, please hit the following link:[%END%]
[% 'auth' | url_abs([keyauth,type],{email=>to}) ~%]
[%- END %] [%- END %]
[%|loc-%]If you do not want this action to be taken, you can safely ignore this message.[% END %] [%|loc-%]If you do not want this action to be taken, you can safely ignore this message.[% END %]
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