4 trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR
9 omv
() { # offlineimap mv. move mail files within $src_base/$1 to /m/md/$2
14 files
=("$src_base"/"$src"/$x/*)
17 mv "${files[@]}" /m
/md
/"$dst"/$x
22 src_base
=/m
/offlineimap
23 omv
"Sent Items" "Sent"
24 omv INBOX offlineimaptmp
27 sieve-filter
-eW ~
/sieve
/main.sieve offlineimaptmp
&>/dev
/null
28 # the default folder is INBOX for anything leftover
29 omv offlineimaptmp INBOX
30 # remove messages from remote host
32 # this makes us sit and wait when we want to use mu and this is running in a cronjob.
33 # todo: emacs updates the index much faster. what command is it running? I'd like
35 # looks like it might be mu index --lazy-check, but that still takes like 10 seconds,
36 # figure out if that is the same speed, or if we can make it faster.
37 #mu index &>/dev/null ||: