--
Hello, folks.
I am trying to convert my old procmailrc file to exim system filter
so that I can use my old procmail recipes.
Can anyone please let me know if there is any automatic conversion tool
or how to convert it? Attached is my existing procmailrc configuration.
It basically modifies every incoming messages according to encoding
format because I, as a Korean doublebyte character user, need to do so.
I am fairly new to exim so any hint will be greatly appreciated.
I actually combine exim with procmail but some people let me know
that the exim system filter & the procmail is for different use.
Hence I decided to port my old procmailrc to exim system filter....
Thanks very much.
--
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
(o_ **WTFM**
(o_ (o_ //\
(/)_ (/)_ V_/_ http://kldp.org
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
--
LOGFILE=/var/log/procmail
VERBOSE=no
PATH=/usr/bin:/bin
SHELL=/bin/sh
DROPPRIVS=yes
:0
* ^Content-Type: *text/plain
* ^Content-Transfer-Encoding: *base64
{
:0 fbw
| mimencode -u -b
:0 fhw
| formail -I "Content-Transfer-Encoding: 8bit" -A \
"X-Automatic-MIME-Conversion-By-Procmail: Base64 to 8bit"
}
:0 E
* ^Content-Type: *text/plain
* ^Content-Transfer-Encoding: *quoted-printable
{
:0 fbw
| mimencode -u -q
:0 fhw
| formail -I "Content-Transfer-Encoding: 8bit" -A \
"X-Automatic-MIME-Conversion-By-Procmail: QP to 8bit"
}
:0 B
*^.\$\)C
{
:0 fhw
* ^Content-Type: text/plain
|formail -I "Content-Type: text/plain; charset=ISO-2022-KR" -a \
"Content-Transfer-Encoding: 7bit"
:0 Efhw
* ^Content-Type: text/html
|formail -I "Content-Type: text/html; charset=ISO-2022-KR" -a \
"Content-Transfer-Encoding: 7bit"
:0 fhw
|hcode -dk -m | formail -A \
"X-Automatic-Korean-Mail-Conversion: iso-2022-kr to euc-kr"
:0 fbw
|hmconv -u
}
:0 Efhw
*^(Subject|From|Cc):.*=\?(EUC-KR|ks_c_5601-1987)\?(B|Q)\?
|hcode -dk -m
:0
* ^Content-Type: text/(plain|html); .*charset=.?utf-8
{
:0 fbw
|iconv -c -f UTF-8 -t EUC-KR
:0 fhw
* ^Content-Type: text/plain
|formail -c -i "Content-Type: text/plain; charset=EUC-KR"
:0 Efhw
* ^Content-Type: text/html
|formail -c -i "Content-Type: text/html; charset=EUC-KR"
}
CHARSETLIST= "ISO-8859-1|ks_c_5601-1987|EUC-KR"
:0
*$ ^(Subject|From|Cc|To|Summary|Keyword):.*=\?($CHARSETLIST)\?(B|Q)\?
{
:0
*$ ^(Subject|From|Cc|To|Summary|Keyword):.*=\?\/($CHARSETLIST)
{
:0 fhw
| mhdecode $MATCH \
| formail -A \
"X-Automatic-RFC2047-decoding: MIME charset=$MATCH by mhdecode"
}
}
:0 Efhw
* ^(Subject|From|Cc|To|Summary|Keyword):.*=\?UTF-8?(B|Q)?
| mhdecode UTF-8 \
| formail -A \
"X-Automatic-RFC2047-decoding: MIME charset=UTF-8 by mhdecode" \
| iconv -c -f UTF-8 -t EUC-KR
--