unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Supercite and mail-citation-hook
@ 2009-10-30 22:41 Ulrich Mueller
  2009-11-02  8:12 ` Glenn Morris
  2009-11-02 14:18 ` Stefan Monnier
  0 siblings, 2 replies; 3+ messages in thread
From: Ulrich Mueller @ 2009-10-30 22:41 UTC (permalink / raw)
  To: emacs-devel

I am trying to debug a problem with Supercite's attribution line
when used with the VM mailreader, and I'm not sure which of the two
programs is to blame. Supercite is called by VM in the standard way,
i.e. via mail-citation-hook and function sc-cite-original.

The problem occurs when replying to an e-mail message with a
QP-encoded "From" header, which will have a broken attribution line
like the following:

   >>>>> On Fri, 30 Oct 2009, =?ISO-8859-1?Q?Ulrich_M=FCller?= wrote:

Now the Supercite Info file says in section 10 "Hints to MUA Authors":

| [...] when setting up a reply or forward buffer, your MUA should
| follow these steps:
| 
|   1. Insert the original message, including the mail headers into the
|      reply buffer. At this point you should not modify the raw text in
|      any way, and you should place all the original headers into the
|      body of the reply. [...]

The wording ("not modify the raw text in any way", "original headers")
seems to indicate that the MUA shouldn't do any decoding here.

However, Supercite also doesn't do any QP decoding, which leads to the
above broken attribution line.

So my question is, who should decode the headers? The MUA (then the
documentation of mail-citation-hook in sc.texi should be changed or
clarified), or Supercite (then it's a bug there)?

Ulrich




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

* Re: Supercite and mail-citation-hook
  2009-10-30 22:41 Supercite and mail-citation-hook Ulrich Mueller
@ 2009-11-02  8:12 ` Glenn Morris
  2009-11-02 14:18 ` Stefan Monnier
  1 sibling, 0 replies; 3+ messages in thread
From: Glenn Morris @ 2009-11-02  8:12 UTC (permalink / raw)
  To: Ulrich Mueller; +Cc: emacs-devel

Ulrich Mueller wrote:

> However, Supercite also doesn't do any QP decoding, which leads to the
> above broken attribution line.
>
> So my question is, who should decode the headers? The MUA (then the
> documentation of mail-citation-hook in sc.texi should be changed or
> clarified), or Supercite (then it's a bug there)?

I haven't thought about it much, but I think the MUA should do any
necessary decoding, since it has to do it anyway to display the
message in the first place. It wouldn't really make sense for SC to
have to do it again. So I would say the documentation should be
changed.




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

* Re: Supercite and mail-citation-hook
  2009-10-30 22:41 Supercite and mail-citation-hook Ulrich Mueller
  2009-11-02  8:12 ` Glenn Morris
@ 2009-11-02 14:18 ` Stefan Monnier
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2009-11-02 14:18 UTC (permalink / raw)
  To: Ulrich Mueller; +Cc: emacs-devel

> The wording ("not modify the raw text in any way", "original headers")
> seems to indicate that the MUA shouldn't do any decoding here.

Yes, this is misleading.

> So my question is, who should decode the headers?

The MUA.


        Stefan




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

end of thread, other threads:[~2009-11-02 14:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-30 22:41 Supercite and mail-citation-hook Ulrich Mueller
2009-11-02  8:12 ` Glenn Morris
2009-11-02 14:18 ` Stefan Monnier

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

	https://git.savannah.gnu.org/cgit/emacs.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).