diff options
| author | Hsieh Chin Fan <pham@topo.tw> | 2025-04-14 17:56:23 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <pham@topo.tw> | 2025-04-14 17:56:23 +0800 |
| commit | 63a4c18194f1dc11f9f1e5cd69b193b1705c02b9 (patch) | |
| tree | 9144c6d4914ea3aa99707471ed83dda95ffdd2b9 | |
| parent | 3040f71b92c0020b6a70227ffcfdf0a9ae837bb8 (diff) | |
Update
| -rw-r--r-- | alias | 1 | ||||
| -rwxr-xr-x | bin/mail/deliver.sh | 2 |
2 files changed, 3 insertions, 0 deletions
| @@ -610,6 +610,7 @@ alias y='yazi' | |||
| 610 | acme.issue() { | 610 | acme.issue() { |
| 611 | acme.sh --issue -d $1 -w $2 | 611 | acme.sh --issue -d $1 -w $2 |
| 612 | } | 612 | } |
| 613 | alias 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 |
| 110 | elif [[ "${FROM}" =~ MAILER-DAEMON|accounts ]]; then | 110 | elif [[ "${FROM}" =~ MAILER-DAEMON|accounts ]]; then |
| 111 | mailbox= | 111 | mailbox= |
| 112 | elif [[ "${FROM}" =~ taiwandreamer|imtaiwanese18741130|recall ]]; then | ||
| 113 | mailbox=recall | ||
| 112 | elif [[ "${TO}" =~ '+'|'=' ]]; then | 114 | elif [[ "${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 |