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