아직 Mutt 사용하고 계신분 있으신가요?

익명 사용자의 이미지

Mutt를 들어만 보고 있다가 최근에 되어서야 사용해보게 되었습니다.

그러나 역시나 한글 인코딩이 발목을 잡게 되네요ㅜ

Gmail이나 기타 이메일에서 오는 메일은 전부 정상적으로 처리되는데

Outlook에서 보내진 메일(X-Mailer: Microsoft Outlook 14.0)을 보면 한글이 완전히 깨져서 나옵니다.

메일 헤더를 보니 charset="ks_c_5601-1987" 으로 되어있길래 이를

charset-hook ks_c_5601-1987    euc-kr

를 통해서 일단 메일 내용을 정상적으로 인코딩에 성공했습니다!! ... 만

이는 pager 모드에서의 내용에 대한 인코딩만 통하고..

index 모드(메일 리스트)에서 Outlook을 통해 보내진 메일은 제목이 깨져서 나오네요. 꼭 Outlook에서 보낸 메일만 이럽니다 ㅜㅜ

무엇이 문제일까요? Outlook에서 비표준을 사용해서 보낸다고 해도 그걸 우회해서 제대로 볼 수 있는 방법이 있을까요?

제가 여러번 삽질을 하며 시도해본 한글 관련 config는 다음과 같습니다.

set allow_8bit
set use_8bitmime
set charset="UTF-8//TRANSLIT"
set send_charset="UTF-8//TRANSLIT"
set assumed_charset="euc-kr"
set print_command="/usr/bin/lp"
charset-hook ks_c_5601-1987    euc-kr

p.s. 아직 살아있는 mutt korean user 메일링이 있나요? http://mutt.kldp.net/ 상에 있는 메일링 리스트는 깨진 링크라서요.

eunjea의 이미지

제목이 깨져 나오는 이메일의 소스를 확인했을때 그앞에 제대로 charset이 명기되어 있나요?
예: Subject: =?ks_c_5601-1987?B?wNPAusDnt
그게 아니면 제대로 안 보이는것 이 당연합니다.

전 utf-8 환경에서 쓰고 있고 locale 관련 설정 파일 내용은 다음과 같습니다.
인덱스 모드에서 제목은 대부분 잘 나오고 한가지 문제는 아웃룩에서 첨부된 한글 파일명입니다. 이것은 패치가 있긴 한데 공식은 아닙니다.

set   charset="UTF-8"
set   locale="ko_KR.UTF-8"
set   send_charset="us-ascii:iso-8859-1:utf-8"
 
set assumed_charset="euc-kr:utf-8"
 
charset-hook ks_c_5601-1987 X-Windows-949
iconv-hook X-Windows-949 MSCP949
익명 사용자의 이미지

잘 되는군요!

eunjae님의 셋팅중 어떤것이 먹힌건지 궁금해서 몇가지 실험을 해보니

iconv-hook X-Windows-949 MSCP949

이 셋팅이 영향을 준 것 같네요.

이 셋팅만 적용해도 인덱스 모드에서 제목이 잘 나오군요 :)

그러나 한번 읽어들인 인코딩 형식은 바뀌질 않는지,

새로 들어오는 메일(혹은 다른 폴더로 이동 후 다시 Inbox로 이동)에 대해서만 인코딩 적용이 되는 듯 하네요.

아마 캐쉬 문제일 것 같습니다. 하마터면 세팅탓을 할 뻔 했네요..

정말 감사드립니다! 덕분에 한결 즐거운 mutt 사용이 되겠군요 :)

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.