# global procmailrc
#
# 3 Apr 1997, Choi Jun Ho <junker@jazz.snu.ac.kr>
#
# for Hangul mail transfer
#
# for details, refer http://pantheon.cis.yale.edu/~jshin/faq/procmail.html
#
LOGFILE=/var/log/procmail
VERBOSE=no
PATH=/usr/local/bin:/usr/bin:/bin

: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
}
