Code

Renamed uw-imap module
[gosa.git] / gosa-plugins / uw-imap / contrib / procmail-vacation.txt
1 # Vacation message
2 GOSA_VACATION=yes
3 VACATION_CACHE=\$HOME/.vacation.cache
5 :0
6 *   ^TO_$mail
7 * ! ^FROM_DAEMON
8 * ! ^X-Loop: ($addrlist)
9 * ! ^Precedence:.*(bulk|list|junk)
10 {
11   :0 c: \$HOME/.vacation.\$LOCKEXT
12   * ! ? formail -rD 8192 \$VACATION_CACHE
13   {
14     # Compose reply and add some basic headers
15     :0 fhw
16     |   formail -rt                                                     \
17         -A "Precedence: junk"                                           \
18         -A "X-Loop: $mail"
20     :0 a    # Formail succeeded
21     {
22       #  Change subject
23       :0 fhw
24       * ^Subject: *\/[^ ].*
25       | formail -I "Subject: vacation (was: \$MATCH)"
27       :0 fb           # put message to body
28       | echo -n "$vacmsg"
30       :0              # Send it
31       | \$SENDMAIL
32     }
33   }
34 }