summaryrefslogtreecommitdiffstats
path: root/mutt/offlineimap
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-11-03 17:30:09 -0400
committerJesse Luehrs <doy@tozt.net>2018-11-03 17:30:09 -0400
commit6c4c6aa0e4fed80c075641374a28e4d38223fad9 (patch)
tree77b87d1e97825263feaa4c0641d5ec5da04bc26c /mutt/offlineimap
parent01faf31d70a945510a6cf8f3ec8dd785e9d632e1 (diff)
downloadconf-6c4c6aa0e4fed80c075641374a28e4d38223fad9.tar.gz
conf-6c4c6aa0e4fed80c075641374a28e4d38223fad9.zip
switch between imap and offlineimap depending on the machine
Diffstat (limited to 'mutt/offlineimap')
-rw-r--r--mutt/offlineimap16
1 files changed, 16 insertions, 0 deletions
diff --git a/mutt/offlineimap b/mutt/offlineimap
new file mode 100644
index 0000000..6a8addb
--- /dev/null
+++ b/mutt/offlineimap
@@ -0,0 +1,16 @@
+set mbox_type=Maildir
+set folder="~/Maildir"
+set spoolfile="~/Maildir/INBOX"
+mailboxes = `\
+ for folder in ~/Maildir/*; do\
+ basename=$(basename "$folder");\
+ if [ "x${basename:0:4}" != "xold." \
+ -a "x$basename" != "xspam" ]; then\
+ echo -n "\"=$basename\" ";\
+ fi\
+ done`
+macro index R "<enter-command>unset wait_key<enter><shell-escape>update_mail<enter><enter-command>set wait_key<enter>" "fetch mail with offlineimap"
+set timeout=3
+set mail_check=0
+
+# vim: ft=muttrc