diff options
author | Hsieh Chin Fan <typebrook@gmail.com> | 2022-02-02 13:34:47 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-11-30 21:09:29 +0800 |
commit | 9934dd538b0ce116e3b1600272cb46369b082246 (patch) | |
tree | 2f28c6c362201151eaf8218e566479ed7eb72070 /smtpd/mail |
init commit
Diffstat (limited to 'smtpd/mail')
-rwxr-xr-x | smtpd/mail/spam | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/smtpd/mail/spam b/smtpd/mail/spam new file mode 100755 index 0000000..3c48717 --- /dev/null +++ b/smtpd/mail/spam | |||
@@ -0,0 +1,11 @@ | |||
1 | #! /bin/bash | ||
2 | |||
3 | SIZE=$(ls --size /tmp/spam | cut -d' ' -f1) | ||
4 | |||
5 | if test $SIZE -gt 10000; then | ||
6 | cat >/tmp/spam | ||
7 | else | ||
8 | cat >>/tmp/spam | ||
9 | fi | ||
10 | |||
11 | true | ||