mlmmj

changeset 32d3f7e3b523

Richer MIME list texts with inline messages (English only so far)
author Ben Schmidt
date Mon, 20 Sep 2010 02:52:22 +1000
parents 5edfa9eef6c7
children fd77dd58bde1
files ChangeLog listtexts/en/access listtexts/en/maxmailsize listtexts/en/moderation listtexts/en/moderation-poster listtexts/en/notintocc listtexts/en/subonlypost
diffstat 7 files changed, 130 insertions(+), 21 deletions(-) [+]
line diff
     1.1 --- a/ChangeLog	Mon Sep 20 02:31:03 2010 +1000
     1.2 +++ b/ChangeLog	Mon Sep 20 02:52:22 2010 +1000
     1.3 @@ -1,3 +1,4 @@
     1.4 + o Richer MIME list texts with inline messages (English only so far)
     1.5   o Add $random0$ through $random5$ substitutions
     1.6   o Add a $subject$ substitution for list texts
     1.7   o Changes to how $originalmail$ works -- existing installations will change
     2.1 --- a/listtexts/en/access	Mon Sep 20 02:31:03 2010 +1000
     2.2 +++ b/listtexts/en/access	Mon Sep 20 02:52:22 2010 +1000
     2.3 @@ -1,14 +1,32 @@
     2.4  Subject: Post to $listaddr$ denied
     2.5 +MIME-Version: 1.0
     2.6 +Content-Type: multipart/mixed;
     2.7 + boundary="=_$random0$$random1$_="
     2.8 +Content-Transfer-Encoding: 8bit
     2.9 +
    2.10 +--=_$random0$$random1$_=
    2.11 +Content-Type: text/plain; charset=utf8
    2.12 +Content-Transfer-Encoding: 8bit
    2.13  
    2.14  Hi, this is the mlmmj program managing the mailinglist
    2.15  
    2.16  $listaddr$
    2.17  
    2.18 -I'm sorry to inform you that your message could not be delivered to the
    2.19 -list. Your mail was rejected because it matched a rule set up by the
    2.20 -list administrator.
    2.21 +I'm sorry to inform you that your message with subject line
    2.22 +
    2.23 +$subject$
    2.24 +
    2.25 +could not be delivered to the list. Your mail was rejected because it
    2.26 +matched a rule set up by the list administrator.
    2.27  
    2.28  Thanks.
    2.29  
    2.30 ---- Below this line are the first 100 lines of the denied message --->
    2.31 - $originalmail$
    2.32 +(The denied message is below.)
    2.33 +
    2.34 +--=_$random0$$random1$_=
    2.35 +Content-Type: message/rfc822
    2.36 +Content-Transfer-Encoding: 8bit
    2.37 +Content-Disposition: inline; filename="message.eml"
    2.38 +
    2.39 +$originalmail1000000000$
    2.40 +--=_$random0$$random1$_=--
     3.1 --- a/listtexts/en/maxmailsize	Mon Sep 20 02:31:03 2010 +1000
     3.2 +++ b/listtexts/en/maxmailsize	Mon Sep 20 02:52:22 2010 +1000
     3.3 @@ -1,4 +1,12 @@
     3.4  Subject: Post to $listaddr$ denied due to size limit
     3.5 +MIME-Version: 1.0
     3.6 +Content-Type: multipart/mixed;
     3.7 + boundary="=_$random0$$random1$_="
     3.8 +Content-Transfer-Encoding: 8bit
     3.9 +
    3.10 +--=_$random0$$random1$_=
    3.11 +Content-Type: text/plain; charset=utf8
    3.12 +Content-Transfer-Encoding: 8bit
    3.13  
    3.14  Hi, this is the mlmmj program managing the mailinglist
    3.15  
    3.16 @@ -9,5 +17,12 @@
    3.17  
    3.18  Thanks.
    3.19  
    3.20 ---- Below this line are the first 100 lines of the denied message --->
    3.21 +(The beginning of the denied message is below.)
    3.22 +
    3.23 +--=_$random0$$random1$_=
    3.24 +Content-Type: message/rfc822
    3.25 +Content-Transfer-Encoding: 8bit
    3.26 +Content-Disposition: inline; filename="message.eml"
    3.27 +
    3.28   $originalmail$
    3.29 +--=_$random0$$random1$_=--
     4.1 --- a/listtexts/en/moderation	Mon Sep 20 02:31:03 2010 +1000
     4.2 +++ b/listtexts/en/moderation	Mon Sep 20 02:52:22 2010 +1000
     4.3 @@ -1,4 +1,12 @@
     4.4  Subject: Moderation needed for $listaddr$
     4.5 +MIME-Version: 1.0
     4.6 +Content-Type: multipart/mixed;
     4.7 + boundary="=_$random0$$random1$_="
     4.8 +Content-Transfer-Encoding: 8bit
     4.9 +
    4.10 +--=_$random0$$random1$_=
    4.11 +Content-Type: text/plain; charset=utf8
    4.12 +Content-Transfer-Encoding: 8bit
    4.13  
    4.14  Hello,
    4.15  
    4.16 @@ -6,6 +14,12 @@
    4.17  
    4.18  $listaddr$
    4.19  
    4.20 +with subject line:
    4.21 +
    4.22 +$subject$
    4.23 +
    4.24 +It is below.
    4.25 +
    4.26  To accept it send a message to:
    4.27  
    4.28  $moderateaddr$
    4.29 @@ -18,5 +32,10 @@
    4.30  
    4.31  $moderators$
    4.32  
    4.33 ---- Below this line are the first 100 lines of the message up for moderation --->
    4.34 - $originalmail$
    4.35 +--=_$random0$$random1$_=
    4.36 +Content-Type: message/rfc822
    4.37 +Content-Transfer-Encoding: 8bit
    4.38 +Content-Disposition: inline; filename="message.eml"
    4.39 +
    4.40 +$originalmail1000000000$
    4.41 +--=_$random0$$random1$_=--
     5.1 --- a/listtexts/en/moderation-poster	Mon Sep 20 02:31:03 2010 +1000
     5.2 +++ b/listtexts/en/moderation-poster	Mon Sep 20 02:52:22 2010 +1000
     5.3 @@ -1,11 +1,30 @@
     5.4  Subject: Post waiting for approval
     5.5 +MIME-Version: 1.0
     5.6 +Content-Type: multipart/mixed;
     5.7 + boundary="=_$random0$$random1$_="
     5.8 +Content-Transfer-Encoding: 8bit
     5.9 +
    5.10 +--=_$random0$$random1$_=
    5.11 +Content-Type: text/plain; charset=utf8
    5.12 +Content-Transfer-Encoding: 8bit
    5.13  
    5.14  Hi, this is the mlmmj program managing the mailinglist
    5.15  
    5.16  $listaddr$
    5.17  
    5.18 -This list is configured to have moderated posts, the post has been queued
    5.19 -for approval.
    5.20 +This list is configured to have moderated posts. Your post with subject
    5.21 +line
    5.22  
    5.23 ---- Below this line are the first 100 lines of the message up for moderation --->
    5.24 - $originalmail$
    5.25 +$subject$
    5.26 +
    5.27 +has been queued for approval.
    5.28 +
    5.29 +(The queued message is below.)
    5.30 +
    5.31 +--=_$random0$$random1$_=
    5.32 +Content-Type: message/rfc822
    5.33 +Content-Transfer-Encoding: 8bit
    5.34 +Content-Disposition: inline; filename="message.eml"
    5.35 +
    5.36 +$originalmail1000000000$
    5.37 +--=_$random0$$random1$_=--
     6.1 --- a/listtexts/en/notintocc	Mon Sep 20 02:31:03 2010 +1000
     6.2 +++ b/listtexts/en/notintocc	Mon Sep 20 02:52:22 2010 +1000
     6.3 @@ -1,16 +1,34 @@
     6.4  Subject: Posts to $listaddr$ denied
     6.5 +MIME-Version: 1.0
     6.6 +Content-Type: multipart/mixed;
     6.7 + boundary="=_$random0$$random1$_="
     6.8 +Content-Transfer-Encoding: 8bit
     6.9 +
    6.10 +--=_$random0$$random1$_=
    6.11 +Content-Type: text/plain; charset=utf8
    6.12 +Content-Transfer-Encoding: 8bit
    6.13  
    6.14  Hi, this is the mlmmj program managing the mailinglist
    6.15  
    6.16  $listaddr$
    6.17  
    6.18 -I'm sorry to inform you that your message could not be delivered to the
    6.19 -list.
    6.20 +I'm sorry to inform you that your message with subject line
    6.21 +
    6.22 +$subject$
    6.23 +
    6.24 +could not be delivered to the list.
    6.25  
    6.26  In order to post to this list, the list address must be contained
    6.27  in either the To: or Cc: header.
    6.28  
    6.29  Thanks.
    6.30  
    6.31 ---- Below this line are the first 100 lines of the denied message --->
    6.32 - $originalmail$
    6.33 +(The denied message is below.)
    6.34 +
    6.35 +--=_$random0$$random1$_=
    6.36 +Content-Type: message/rfc822
    6.37 +Content-Transfer-Encoding: 8bit
    6.38 +Content-Disposition: inline; filename="message.eml"
    6.39 +
    6.40 +$originalmail1000000000$
    6.41 +--=_$random0$$random1$_=--
     7.1 --- a/listtexts/en/subonlypost	Mon Sep 20 02:31:03 2010 +1000
     7.2 +++ b/listtexts/en/subonlypost	Mon Sep 20 02:52:22 2010 +1000
     7.3 @@ -1,14 +1,26 @@
     7.4  Subject: $listaddr$ is a subscribers only list
     7.5 +MIME-Version: 1.0
     7.6 +Content-Type: multipart/mixed;
     7.7 + boundary="=_$random0$$random1$_="
     7.8 +Content-Transfer-Encoding: 8bit
     7.9 +
    7.10 +--=_$random0$$random1$_=
    7.11 +Content-Type: text/plain; charset=utf8
    7.12 +Content-Transfer-Encoding: 8bit
    7.13  
    7.14  Hi, this is the mlmmj program managing the mailinglist
    7.15  
    7.16  $listaddr$
    7.17  
    7.18 -You have tried to post from this email address:
    7.19 +Your post with subject line
    7.20 +
    7.21 +$subject$
    7.22 +
    7.23 +came from the email address
    7.24  
    7.25  $posteraddr$
    7.26  
    7.27 -But this address is not subscribed, and only subscribers may post to
    7.28 +but this address is not subscribed, and only subscribers may post to
    7.29  the list.
    7.30  
    7.31  If you believe you are correctly subscribed, please check the email address
    7.32 @@ -18,5 +30,12 @@
    7.33  If you want to be able to post from more than one email address, you
    7.34  can subscribe the other addresses to the nomail version of the list.
    7.35  
    7.36 ---- Below this line are the first 100 lines of the denied message --->
    7.37 - $originalmail$
    7.38 +(The denied message is below.)
    7.39 +
    7.40 +--=_$random0$$random1$_=
    7.41 +Content-Type: message/rfc822
    7.42 +Content-Transfer-Encoding: 8bit
    7.43 +Content-Disposition: inline; filename="message.eml"
    7.44 +
    7.45 +$originalmail1000000000$
    7.46 +--=_$random0$$random1$_=--