diff options
-rw-r--r-- | alias | 8 | ||||
-rw-r--r-- | mutt/muttrc.topo | 10 |
2 files changed, 9 insertions, 9 deletions
@@ -73,12 +73,12 @@ ssh.down() { | |||
73 | } | 73 | } |
74 | 74 | ||
75 | # imap | 75 | # imap |
76 | curl.mail.save() { | 76 | imap.save() { |
77 | curl "imaps://mail.topo.tw/$1" \ | 77 | curl "imaps://mail.topo.tw/$1" \ |
78 | --user pham:`pass mail/pham@mail.topo.tw` \ | 78 | --user pham:`pass mail/pham@mail.topo.tw` \ |
79 | -T $2 | 79 | -T $2 |
80 | } | 80 | } |
81 | curl.mail.save_attachment() { | 81 | imap.save_attachment() { |
82 | #TEMPFILE=$(mktemp) | 82 | #TEMPFILE=$(mktemp) |
83 | trap 'rm $TEMPFILE' EXIT | 83 | trap 'rm $TEMPFILE' EXIT |
84 | mail -a $1 -Sexpandaddr /dev/stdout | \ | 84 | mail -a $1 -Sexpandaddr /dev/stdout | \ |
@@ -86,12 +86,12 @@ curl.mail.save_attachment() { | |||
86 | --user pham:`pass mail/pham@mail.topo.tw` \ | 86 | --user pham:`pass mail/pham@mail.topo.tw` \ |
87 | -T /dev/stdin | 87 | -T /dev/stdin |
88 | } | 88 | } |
89 | curl.mail.search.subject() { | 89 | imap.search.subject() { |
90 | curl "imaps://mail.topo.tw/$1" \ | 90 | curl "imaps://mail.topo.tw/$1" \ |
91 | --user pham:`pass mail/pham@mail.topo.tw` \ | 91 | --user pham:`pass mail/pham@mail.topo.tw` \ |
92 | --request "SEARCH SUBJECT $2" | 92 | --request "SEARCH SUBJECT $2" |
93 | } | 93 | } |
94 | curl.mail.fetch() { | 94 | imap.fetch() { |
95 | curl "imaps://mail.topo.tw/$1;MAILINDEX=$2" \ | 95 | curl "imaps://mail.topo.tw/$1;MAILINDEX=$2" \ |
96 | --user pham:`pass mail/pham@mail.topo.tw` | \ | 96 | --user pham:`pass mail/pham@mail.topo.tw` | \ |
97 | dos2unix | \ | 97 | dos2unix | \ |
diff --git a/mutt/muttrc.topo b/mutt/muttrc.topo index f841f78..65e7956 100644 --- a/mutt/muttrc.topo +++ b/mutt/muttrc.topo | |||
@@ -29,7 +29,7 @@ set move = yes | |||
29 | set record = "+INBOX" | 29 | set record = "+INBOX" |
30 | set trash = "+Trash" | 30 | set trash = "+Trash" |
31 | set postponed = "+Drafts" | 31 | set postponed = "+Drafts" |
32 | set mask="!(INBOX|mbox|dev|Sent|Trash|Drafts|DeltaChat|civildef|hometeach|osm|arch-general|mutt-users|bash|STOCK|pay|keep|login|update|test|spam)" | 32 | set mask="!(INBOX|mbox|dev|Sent|Trash|Drafts|DeltaChat|civildef|hometeach|osm|STOCK|pay|keep|login|update|test|spam)" |
33 | 33 | ||
34 | # Sidebar | 34 | # Sidebar |
35 | mailboxes -label '📠[i]' +INBOX \ | 35 | mailboxes -label '📠[i]' +INBOX \ |
@@ -41,10 +41,10 @@ mailboxes -label '📠[i]' +INBOX \ | |||
41 | -label CivilDEF +civildef \ | 41 | -label CivilDEF +civildef \ |
42 | +hometeach \ | 42 | +hometeach \ |
43 | -label OSM +osm \ | 43 | -label OSM +osm \ |
44 | -label Arch +arch-general \ | 44 | -label Arch +mailing_list.arch-general \ |
45 | -label Mutt +mutt-users \ | 45 | -label Mutt +mailing_list.mutt-users \ |
46 | -label Bash +bash \ | 46 | -label Bash +mailing_list.bash \ |
47 | -label Aerc +aerc \ | 47 | -label Aerc +mailing_list.aerc \ |
48 | +STOCK \ | 48 | +STOCK \ |
49 | -label '📢 [f]' +feedback \ | 49 | -label '📢 [f]' +feedback \ |
50 | "+-- Permanent ---" \ | 50 | "+-- Permanent ---" \ |