diff options
Diffstat (limited to 'email.org')
-rw-r--r-- | email.org | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1,10 +1,12 @@ #+title: email handling (message mode, bbdb, notmuch, mu4e et al.) -#+property: header-args :tangle no :comments no :results silent :shebang "#!/bin/bash" +#+property: header-args :lexical t :tangle yes :comments no :results silent #+auto_tangle: t * message mode *** Customization #+begin_src emacs-lisp + ;; -*- lexical-binding: t; -*- + (defvar jao-mails "") (defvar jao-mails-regexp) (setq jao-mails-regexp (regexp-opt jao-mails)) @@ -399,7 +401,7 @@ :description description))))))) #+end_src *** tag shell script - #+begin_src bash :tangle ./bin/notmuch-tags.sh :tangle-mode (identity #o755) + #+begin_src bash :shebang "#!/bin/bash" :tangle ./bin/notmuch-tags.sh :tangle-mode (identity #o755) notmuch new > $HOME/var/log/notmuch.log 2>&1 function tag_deleted { @@ -433,7 +435,7 @@ notmuch tag +deleted +trash -new -unread -- "folder:trash and tag:new" #+end_src *** delete tagged shell script - #+begin_src bash :tangle ./bin/notmuch-expire.sh :tangle-mode (identity #o755) + #+begin_src bash :shebang "#!/bin/bash" :tangle ./bin/notmuch-expire.sh :tangle-mode (identity #o755) notmuch search --output=files --format=text0 tag:deleted | xargs -r0 rm notmuch new > $HOME/var/log/notmuch-expire.log 2>&1 notmuch compact >> $HOME/var/log/notmuch-expire.log 2>&1 |