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:

timestamp on delivery to inbox
[etc/mailfilter.git] / procmail / tickle
1 :0
2 * ORIGINAL_TO ?? ^.+@tickle\.madduck\.net$
3 * ORIGINAL_TO ?? ^\/[^@]+
4 {
5   STAMP
6   :0
7   * MATCH ?? ^[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]$
8   { STAMP="$MATCH (`/bin/date -d @$MATCH +%c`)" }
9
10   :0 E
11   * MATCH ?? ^[0-9]+m$
12   * MATCH ?? ^\/[^m]+
13   { DATESTR="$DATE + $MATCH months 00:00" }
14
15   :0 E
16   * MATCH ?? ^[0-9]+w$
17   * MATCH ?? ^\/[^w]+
18   { DATESTR="$DATE + $MATCH weeks 00:00" }
19
20   :0 E
21   * MATCH ?? ^[0-9]+d?$
22   * MATCH ?? ^\/[^d]+
23   { DATESTR="$DATE + $MATCH days 00:00" }
24
25   :0 E
26   * MATCH ?? ^[0-9]+h$
27   * MATCH ?? ^\/[^h]+
28   { DATESTR="$DATE + $MATCH hours" }
29
30   :0 E
31   {
32     LOG="tickle:      invalid date string: $MATCH$NL"
33     EXITCODE=69
34     HOST
35   }
36
37   :0
38   * ! STAMP ?? .
39   { STAMP=`/bin/date +'%s (%c)' -d "$DATESTR"` }
40
41   LOG="tickle:      stamping message $MSGID with $STAMP$NL"
42
43   :0 fw
44   |$FORMAIL -i "X-Tickle: $STAMP"
45
46   :0
47   $BASE/.tickler/
48 }