X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=offlineimap-sync;h=21361b90c189114c071c5255f85561b515915980;hb=0310db0c0589445a132e77f0b7a8fbb5e1ae3082;hp=a179b36e732133d261507978d0027b12bf839356;hpb=e893484a0470843582699dc41fe9d69388c63c02;p=distro-setup diff --git a/offlineimap-sync b/offlineimap-sync index a179b36..21361b9 100755 --- a/offlineimap-sync +++ b/offlineimap-sync @@ -6,7 +6,7 @@ trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR offlineimap -u quiet shopt -s nullglob -omv() { # offlineimap mv +omv() { # offlineimap mv. move mail files within $src_base/$1 to /m/md/$2 src="$1" dst="$2" found_files=false @@ -29,5 +29,10 @@ if $found_files; then omv offlineimaptmp INBOX # remove messages from remote host offlineimap -u quiet - mu index &>/dev/null ||: + # this makes us sit and wait when we want to use mu and this is running in a cronjob. + # todo: emacs updates the index much faster. what command is it running? I'd like + # to just run that + # looks like it might be mu index --lazy-check, but that still takes like 10 seconds, + # figure out if that is the same speed, or if we can make it faster. + #mu index &>/dev/null ||: fi