~dricottone/mail-filters

ref: 4286bae71b4ca1c9203a3a3ebf1ff4701855e4b7 mail-filters/src/mailman.sh -rwxr-xr-x 355 bytes
4286bae7Dominic Ricottone Revamping Mailman filter with external digestion 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

# mailman.sh
# ==========
# A filter (as for mutt or aerc) which runs digestion and an awk filter.

if command -v /usr/local/share/mail-filters/digestion 2>&1 >/dev/null; then
  /usr/local/share/mail-filters/digestion -length $(tput cols) \
    | /usr/local/share/mail-filters/mailman.awk
else
    /usr/local/share/mail-filters/mailman.awk
fi