Bladeren bron

procmail integration

Bob Mottram 11 jaren geleden
bovenliggende
commit
4bdf8f1e08
1 gewijzigde bestanden met toevoegingen van 9 en 18 verwijderingen
  1. 9
    18
      beaglebone.txt

+ 9
- 18
beaglebone.txt Bestand weergeven

@@ -658,7 +658,7 @@ Email is not very secure, but its usefulness and ubiquity mean that it's likely
658 658
 Exim4 seems much easier to install and configure than Postfix.
659 659
 
660 660
 #+BEGIN_SRC: bash
661
-aptitude install exim4 sasl2-bin swaks libnet-ssleay-perl
661
+aptitude install exim4 sasl2-bin swaks libnet-ssleay-perl procmail
662 662
 #+END_SRC
663 663
 
664 664
 You will be prompted to remove postfix.  Say yes and yes again.
@@ -947,7 +947,7 @@ exit
947 947
 emacs ~/.procmailrc
948 948
 #+END_SRC
949 949
 
950
-The text should look like the following.
950
+The text should look like the following.  Replace /username/ with your username.
951 951
 
952 952
 #+BEGIN_SRC: sh
953 953
 MAILDIR=$HOME/Maildir
@@ -970,25 +970,15 @@ LOGABSTRACT=all
970 970
   * ^X-Spam-Level: \*\*\*\*\*
971 971
 .0-spam/
972 972
 
973
-# if it wasn't detected as spam, but is to a fake address, then we
974
-# know it is spam, so learn from that
975
-:0
976
-  * !^(From|To|cc|bcc)[ :].*($USER|root|webmaster|admin|postmaster).*@acooke\.org
977
-  * !^(From|To|cc|bcc)[ :].*@isti\.com
978
-# add mailing lists below
979
-  * !^From[ :].*(snowmail_daily@...|Section@...|rforno@...|alert@...).*
980
-{
981
-  # save in case of screw-ups, mailing lists, etc
982
-  :0 c
983
-  .0-spam/
984
-  :0
985
-  .learn-spam/
986
-}
987
-
988 973
 # otherwise, marginal spam goes here for revision
989 974
 :0
990 975
   * ^X-Spam-Level: \*\*
991 976
 .spam/
977
+
978
+# mail addressed to me
979
+:0
980
+  * ^TOusername
981
+$MAILDIR/new
992 982
 #+END_SRC
993 983
 
994 984
 Save and exit.
@@ -1156,8 +1146,9 @@ if [ ! -d "$LISTDIR" ]; then
1156 1146
   mkdir -m 700 $LISTDIR/cur
1157 1147
 fi
1158 1148
 chown -R $MYUSERNAME:$MYUSERNAME $LISTDIR
1149
+echo "" >> $PM
1159 1150
 echo ":0" >> $PM
1160
-echo "* ^Subject:.*[$SUBJECTTAG].*" >> $PM
1151
+echo "  * ^Subject:.*[$SUBJECTTAG]" >> $PM
1161 1152
 echo "$LISTDIR/new" >> $PM
1162 1153
 chown $MYUSERNAME:$MYUSERNAME $PM
1163 1154
 if [ ! -f "$MUTTRC" ]; then