]> git.madduck.net Git - etc/mailfilter.git/blobdiff - bin/process-delayed-queue

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:

add new headers to ignore list
[etc/mailfilter.git] / bin / process-delayed-queue
index 82818ebfe2eb8a1019489fa06ce71eb9c51373dd..e5bb5f19560fbd6b3359bfb9a946a90f01fc09c7 100755 (executable)
@@ -6,7 +6,7 @@ MAILDIR=$HOME/.maildir
 SQLITE=/usr/bin/sqlite3
 RESUBMIT=$HOME/.etc/mailfilter/bin/resubmit
 
-DELAYED_QUEUE_DB=$VAR/procmail/delayed-queue.sqlite
+DELAYED_QUEUE_DB=$HOME/.var/procmail/delayed-queue.sqlite
 
 QUERY='select * from messages where release_ts < strftime("%s", "now")'
 
@@ -16,7 +16,7 @@ $SQLITE -column $DELAYED_QUEUE_DB "$QUERY" | while read msgid file ts; do
     echo "E: message $msgid not found in $file" >&2
   else
     $RESUBMIT "$file"
-    echo "I: resubmitted $msgid" >&2
+    echo "I: resubmitted $msgid"
   fi
   $SQLITE $DELAYED_QUEUE_DB "delete from messages where msgid = '$msgid'"
 done