From 5941c5e7398d9e7b2c8bee9a0e47cb3d68ea92b2 Mon Sep 17 00:00:00 2001 From: mxmehl Date: Wed, 10 May 2017 20:41:00 +0200 Subject: [PATCH] add debug messages to track recent astroid crashes --- astroid/poll.sh | 10 ++++++++ astroid/scripts/tag-folder-rules.sh | 40 ----------------------------- 2 files changed, 10 insertions(+), 40 deletions(-) delete mode 100755 astroid/scripts/tag-folder-rules.sh diff --git a/astroid/poll.sh b/astroid/poll.sh index fa7d2ae..8346773 100755 --- a/astroid/poll.sh +++ b/astroid/poll.sh @@ -6,6 +6,7 @@ source "$TMP" # Move selectedly tagged mails to folders if they are only in INBOX +echo "[DEBUG] Move tagged mails in INBOX to folders" bash $CURDIR/scripts/move-tag.sh # If offline mode, do a quick sync @@ -13,31 +14,40 @@ if [ "$var_conn" == "off" ]; then echo "[INFO] Offline mode enabled. Do a quick sync" offlineimap -q else + echo "[INFO] Do a normal sync." offlineimap fi +echo "[DEBUG] Sync notmuch database with new mails" notmuch new ### Sort emails # Trash mod requests, Junk, Trash +echo "[DEBUG] Tag mails in ignore, spam, and trash folders" notmuch tag +ignore -unread -- path:Lists.MOD.Trash/** notmuch tag +spam -- path:INBOX.Junk/** notmuch tag +del -unread -- path:Trash/** # Moderation +echo "[DEBUG] Tag list moderation mails" notmuch tag +mod -- path:Lists.MOD/** # CVS +echo "[DEBUG] Tag cvs mails" # TODO is this necessary? notmuch tag +cvs -- path:Lists.Web.CVS-Notify/** # Sent #notmuch tag +sent -unread -- path:Sent/** # Archiv +echo "[DEBUG] Tag mails in offline ARCHIVE folder" notmuch tag +archive -- path:ARCHIVE/** # Automatic tagging based on location of mails in folders +echo "[DEBUG] Tag mails based on their folder" bash $CURDIR/scripts/tag-folder.sh # generates commands from tag-folder.csv bash $CURDIR/scripts/tag-folder-rules.sh # executes generated commands + +echo "[DEBUG] poll.sh exited successfully" diff --git a/astroid/scripts/tag-folder-rules.sh b/astroid/scripts/tag-folder-rules.sh deleted file mode 100755 index 13af951..0000000 --- a/astroid/scripts/tag-folder-rules.sh +++ /dev/null @@ -1,40 +0,0 @@ -notmuch tag +P.clt -- path:Aktionen.CLT/** -notmuch tag +P.rd -- path:Aktionen.Funkrichtlinie/** -notmuch tag +P.rd -- path:Aktionen.FCC/** -notmuch tag +ML -- path:Aktionen.FCC/** -notmuch tag +P.rd -- path:Aktionen.Funkrichtlinie.Battlemesh/** -notmuch tag +ML -- path:Aktionen.Funkrichtlinie.Battlemesh/** -notmuch tag +P.froscon -- path:Aktionen.FrOSCon/** -notmuch tag +P.fundraising -- path:Aktionen.Fundraising/** -notmuch tag +P.ilovefs -- path:Aktionen.IloveFS/** -notmuch tag +P.pm -- path:Aktionen.PublicMoney/** -notmuch tag +P.rz -- path:Aktionen.Routerzwang/** -notmuch tag +P.fosdem -- path:Aktionen.FOSDEM/** -notmuch tag +P.ccc -- path:Aktionen.CCC/** -notmuch tag +P.orr -- path:Aktionen.OpenRR/** -notmuch tag +draft -- path:Drafts/** -notmuch tag +android -- path:Lists.Android/** -notmuch tag +coord -- path:Lists.Coordinators/** -notmuch tag +de -- path:Lists.DACH/** -notmuch tag +org-de -- path:Lists.DACH.Coord/** -notmuch tag +de -- path:Lists.DACH.Coord/** -notmuch tag +discuss -- path:Lists.Discussion/** -notmuch tag +eufoss -- path:Lists.FOSS-Policy/** -notmuch tag +fsfede -- path:Lists.FSFE-de/** -notmuch tag +rheinland -- path:Lists.Rheinland/** -notmuch tag +suedde -- path:Lists.Sueddeutschland/** -notmuch tag +syshackers -- path:Lists.SystemHackers/** -notmuch tag +team -- path:Lists.Team/** -notmuch tag +trans -- path:Lists.Translators/** -notmuch tag +web -- path:Lists.Web/** -notmuch tag +legal-licence -- path:Lists.Legal.Licence/** -notmuch tag +press -- path:Press-FSFE/** -notmuch tag +press -- path:Press-FSFE.Draft/** -notmuch tag +press -- path:Press-FSFE.Inquiry/** -notmuch tag +staff -- path:Staff/** -notmuch tag +ticket -- path:Staff.Tickets/** -notmuch tag +git -- path:Git/** -notmuch tag +spam -- path:INBOX.Junk/** -notmuch tag +del -- path:Trash/** -notmuch tag +archive -- path:ARCHIVE/** -notmuch tag +de-outreach -- path:Lists.Outreach-de/**