aboutsummaryrefslogtreecommitdiffhomepage
path: root/bin
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2025-02-11 12:21:38 +0800
committerHsieh Chin Fan <pham@topo.tw>2025-02-11 12:21:38 +0800
commit3ff6e060ec3521a746182873d82c277f806ce24b (patch)
tree7bebca02e6c08e138aa0db21d3d12b86af1325bc /bin
parenteb548586160e64add11509f0a8e6722c7c773c43 (diff)
Update
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mail/deliver.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/mail/deliver.sh b/bin/mail/deliver.sh
index d101602..03c8ae5 100755
--- a/bin/mail/deliver.sh
+++ b/bin/mail/deliver.sh
@@ -106,6 +106,8 @@ done <<<"$header"
106# decide mailbox by vars {{{ 106# decide mailbox by vars {{{
107if [[ "$SENDER" = pham@topo.tw && -n $CHAT_VERSION ]]; then 107if [[ "$SENDER" = pham@topo.tw && -n $CHAT_VERSION ]]; then
108 private_message 108 private_message
109elif [[ "${FROM}" =~ MAILER-DAEMON ]]; then
110 mailbox=
109elif [[ "${TO}" =~ '+'|'=' ]]; then 111elif [[ "${TO}" =~ '+'|'=' ]]; then
110 mailbox=${TO#*[+=]} # remove chars before symbol of mailbox 112 mailbox=${TO#*[+=]} # remove chars before symbol of mailbox
111 mailbox=${mailbox%@*} # remove suffix for mail address 113 mailbox=${mailbox%@*} # remove suffix for mail address