:0 { # De-mangle RFC 2047 header mangling :0Hhfw * =\?[^?]+\?[qb]\?[^?]+\?= | $HOME/bin/dmmh :0 fwib { INCLUDERC=/usr/home3/mmokrejs/public_html/procmail/mobiles/split-to-pager-short.rc } # remove all fields except From: and To: and insert X-Loop: shortened as X-L: :0fhw | formail -k -X From: -X Subject: :0fhw | formail -f -I "X-L:sms" # Rewrite the body; "flatten" whitespace, then throw away # anything after the 200th character :0 fhb | /usr/local/bin/tr -s '\011\012 ' ' ' | /usr/local/bin/cut -c 1-200 | /usr/local/bin/cstocs il2 il1 # # Send of the reformatted copy to a real pager # :0 c # * ! ^X-Loop: sms # ! 1234567890@pager-service.com # and save a copy to a local file here, original is still being delivered to # /var/spool/mail/$username - simply to your mailbox # the file is $HOME/era-mobile :0: era-mobile }