Commit 8c9eb719 authored by IKEDA Soji's avatar IKEDA Soji
Browse files

mail templates: If web interface is available, use it for command links.

parent 9d31cceb
[%# certif_warning.tt2 ~%]
Subject: [% FILTER qencode %][%|loc%]near expiration of your certificate[%END%][%END%]
[%|loc(expiration_date)%]Your authentication certificate will expire on %1.[%END%]
......@@ -8,6 +9,6 @@ Subject: [% FILTER qencode %][%|loc%]near expiration of your certificate[%END%][
[%|loc(conf.email,domain)%]To receive them again, renew your certificate with your certification authority
and send a signed message to %1@%2
or
click: [%END%][% | mailtourl({subject => 'WHICH'}) ~%]
[% conf.email %]@[% domain %]
[%~ END %]
click: [%END%][% "${conf.email}@${domain}" | mailtourl({subject => 'WHICH'}) %]
[%# end certif_warning.tt2 ~%]
......@@ -115,13 +115,15 @@ You are not allowed to send this message for the following reason:[%END%]
[% ELSE -%]
[%|loc%]The following address is not a known mailing list:[%END%]
[% recipient %]
[% recipient %]
[%|loc%]To find out the correct list name, ask for this server's lists directory:[%END%]
[% | mailtourl({subject => 'WHICH'}) ~%]
[% conf.email %]@[% domain %]
[%~ END %]
[% IF conf.wwsympa_url -%]
[% 'my' | url_abs %]
[%- ELSE -%]
[% "${conf.email}@${domain}" | mailtourl({subject => 'WHICH'}) %]
[%- END %]
[%|loc(conf.listmaster_email,domain)%]For further information, please contact %1@%2[%END%]
......@@ -157,3 +159,5 @@ X-Sympa-Attach: yes
[% END -%]
--[% boundary %]--
[%# end delivery_status_notification.tt2 ~%]
[%# expire_deletion.tt2 ~%]
From: [% fromlist %]
Subject: [% FILTER qencode %][%|loc(list.name)%]Removed from %1[%END%][%END%]
......@@ -6,6 +7,10 @@ Subject: [% FILTER qencode %][%|loc(list.name)%]Removed from %1[%END%][%END%]
because you didn't confirm your subscription.[%END%]
[%|loc%]You can subscribe again:[%END%]
[% | mailtourl({subject => "sub ${list.name}"}) ~%]
[%conf.email%]@[%domain%]
[%~ END %]
[% IF conf.wwsympa_url -%]
[% 'subscribe' | url_abs([list.name]) %]
[%- ELSE -%]
[% "${conf.email}@${domain}" | mailtourl({subject => "sub ${list.name}"}) %]
[%- END %]
[%# end expire_deletion.tt2 ~%]
......@@ -2,16 +2,20 @@
Subject: [% FILTER qencode %][%|loc(list.name)%]resubscription to %1[%END%][%END%]
[%|loc(list.name,domain,user.email)%]You have been subscriber of list %1@%2 with email %3 for 1 year or more.[%END%]
[% "${conf.email}@${domain}" | mailtourl({subject => "sub ${list.name}"}) %]
[% IF conf.wwsympa_url -%]
[% 'subscribe' | url_abs([list.name]) %]
[%|loc%]Everything about this list: [%END ~%]
[% 'info' | url_abs([list.name]) %]
[%|loc%]Unsubscription:[%END%] [%""~%]
[% 'signoff' | url_abs([list.name]) %]
[% 'signoff' | url_abs([list.name],{email => user.email}) %]
[% ELSE -%]
[% "${conf.email}@${domain}" | mailtourl({subject => "sub ${list.name}"}) %]
[%|loc%]Information about this list: [%END ~%]
[% "${conf.email}@${domain}" | mailtourl({subject => "info ${list.name}"}) %]
[%|loc%]Unsubscription:[%END%] [%""~%]
[% "${conf.email}@${domain}" | mailtourl({subject => "sig ${list.name} ${user.email}"}) %]
[% END -%]
[%# end expire_warning1.tt2 ~%]
......@@ -3,16 +3,20 @@ From: [% fromlist %]
Subject: [% FILTER qencode %][%|loc(list.name)%]resubscription to %1[%END%][%END%]
[%|loc(list.name,domain,user.email)%]You have been subscriber of list %1@%2 with email %3 for 1 year or more.[%END%]
[% "${conf.email}@${domain}" | mailtourl({subject => "sub ${list.name}"}) %]
[% IF conf.wwsympa_url -%]
[% 'subscribe' | url_abs([list.name]) %]
[%|loc%]Everything about this list: [%END ~%]
[% 'info' | url_abs([list.name]) %]
[%|loc%]Unsubscription:[%END%] [%""~%]
[% 'signoff' | url_abs([list.name]) %]
[% 'signoff' | url_abs([list.name],{email => user.email}) %]
[% ELSE -%]
[% "${conf.email}@${domain}" | mailtourl({subject => "sub ${list.name}"}) %]
[%|loc%]Information about this list: [%END ~%]
[% "${conf.email}@${domain}" | mailtourl({subject => "info ${list.name}"}) %]
[%|loc%]Unsubscription:[%END%] [%""~%]
[% "${conf.email}@${domain}" | mailtourl({subject => "sig ${list.name} ${user.email}"}) %]
[% END -%]
[%# end expire_warning2.tt2 ~%]
[%# global_remind.tt2 ~%]
Subject: [% FILTER qencode %][%|loc%]Subscription summary[%END%][%END%]
X-Sympa-NoWrap: yes
......@@ -10,8 +11,12 @@ X-Sympa-NoWrap: yes
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[% FOREACH l = lists -%]
[% l %] [% | mailtourl({subject => "sig ${l} ${user.email}"}) ~%]
[% conf.email %]@[% domain %]
[%~ END %]
[% IF conf.wwsympa_url -%]
[% l %] [% 'signoff' | url_abs([l],{email => user.email}) %]
[%- ELSE -%]
[% l %] [% "${conf.email}@${domain}" | mailtourl({subject => "sig ${l} ${user.email}"}) %]
[%- END %]
[% END -%]
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[%# end global_remind.tt2 ~%]
[%# list_unknown.tt2 ~%]
To: [% to %]
Subject: [% FILTER qencode %][%|loc%]List unknown[%END%][%END%]
Content-Type: multipart/report; report-type=delivery-status;
......@@ -10,13 +11,15 @@ Content-Description: Notification
[%|loc%]The following address is not a known mailing list:[%END%]
[% list %]
[% list %]
[%|loc%]To find out the correct list name, ask for this server's lists directory:[%END%]
[% | mailtourl({subject => 'WHICH'}) ~%]
[% conf.email %]@[% domain %]
[%~ END %]
[% IF conf.wwsympa_url -%]
[% 'my' | url_abs %]
[%- ELSE -%]
[% "${conf.email}@${domain}" | mailtourl({subject => 'WHICH'}) %]
[%- END %]
[%|loc(conf.listmaster_email,domain)%]For further information, please contact %1@%2[%END%]
......@@ -38,3 +41,5 @@ Content-Type: text/rfc822-headers
[% header %]
--[% boundary %]--
[%# end list_unknown.tt2 ~%]
......@@ -50,13 +50,13 @@ Subject: [% FILTER qencode %][%|loc(list.name)%]Subscription request to list %1[
[%|loc(list.name)-%]Dear owner of list %1,
A user asked to be added as a subscriber to your list. If this is OK with you, you should click the following URL:[%END%]
[% IF user_interfaces.size() == 1 && user_interfaces.0 == 'mail' -%]
[% "${conf.email}@${domain}" | mailtourl({subject=>"AUTH ${keyauth} ADD ${list.name} ${who} ${gecos}"}) %]
[% IF conf.wwsympa_url -%]
[% 'auth' | url_abs([keyauth,'add',list.name],{email => user.email}) %]
[%- ELSE -%]
[% "${conf.email}@${domain}" | mailtourl({subject => "AUTH ${keyauth} ADD ${list.name} ${who} ${gecos}"}) %]
[%|loc(conf.email,domain)%]Or send a message to %1@%2 with the following subject:[%END%]
AUTH [%keyauth%] ADD [%list.name%] [%who%] [%gecos%]
[%- ELSE -%]
[% 'auth' | url_abs([keyauth,'add',list.name],{email=>user.email}) %]
[%- END %]
[% IF custom_attribute %]
......@@ -72,13 +72,13 @@ Subject: [% FILTER qencode %][%|loc(list.name)%]UNsubscription request from list
[%|loc(list.name)-%]Dear owner of list %1,
A user asked to be deleted from your list. If this is OK with you, you should click the following URL:[% END %]
[% IF user_interfaces.size() == 1 && user_interfaces.0 == 'mail' -%]
[% "${conf.email}@${domain}" | mailtourl({subject=>"AUTH ${keyauth} DEL ${list.name} ${who}"}) %]
[% IF conf.wwsympa_url -%]
[% 'auth' | url_abs([keyauth,'del',list.name],{email => user.email}) %]
[%- ELSE -%]
[% "${conf.email}@${domain}" | mailtourl({subject => "AUTH ${keyauth} DEL ${list.name} ${who}"}) %]
[%|loc(conf.email,domain)%]Or send a message to %1@%2 with the following subject:[%END%]
AUTH [%keyauth%] DEL [%list.name%] [%who%]
[%- ELSE -%]
[% 'auth' | url_abs([keyauth,'del',list.name],{email=>user.email}) %]
[%- END %]
[% ELSIF type == 'automatic_bounce_management' -%]
......@@ -140,3 +140,5 @@ Subject: [% FILTER qencode %][%|loc(list.name,type)%]List %1 / %2[%END%][%END%]
[% param0 %]
[% END %]
[%# end listowner_notification.tt2 ~%]
......@@ -15,7 +15,7 @@ Content-Disposition: inline
[% IF method == 'md5' -%]
[%|loc(mod_spool_size)%]%1 messages are awaiting moderation.[%END%]
[%|loc%]To view the messages, please click on the following URL:[%END%] <[% 'ticket' | url_abs([one_time_ticket]) %]>
[%|loc%]To view the messages, please click on the following URL:[%END%] [% 'ticket' | url_abs([one_time_ticket]) %]
[% IF request_topic -%][%|loc()%]This mailing list is configured to require topics; that's probably why this message went through the moderation process.[%END%]
......@@ -26,20 +26,18 @@ Content-Disposition: inline
[% ELSE -%]
[% IF method == 'md5' && ! request_topic -%]
[%|loc(list.name)%]To distribute the attached message in list %1:[%END%]
<[% | mailtourl({subject => "DISTRIBUTE ${list.name} ${modkey}"}) ~%]
[% conf.email %]@[% domain %]
[%~ END %]>
[% "${conf.email}@${domain}" | mailtourl({subject => "DISTRIBUTE ${list.name} ${modkey}"}) %]
[%|loc(conf.email,domain)%]Or send a message to %1@%2 with the following subject:[%END%]
DISTRIBUTE [% list.name %] [% modkey %]
[%|loc%]To reject it (it will be removed):[%END%]
<[% | mailtourl({subject => "REJECT ${list.name} ${modkey}"}) ~%]
[% conf.email %]@[% domain %]
[%~ END %]>
[% "${conf.email}@${domain}" | mailtourl({subject => "REJECT ${list.name} ${modkey}"}) %]
[%|loc(conf.email,domain)%]Or send a message to %1@%2 with the following subject:[%END%]
REJECT [% list.name %] [% modkey %]
[%END%]
[%|loc%]The messages moderating documentation:[%END%] <[% 'help' | url_abs(['admin-moderate.html']) %]>
[%|loc%]The messages moderating documentation:[%END%] [% 'help' | url_abs(['admin-moderate.html']) %]
[%- END%]
[%- END%]
[% IF spam_status != 'spam' -%]
......@@ -53,3 +51,5 @@ X-Sympa-Attach: yes
--[% boundary %]--
[%- END %]
[%# end moderate.tt2 ~%]
[%# removed.tt2 ~%]
From: [% fromlist %]
Subject: [% FILTER qencode %][%|loc(list.name)%]Removed from %1[%END%][%END%]
[%|loc(user.email,list.name,domain)%]Your email address (%1) has been removed from list %2@%3[%END%]
[%|loc%]You can subscribe again:[%END%]
[% | mailtourl({subject => "sub ${list.name}"}) ~%]
[% conf.email %]@[% domain %]
[%~ END %]
[% IF conf.wwsympa_url -%]
[% 'subscribe' | url_abs([list.name]) %]
[%- ELSE -%]
[% "${conf.email}@${domain}" | mailtourl({subject => "sub ${list.name}"}) %]
[%- END %]
[%# end removed.tt2 ~%]
......@@ -13,9 +13,7 @@ Content-Disposition: inline
[% 'request_topic' | url_abs([list.name,authkey]) %]
[%- ELSE -%][%|loc(list.name)%]To distribute the attached message in list %1, click on the URL:[%END%]
[% | mailtourl({subject => "CONFIRM ${authkey}"}) ~%]
[% conf.email %]@[% domain %]
[%~ END %]
[% "${conf.email}@${domain}" | mailtourl({subject => "CONFIRM ${authkey}"}) %]
[%|loc(conf.email,domain)%]Or send a message to %1@%2 with the following subject:[% END %]
CONFIRM [% authkey %]
......@@ -30,3 +28,5 @@ X-Sympa-Attach: yes
[%# Message is attached here. #%]
--[% boundary %]--
[%# end send_auth.tt2 ~%]
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