* Re: Forwarding a mail, with a non-ASCII signature
2014-11-16 14:18 Forwarding a mail, with a non-ASCII signature Lele Gaifax
@ 2014-11-16 14:56 ` Jani Nikula
2014-11-16 15:43 ` Lele Gaifax
2014-11-17 12:56 ` David Edmondson
` (2 subsequent siblings)
3 siblings, 1 reply; 11+ messages in thread
From: Jani Nikula @ 2014-11-16 14:56 UTC (permalink / raw)
To: Lele Gaifax, notmuch
On Sun, 16 Nov 2014, Lele Gaifax <lele@metapensiero.it> wrote:
> Recently I started using notmuch with Emacs as the main MUA, using
> message-mode to send emails. I'm *very* satisfied, BTW!
It doesn't seem to matter here, but are you really not using
notmuch-mua-new-mail to send emails? Your User-Agent field seems to
concur:
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.51 (gnu/linux)
> Everything works great, except that when I "forward" an email message:
> in that case, the "*unsent mail*" buffer contains the original message
> within a "#mml" tag, followed by my signature, apparently appended as
> binary (e.g. instead of "vivrò" I see "vivr\303\262"). When I try to
> send it, I get the "Unreadable characters" prompt...
I can reproduce this.
BR,
Jani.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Forwarding a mail, with a non-ASCII signature
2014-11-16 14:56 ` Jani Nikula
@ 2014-11-16 15:43 ` Lele Gaifax
0 siblings, 0 replies; 11+ messages in thread
From: Lele Gaifax @ 2014-11-16 15:43 UTC (permalink / raw)
To: notmuch
Jani Nikula <jani@nikula.org> writes:
> On Sun, 16 Nov 2014, Lele Gaifax <lele@metapensiero.it> wrote:
>> Recently I started using notmuch with Emacs as the main MUA, using
>> message-mode to send emails. I'm *very* satisfied, BTW!
>
> It doesn't seem to matter here, but are you really not using
> notmuch-mua-new-mail to send emails? Your User-Agent field seems to
> concur:
>
> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.51 (gnu/linux)
Yes, I prefer interacting with most ML thru gmane.org, so this message
originated from Gnus.
ciao, lele.
--
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
lele@metapensiero.it | -- Fortunato Depero, 1929.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Forwarding a mail, with a non-ASCII signature
2014-11-16 14:18 Forwarding a mail, with a non-ASCII signature Lele Gaifax
2014-11-16 14:56 ` Jani Nikula
@ 2014-11-17 12:56 ` David Edmondson
2014-11-17 16:55 ` Lele Gaifax
2014-11-17 14:02 ` David Edmondson
2014-11-28 7:35 ` David Bremner
3 siblings, 1 reply; 11+ messages in thread
From: David Edmondson @ 2014-11-17 12:56 UTC (permalink / raw)
To: Lele Gaifax, notmuch
On Sun, Nov 16 2014, Lele Gaifax wrote:
> Hi all,
>
> as you can see below, my signature contains some non-ASCII characters,
> and it is stored as UTF-8 (I have `(prefer-coding-system 'utf-8)` in my
> .emacs.el) in my home as ~/.signature.
>
> Recently I started using notmuch with Emacs as the main MUA, using
> message-mode to send emails. I'm *very* satisfied, BTW!
>
> Everything works great, except that when I "forward" an email message:
> in that case, the "*unsent mail*" buffer contains the original message
> within a "#mml" tag, followed by my signature, apparently appended as
> binary (e.g. instead of "vivrò" I see "vivr\303\262"). When I try to
> send it, I get the "Unreadable characters" prompt...
>
> I quickly inspected what notmuch-show-forward-message does, but AFAICT
> it does very little, delegating most of the work to message-mode: but
> doing the same from Gnus works ok, so I must be missing something.
>
> I also tried tweaking the message-default-charset, changing it from nil
> to utf-8, with the very same result.
>
> I'm using Emacs 24.4.51 compiled a few days ago, if that matters.
How do you insert the signature? That is, do you have some bits of
configuration that add the signature to outgoing messages?
> Thank you for any hint,
> ciao, lele.
> --
> nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
> real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
> lele@metapensiero.it | -- Fortunato Depero, 1929.
>
> _______________________________________________
> notmuch mailing list
> notmuch@notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Forwarding a mail, with a non-ASCII signature
2014-11-17 12:56 ` David Edmondson
@ 2014-11-17 16:55 ` Lele Gaifax
2014-11-17 17:25 ` David Edmondson
0 siblings, 1 reply; 11+ messages in thread
From: Lele Gaifax @ 2014-11-17 16:55 UTC (permalink / raw)
To: notmuch
David Edmondson <dme@dme.org> writes:
> How do you insert the signature? That is, do you have some bits of
> configuration that add the signature to outgoing messages?
Nothing special, just the following config snippet in my .gnus.el::
(setq gnus-posting-styles
'((".*"
(signature-file "~/.signature")
(name "Lele Gaifax")
(organization "Nautilus Entertainments"))))
> Could you try this patch please?
>
> diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
> index 6e03f1e..1592ca9 100644
> --- a/emacs/notmuch-show.el
> +++ b/emacs/notmuch-show.el
> @@ -235,9 +235,9 @@ For example, if you wanted to remove an \"unread\" tag and add a
> (let ((buf (generate-new-buffer (concat "*notmuch-msg-" id "*"))))
> (with-current-buffer buf
> (let ((coding-system-for-read 'no-conversion))
> - (call-process notmuch-command nil t nil "show" "--format=raw" id)
> - ,@body)
> - (kill-buffer buf))))))
> + (call-process notmuch-command nil t nil "show" "--format=raw" id))
> + ,@body)
> + (kill-buffer buf)))))
>
> (defun notmuch-show-turn-on-visual-line-mode ()
> "Enable Visual Line mode."
Yes! This works great, with it the forward buffer contains the signature
loaded with the correct encoding, and the sendmail succeeds without
prompting about unreadable chars.
Thanks a lot for fixing it,
ciao, lele.
--
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
lele@metapensiero.it | -- Fortunato Depero, 1929.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Forwarding a mail, with a non-ASCII signature
2014-11-17 16:55 ` Lele Gaifax
@ 2014-11-17 17:25 ` David Edmondson
2014-11-18 7:04 ` David Edmondson
0 siblings, 1 reply; 11+ messages in thread
From: David Edmondson @ 2014-11-17 17:25 UTC (permalink / raw)
To: Lele Gaifax, notmuch
On Mon, Nov 17 2014, Lele Gaifax wrote:
>> Could you try this patch please?
>>
>> diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
>> index 6e03f1e..1592ca9 100644
>> --- a/emacs/notmuch-show.el
>> +++ b/emacs/notmuch-show.el
>> @@ -235,9 +235,9 @@ For example, if you wanted to remove an \"unread\" tag and add a
>> (let ((buf (generate-new-buffer (concat "*notmuch-msg-" id "*"))))
>> (with-current-buffer buf
>> (let ((coding-system-for-read 'no-conversion))
>> - (call-process notmuch-command nil t nil "show" "--format=raw" id)
>> - ,@body)
>> - (kill-buffer buf))))))
>> + (call-process notmuch-command nil t nil "show" "--format=raw" id))
>> + ,@body)
>> + (kill-buffer buf)))))
>>
>> (defun notmuch-show-turn-on-visual-line-mode ()
>> "Enable Visual Line mode."
>
> Yes! This works great, with it the forward buffer contains the signature
> loaded with the correct encoding, and the sendmail succeeds without
> prompting about unreadable chars.
That's good, thanks for testing. I'll work up and submit a proper patch.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Forwarding a mail, with a non-ASCII signature
2014-11-17 17:25 ` David Edmondson
@ 2014-11-18 7:04 ` David Edmondson
0 siblings, 0 replies; 11+ messages in thread
From: David Edmondson @ 2014-11-18 7:04 UTC (permalink / raw)
To: Lele Gaifax, notmuch
On Mon, Nov 17 2014, David Edmondson wrote:
>>
>> Yes! This works great, with it the forward buffer contains the signature
>> loaded with the correct encoding, and the sendmail succeeds without
>> prompting about unreadable chars.
>
> That's good, thanks for testing. I'll work up and submit a proper patch.
id:1416294197-3170-1-git-send-email-dme@dme.org
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Forwarding a mail, with a non-ASCII signature
2014-11-16 14:18 Forwarding a mail, with a non-ASCII signature Lele Gaifax
2014-11-16 14:56 ` Jani Nikula
2014-11-17 12:56 ` David Edmondson
@ 2014-11-17 14:02 ` David Edmondson
2014-11-28 7:35 ` David Bremner
3 siblings, 0 replies; 11+ messages in thread
From: David Edmondson @ 2014-11-17 14:02 UTC (permalink / raw)
To: Lele Gaifax, notmuch
On Sun, Nov 16 2014, Lele Gaifax wrote:
> Hi all,
>
> as you can see below, my signature contains some non-ASCII characters,
> and it is stored as UTF-8 (I have `(prefer-coding-system 'utf-8)` in my
> .emacs.el) in my home as ~/.signature.
>
> Recently I started using notmuch with Emacs as the main MUA, using
> message-mode to send emails. I'm *very* satisfied, BTW!
>
> Everything works great, except that when I "forward" an email message:
> in that case, the "*unsent mail*" buffer contains the original message
> within a "#mml" tag, followed by my signature, apparently appended as
> binary (e.g. instead of "vivrò" I see "vivr\303\262"). When I try to
> send it, I get the "Unreadable characters" prompt...
>
> I quickly inspected what notmuch-show-forward-message does, but AFAICT
> it does very little, delegating most of the work to message-mode: but
> doing the same from Gnus works ok, so I must be missing something.
>
> I also tried tweaking the message-default-charset, changing it from nil
> to utf-8, with the very same result.
>
> I'm using Emacs 24.4.51 compiled a few days ago, if that matters.
Could you try this patch please?
diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
index 6e03f1e..1592ca9 100644
--- a/emacs/notmuch-show.el
+++ b/emacs/notmuch-show.el
@@ -235,9 +235,9 @@ For example, if you wanted to remove an \"unread\" tag and add a
(let ((buf (generate-new-buffer (concat "*notmuch-msg-" id "*"))))
(with-current-buffer buf
(let ((coding-system-for-read 'no-conversion))
- (call-process notmuch-command nil t nil "show" "--format=raw" id)
- ,@body)
- (kill-buffer buf))))))
+ (call-process notmuch-command nil t nil "show" "--format=raw" id))
+ ,@body)
+ (kill-buffer buf)))))
(defun notmuch-show-turn-on-visual-line-mode ()
"Enable Visual Line mode."
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: Forwarding a mail, with a non-ASCII signature
2014-11-16 14:18 Forwarding a mail, with a non-ASCII signature Lele Gaifax
` (2 preceding siblings ...)
2014-11-17 14:02 ` David Edmondson
@ 2014-11-28 7:35 ` David Bremner
2014-11-28 18:35 ` Lele Gaifax
3 siblings, 1 reply; 11+ messages in thread
From: David Bremner @ 2014-11-28 7:35 UTC (permalink / raw)
To: Lele Gaifax, notmuch
Lele Gaifax <lele@metapensiero.it> writes:
> Hi all,
>
> as you can see below, my signature contains some non-ASCII characters,
> and it is stored as UTF-8 (I have `(prefer-coding-system 'utf-8)` in my
> .emacs.el) in my home as ~/.signature.
This bug should be fixed in commit
0.19+3-g7585e8ca (as of this moment, notmuch master)
d
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Forwarding a mail, with a non-ASCII signature
2014-11-28 7:35 ` David Bremner
@ 2014-11-28 18:35 ` Lele Gaifax
2014-11-29 7:17 ` David Bremner
0 siblings, 1 reply; 11+ messages in thread
From: Lele Gaifax @ 2014-11-28 18:35 UTC (permalink / raw)
To: notmuch
David Bremner <david@tethera.net> writes:
> Lele Gaifax <lele@metapensiero.it> writes:
>
>> Hi all,
>>
>> as you can see below, my signature contains some non-ASCII characters,
>> and it is stored as UTF-8 (I have `(prefer-coding-system 'utf-8)` in my
>> .emacs.el) in my home as ~/.signature.
>
> This bug should be fixed in commit
>
> 0.19+3-g7585e8ca (as of this moment, notmuch master)
>
Thanks a lot, waiting to see it landing on the MELPA archive.
ciao, lele.
--
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
lele@metapensiero.it | -- Fortunato Depero, 1929.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Forwarding a mail, with a non-ASCII signature
2014-11-28 18:35 ` Lele Gaifax
@ 2014-11-29 7:17 ` David Bremner
0 siblings, 0 replies; 11+ messages in thread
From: David Bremner @ 2014-11-29 7:17 UTC (permalink / raw)
To: Lele Gaifax, notmuch
Lele Gaifax <lele@metapensiero.it> writes:
>>
>
> Thanks a lot, waiting to see it landing on the MELPA archive.
>
> ciao, lele.
Just be aware that people have had problems in the past using versions
from MELPA because they ship only the elisp and not the corresponding C
code. Hopefully it works better now, or at least detects dangerous
version mismatches between the elisp and C code.
d
^ permalink raw reply [flat|nested] 11+ messages in thread