unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] bound mail-parse-charset, used by some functions on mm-view.el when there is no charset metadata in the html
@ 2011-03-25  3:25 Konrad Scorciapino
  2011-12-30 10:53 ` David Edmondson
  0 siblings, 1 reply; 4+ messages in thread
From: Konrad Scorciapino @ 2011-03-25  3:25 UTC (permalink / raw)
  To: notmuch; +Cc: Konrad Scorciapino

From: Konrad Scorciapino <konrad@scorciapino.com>

---
 emacs/notmuch-show.el |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
index f3150af..2462ec1 100644
--- a/emacs/notmuch-show.el
+++ b/emacs/notmuch-show.el
@@ -312,9 +312,10 @@ current buffer, if possible."
 (defun notmuch-show-insert-part-*/* (msg part content-type nth depth declared-type)
   ;; This handler _must_ succeed - it is the handler of last resort.
   (notmuch-show-insert-part-header nth content-type declared-type (plist-get part :filename))
-  (let ((content (notmuch-show-get-bodypart-content msg part nth)))
+  (let* ((content (notmuch-show-get-bodypart-content msg part nth))
+         (mail-parse-charset (first (detect-coding-string content))))
     (if content
-	(notmuch-show-mm-display-part-inline msg part content-type content)))
+        (notmuch-show-mm-display-part-inline msg part content-type content)))
   t)
 
 ;; Functions for determining how to handle MIME parts.
-- 
1.7.4.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] bound mail-parse-charset, used by some functions on mm-view.el when there is no charset metadata in the html
  2011-03-25  3:25 [PATCH] bound mail-parse-charset, used by some functions on mm-view.el when there is no charset metadata in the html Konrad Scorciapino
@ 2011-12-30 10:53 ` David Edmondson
  2012-01-03 12:15   ` Konrad Scorciapino
  0 siblings, 1 reply; 4+ messages in thread
From: David Edmondson @ 2011-12-30 10:53 UTC (permalink / raw)
  To: Konrad Scorciapino, notmuch; +Cc: Konrad Scorciapino

[-- Attachment #1: Type: text/plain, Size: 102 bytes --]

Konrad, can you provide a specific example of when this is useful? I
don't understand what it is for.

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] bound mail-parse-charset, used by some functions on mm-view.el when there is no charset metadata in the html
  2011-12-30 10:53 ` David Edmondson
@ 2012-01-03 12:15   ` Konrad Scorciapino
  2012-01-03 12:23     ` David Edmondson
  0 siblings, 1 reply; 4+ messages in thread
From: Konrad Scorciapino @ 2012-01-03 12:15 UTC (permalink / raw)
  To: David Edmondson; +Cc: notmuch, Konrad Scorciapino

It fixes some encoding issues. I thought it was already incorporated,
as I no longer have this issue, but words like 'català' were being
displayed as 'catala', iirc.

2011/12/30 David Edmondson <dme@dme.org>:
> Konrad, can you provide a specific example of when this is useful? I
> don't understand what it is for.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] bound mail-parse-charset, used by some functions on mm-view.el when there is no charset metadata in the html
  2012-01-03 12:15   ` Konrad Scorciapino
@ 2012-01-03 12:23     ` David Edmondson
  0 siblings, 0 replies; 4+ messages in thread
From: David Edmondson @ 2012-01-03 12:23 UTC (permalink / raw)
  To: Konrad Scorciapino; +Cc: notmuch, Konrad Scorciapino

[-- Attachment #1: Type: text/plain, Size: 458 bytes --]

On Tue, 3 Jan 2012 10:15:44 -0200, Konrad Scorciapino <konr@konr.mobi> wrote:
> It fixes some encoding issues. I thought it was already incorporated,
> as I no longer have this issue, but words like 'català' were being
> displayed as 'catala', iirc.

I'll mark the patch as 'obsolete', then.

> 2011/12/30 David Edmondson <dme@dme.org>:
> > Konrad, can you provide a specific example of when this is useful? I
> > don't understand what it is for.

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-01-03 12:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-25  3:25 [PATCH] bound mail-parse-charset, used by some functions on mm-view.el when there is no charset metadata in the html Konrad Scorciapino
2011-12-30 10:53 ` David Edmondson
2012-01-03 12:15   ` Konrad Scorciapino
2012-01-03 12:23     ` David Edmondson

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).