add debug messages to track recent astroid crashes

This commit is contained in:
2017-05-10 20:41:00 +02:00
parent 7428c39c1b
commit 5941c5e739
2 changed files with 10 additions and 40 deletions

View File

@@ -6,6 +6,7 @@ source "$TMP"
# Move selectedly tagged mails to folders if they are only in INBOX # 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 bash $CURDIR/scripts/move-tag.sh
# If offline mode, do a quick sync # 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" echo "[INFO] Offline mode enabled. Do a quick sync"
offlineimap -q offlineimap -q
else else
echo "[INFO] Do a normal sync."
offlineimap offlineimap
fi fi
echo "[DEBUG] Sync notmuch database with new mails"
notmuch new notmuch new
### Sort emails ### Sort emails
# Trash mod requests, Junk, Trash # 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 +ignore -unread -- path:Lists.MOD.Trash/**
notmuch tag +spam -- path:INBOX.Junk/** notmuch tag +spam -- path:INBOX.Junk/**
notmuch tag +del -unread -- path:Trash/** notmuch tag +del -unread -- path:Trash/**
# Moderation # Moderation
echo "[DEBUG] Tag list moderation mails"
notmuch tag +mod -- path:Lists.MOD/** notmuch tag +mod -- path:Lists.MOD/**
# CVS # CVS
echo "[DEBUG] Tag cvs mails" # TODO is this necessary?
notmuch tag +cvs -- path:Lists.Web.CVS-Notify/** notmuch tag +cvs -- path:Lists.Web.CVS-Notify/**
# Sent # Sent
#notmuch tag +sent -unread -- path:Sent/** #notmuch tag +sent -unread -- path:Sent/**
# Archiv # Archiv
echo "[DEBUG] Tag mails in offline ARCHIVE folder"
notmuch tag +archive -- path:ARCHIVE/** notmuch tag +archive -- path:ARCHIVE/**
# Automatic tagging based on location of mails in folders # 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.sh # generates commands from tag-folder.csv
bash $CURDIR/scripts/tag-folder-rules.sh # executes generated commands bash $CURDIR/scripts/tag-folder-rules.sh # executes generated commands
echo "[DEBUG] poll.sh exited successfully"

View File

@@ -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/**