/[anubis]/anubis/examples/1anubisrc
ViewVC logotype

Diff of /anubis/examples/1anubisrc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by gray, Fri Jul 18 14:38:28 2003 UTC revision 1.5 by polak, Tue Aug 26 19:56:03 2003 UTC
# Line 11  Line 11 
11  #  #
12    
13  ---BEGIN CONTROL---  ---BEGIN CONTROL---
 # logfile FILE-NAME  
 # loglevel NONE-FAILS-ALL  
14  # remote-mta HOST[:PORT]  # remote-mta HOST[:PORT]
15  # local-mta FILE-NAME [ARGS]  # local-mta FILE-NAME [ARGS]
16    # logfile FILE-NAME
17    # loglevel NONE-FAILS-ALL
18    # tracefile YES-NO-FILE-NAME
19  # esmtp-auth USERNAME:PASSWORD  # esmtp-auth USERNAME:PASSWORD
20  # socks-proxy HOST[:PORT]  # socks-proxy HOST[:PORT]
21  # socks-v4 YES-OR-NO  # socks-v4 YES-OR-NO
# Line 27  Line 28 
28  ---END---  ---END---
29    
30  #  #
31  # The Rule System (The "RULE" section)  # The Rule System (The RULE section)
32  # User configuration file only. Examples:  # User configuration file only. Examples:
33  #  #
34    
35  ---BEGIN RULE---  ---BEGIN RULE---
36    
37  gpg-passphrase MYSECRETPASSPHRASE  gpg-passphrase "MYSECRETPASSPHRASE"
38    
39  # Process the (E)SMTP commands.  # Process the (E)SMTP commands.
40    
# Line 44  fi Line 45  fi
45  # Process a message header lines.  # Process a message header lines.
46  # The Triggers:  # The Triggers:
47    
48  trigger "^gpg-encrypt"  trigger "gpg-sign"
49   gpg-encrypt GPG-KEY(S)   gpg-sign default
50  done  done
51    
52  trigger "^gpg-sign"  trigger "gpg-encrypt:(.*)"
53   gpg-sign yes   add header[X-GPG] "Encrypted for \1"
54     gpg-encrypt \1
55  done  done
56    
57  trigger "^gpg-dynamic:(.*)"  trigger "gpg-se:(.*)"
58   add header[X-GPG-Comment] "Encrypted for \1"   gpg-se \1:default
  gpg-encrypt \1  
59  done  done
60    
61  #  #
# Line 62  done Line 63  done
63  #  #
64    
65  if header[To] ".*<?friend1@somewhere.net>?"  if header[To] ".*<?friend1@somewhere.net>?"
66   modify header[Reply-To] "mybox@myisp.net"    modify header[Reply-To] "mybox@myisp.net"
67   add header[X-Comment] "GNU's Not Unix!"    add header[X-Comment] "GNU's Not Unix!"
68  fi  fi
69    
70  if header[X-Mailer] :perlre "(.*)"  if header[X-Mailer] :perlre "(.*)"
71   add header[X-Comment] "\1 rocks!"    add header[X-Comment] "\1 rocks!"
72   modify header[X-Mailer] "The lousy mailer \1"    modify header[X-Mailer] "The lousy mailer \1"
73  fi  fi
74    
75  if header[Subject] "(.*)" and not header[Subject] :scase "URGENT"  if header[Subject] "(.*)" and not header[Subject] :scase "URGENT"
76   add header[X-Comment] "This message is not URGENT (\1)."    add header[X-Comment] "This message is not URGENT (\1)."
77  fi  fi
78    
79  if header[Subject] "gpg-encrypt"  if header[Subject] "gpg-encrypt"
80   gpg-encrypt GPG-KEY(S)    gpg-encrypt GPG-KEY(S)
 fi  
   
 if header[Subject] "gpg-sign"  
  gpg-sign PASSPHRASE  
81  fi  fi
82    
83  if header[Subject] "signature-file"  if header[Subject] "signature-file"
84   signature-file-append yes    signature-file-append yes
85  fi  fi
86    
87  ---END---  ---END---

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26