]> git.madduck.net Git - etc/mailfilter.git/blob - procmail/to-gmail

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

make all deliveries happen late
[etc/mailfilter.git] / procmail / to-gmail
1 :0
2 * ORIG_DOMAIN ?? ^(mass|r2e)\.madduck\.net$
3 {
4   :0 c
5   *$ ! $MSG_DEJAVU
6   * ! MSG_TEST ?? .
7   {
8     LOG="gmail:       archiving message $MSGID with gmail$NL"
9     SENDMAILFLAGS="$SENDMAILFLAGS -f $ID"
10     TRAP
11
12     :0
13     ! martin.krafft@gmail.com
14   }
15
16   :0 E
17   * MSG_TEST ?? .
18   { LOG="gmail:       not archiving message test message with gmail$NL" }
19
20   :0 E
21   *$ $MSG_DEJAVU
22   { LOG="gmail:       not archiving message resubmitted message with gmail$NL" }
23 }