aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--alias1
-rwxr-xr-xbin/mail/deliver.sh2
2 files changed, 3 insertions, 0 deletions
diff --git a/alias b/alias
index 548340f..2c0dd4e 100644
--- a/alias
+++ b/alias
@@ -610,6 +610,7 @@ alias y='yazi'
610acme.issue() { 610acme.issue() {
611 acme.sh --issue -d $1 -w $2 611 acme.sh --issue -d $1 -w $2
612} 612}
613alias recall='cd /srv/recall'
613# }}} 614# }}}
614 615
615# vim:fdm=marker fdl=0 616# vim:fdm=marker fdl=0
diff --git a/bin/mail/deliver.sh b/bin/mail/deliver.sh
index c111692..6b02aa3 100755
--- a/bin/mail/deliver.sh
+++ b/bin/mail/deliver.sh
@@ -109,6 +109,8 @@ if [[ "$SENDER" = pham@topo.tw && -n $CHAT_VERSION ]]; then
109 private_message 109 private_message
110elif [[ "${FROM}" =~ MAILER-DAEMON|accounts ]]; then 110elif [[ "${FROM}" =~ MAILER-DAEMON|accounts ]]; then
111 mailbox= 111 mailbox=
112elif [[ "${FROM}" =~ taiwandreamer|imtaiwanese18741130|recall ]]; then
113 mailbox=recall
112elif [[ "${TO}" =~ '+'|'=' ]]; then 114elif [[ "${TO}" =~ '+'|'=' ]]; then
113 mailbox=${TO#*[+=]} # remove chars before symbol of mailbox 115 mailbox=${TO#*[+=]} # remove chars before symbol of mailbox
114 mailbox=${mailbox%@*} # remove suffix for mail address 116 mailbox=${mailbox%@*} # remove suffix for mail address