]> code.delx.au - offlineimap/commitdiff
Added docs for hooks
authorJohn Goerzen <jgoerzen@complete.org>
Wed, 1 Oct 2008 05:04:14 +0000 (00:04 -0500)
committerJohn Goerzen <jgoerzen@complete.org>
Wed, 1 Oct 2008 05:04:14 +0000 (00:04 -0500)
Patch from Sias Mey

fixes #71

offlineimap.conf

index 6e122969ddea90b56d1aa7db54f3d88fc71bd164..6389905c4dae98e35085089cd3d2849dc8129166 100644 (file)
@@ -183,6 +183,19 @@ remoterepository = RemoteExample
 
 # quick = 10
 
+# You can specify a pre and post sync hook to execute a external command.
+# in this case a call to imapfilter to filter mail before the sync process
+# starts and a custom shell script after the sync completes.
+# The pre sync script has to complete before a sync to the account will
+# start. 
+
+# presynchook = imapfilter
+# postsynchook = notifysync.sh
+
+# You can also specify parameters to the commands
+# presynchook = imapfilter -c someotherconfig.lua
+
+
 [Repository LocalExample]
 
 # This is one of the two repositories that you'll work with given the