diff options
| author | Hsieh Chin Fan <pham@topo.tw> | 2025-02-11 12:21:38 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <pham@topo.tw> | 2025-02-11 12:21:38 +0800 |
| commit | 3ff6e060ec3521a746182873d82c277f806ce24b (patch) | |
| tree | 7bebca02e6c08e138aa0db21d3d12b86af1325bc | |
| parent | eb548586160e64add11509f0a8e6722c7c773c43 (diff) | |
Update
| -rwxr-xr-x | bin/mail/deliver.sh | 2 |
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 {{{ |
| 107 | if [[ "$SENDER" = pham@topo.tw && -n $CHAT_VERSION ]]; then | 107 | if [[ "$SENDER" = pham@topo.tw && -n $CHAT_VERSION ]]; then |
| 108 | private_message | 108 | private_message |
| 109 | elif [[ "${FROM}" =~ MAILER-DAEMON ]]; then | ||
| 110 | mailbox= | ||
| 109 | elif [[ "${TO}" =~ '+'|'=' ]]; then | 111 | elif [[ "${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 |