-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmhblazerc
47 lines (38 loc) · 1.16 KB
/
mhblazerc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
export INBOX=${HOME}/.maildir
export FOLDER=${MBLAZE:-$HOME/.mblaze}/folder
export FOLDERS=${MBLAZE:-$HOME/.mblaze}/folders
export MAILCUR=${MBLAZE:-$HOME/.mblaze}/cur
export MAILSEQ=${MBLAZE:-$HOME/.mblaze}/seq
export MCOLOR_FROM=17
export MCOLOR_HEADER=17
export MCOLOR_QUOTE=52
export MCOLOR_QQUOTE=22
export MCOLOR_QQQUOTE=26
export MCOLOR_SEP=240
export MCOLOR_FOOTER=240
export MCOLOR_SIG=240
export IMAP_OPTS="plugin/lazy_expunge=expunged:lazy_expunge_only_last_instance=yes"
export MHBLAZE_BIN=${HOME}/mblaze-mh/bin
alias flag=${MHBLAZE_BIN}/flag.sh
alias folder=${MHBLAZE_BIN}/folder.sh
alias folders=${MHBLAZE_BIN}/folders.sh
alias pick=${MHBLAZE_BIN}/pick.sh
alias refile=${MHBLAZE_BIN}/refile.sh
alias scan=${MHBLAZE_BIN}/scan.sh
alias show=${MHBLAZE_BIN}/show.sh
alias spam=${MHBLAZE_BIN}/spam.sh
alias expunge=${MHBLAZE_BIN}/expunge.py
alias comp=mcom
alias repl=mrep
alias forw=mfwd
alias dist=mbnc
alias rmm='flag -T $*'
alias in='scan .'
alias dis='show -b $*'
_folders() {
COMPREPLY=( $(compgen -W "`cat ${FOLDERS}`" "${COMP_WORDS[COMP_CWORD]}" ) )
}
complete -F _folders folder scan refile expunge
# build folder list
${MHBLAZE_BIN}/folders.sh -qr