Change checkmail script: instead of "all" accept "-a"
This commit is contained in:
parent
85c70b41cb
commit
3f1d182535
@ -632,7 +632,7 @@ Sync Mailbox
|
||||
Sync email
|
||||
#+BEGIN_SRC conf
|
||||
macro index,pager o "<shell-escape>$HOME/.config/neomutt/bin/get_new_mail.sh<enter>"
|
||||
macro index,pager O "<shell-escape>$HOME/.config/neomutt/bin/get_new_mail.sh all<enter>"
|
||||
macro index,pager O "<shell-escape>$HOME/.config/neomutt/bin/get_new_mail.sh -a<enter>"
|
||||
#+END_SRC
|
||||
|
||||
Make quick html view macro
|
||||
@ -1226,16 +1226,10 @@ First, tag the files you want to send using =t=, then =;= to apply the action on
|
||||
:header-args+: :shebang "#!/usr/bin/env bash"
|
||||
:END:
|
||||
#+begin_src bash
|
||||
if [ "$1" = "all" ]; then
|
||||
arg='-a'
|
||||
else
|
||||
arg=''
|
||||
fi
|
||||
|
||||
if [ $TMUX ]; then
|
||||
tmux split -v -l 1 ~/scripts/checkmail.sh $arg && tmux select-pane -U
|
||||
tmux split -v -l 1 ~/scripts/checkmail.sh $1 && tmux select-pane -U
|
||||
else
|
||||
$command
|
||||
~/scripts/checkmail.sh $1
|
||||
fi
|
||||
#+end_src
|
||||
|
||||
|
@ -166,7 +166,7 @@
|
||||
#+begin_src bash
|
||||
while [ -n "$1" ]; do # while loop starts
|
||||
case "$1" in
|
||||
-a) opt_mbsync_all='--all' ;; # Check All inboxes
|
||||
-a) opt_all='--all' ;; # Check All inboxes
|
||||
-v) opt_verbose='--verbose' ;; # Verbose
|
||||
-q) opt_quiet='--quiet' ;; # Quiet
|
||||
*) echo "Option $1 not recognized" ;; # In case you typed a different option
|
||||
|
Loading…
Reference in New Issue
Block a user