瀏覽代碼

sync email

tags/v3.1
ralphe 6 年之前
committed by Luke Smith
父節點
當前提交
8b2d268e64
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. +4
    -0
      muttrc

+ 4
- 0
muttrc 查看文件

@@ -46,6 +46,10 @@ macro index,pager \Cu |urlview\n
#Ctrl-R to mark all as read
macro index \Cr "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read"

#sync email
macro index O "<shell-escape>offlineimap<enter>" "run offlineimap to sync all mail"
macro index o "<shell-escape>offlineimap -qf INBOX<enter>" "run offlineimap to sync inbox"

# Notmuch searching
macro index \Cf "<enter-command>unset wait_key<enter><shell-escape>read -p 'notmuch query: ' 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…
取消
儲存