Browse Source

multi process mailsync

pull/170/head
otlin100 5 years ago
parent
commit
34bf616975
3 changed files with 5 additions and 3 deletions
  1. +3
    -1
      bin/mailsync
  2. +1
    -1
      bin/mw
  3. +1
    -1
      mutt-wizard.muttrc

+ 3
- 1
bin/mailsync View File

@@ -18,7 +18,9 @@ echo " 🔃" > /tmp/imapsyncicon
pkill -RTMIN+12 i3blocks

# Run mbsync. You can feed this script different settings.
mbsync -a "$@"
accounts=$(ls "$HOME/.local/share/mail" | grep """$@")
echo "$accounts" | xargs --max-procs=4 -n 1 -I account mbsync -V account

rm -f /tmp/imapsyncicon
pkill -RTMIN+12 i3blocks



+ 1
- 1
bin/mw View File

@@ -78,7 +78,7 @@ bind index,pager g noop
bind index,pager M noop
bind index,pager C noop
bind index gg first-entry
macro index o \"<shell-escape>mailsync -V $title<enter>\" \"run mbsync to sync $title\"
macro index o \"<shell-escape>mailsync $title<enter>\" \"run mbsync to sync $title\"
unmailboxes *
"
else


+ 1
- 1
mutt-wizard.muttrc View File

@@ -60,7 +60,7 @@ bind editor <Tab> complete-query

macro index,pager a "|abook --add-email\n" 'add sender to abook'
macro index \Cr "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read"
macro index O "<shell-escape>mailsync -Va<enter>" "run offlineimap to sync all mail"
macro index O "<shell-escape>mailsync<enter>" "run offlineimap to sync all mail"
macro index \Cf "<enter-command>unset wait_key<enter><shell-escape>read -p 'Enter a search term to find with notmuch: ' x; echo \$x >~/.cache/mutt_terms<enter><limit>~i \"\`notmuch search --output=messages \$(cat ~/.cache/mutt_terms) | head -n 600 | perl -le '@a=<>;chomp@a;s/\^id:// for@a;$,=\"|\";print@a'\`\"<enter>" "show only messages matching a notmuch pattern"
macro index A "<limit>all\n" "show all messages (undo limit)"



Loading…
Cancel
Save