unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [Vagrant Cascadian] Bug#759302: notmuch-emacs: citation should use datestring from the replied to message
@ 2014-09-20  7:32 David Bremner
  2016-02-08 17:36 ` David Edmondson
  0 siblings, 1 reply; 2+ messages in thread
From: David Bremner @ 2014-09-20  7:32 UTC (permalink / raw)
  To: notmuch

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


I thought I forwarded this already, but maybe not.


[-- Attachment #2: Type: message/rfc822, Size: 6195 bytes --]

[-- Attachment #2.1.1: Type: text/plain, Size: 1514 bytes --]

Package: notmuch-emacs
Version: 0.18.1-1
Severity: normal

So, I've struggled with coming up with a citation line format:

 '(message-citation-line-format "On %Y-%m-%d %T %z, %N wrote:")
 '(message-citation-line-function (quote message-insert-formatted-citation-line))

But it localizes the timezone of datestring, rather than simply copying
the datestring from the replied to message. Several other mail clients,
including "notmuch reply", seem to simply copy the datestring including
the timezone data, it quotes using:

  On Sat, 23 Aug 2014 12:36:53 +0600, Example User <exampleuser@example.org> wrote:

But notmuch-emacs does changes the datestring to my locally configured
timezone. As far as I can tell, it can either be configured to use UTC,
or my local timezone only.

David Bremner suggests this may need to be fixed upstream.


live well,
  vagrant

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing'), (120, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
armhf

Kernel: Linux 3.14-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages notmuch-emacs depends on:
ii  emacs23                23.4+1-4.1+b1
ii  emacs24-nox [emacs24]  24.3+1-4+b1
ii  emacsen-common         2.0.8
ii  notmuch                0.18.1-1

notmuch-emacs recommends no packages.

notmuch-emacs suggests no packages.

-- no debconf information

[-- Attachment #2.1.2: Type: application/pgp-signature, Size: 818 bytes --]

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

* Re: [Vagrant Cascadian] Bug#759302: notmuch-emacs: citation should use datestring from the replied to message
  2014-09-20  7:32 [Vagrant Cascadian] Bug#759302: notmuch-emacs: citation should use datestring from the replied to message David Bremner
@ 2016-02-08 17:36 ` David Edmondson
  0 siblings, 0 replies; 2+ messages in thread
From: David Edmondson @ 2016-02-08 17:36 UTC (permalink / raw)
  To: David Bremner, notmuch

> So, I've struggled with coming up with a citation line format:
> 
>  '(message-citation-line-format "On %Y-%m-%d %T %z, %N wrote:")
>  '(message-citation-line-function (quote message-insert-formatted-citation-line))
> 
> But it localizes the timezone of datestring, rather than simply copying
> the datestring from the replied to message.

This is not something that we can fix (as is alluded to in the Debian
bug report).

`message-insert-formatted-citation-line' converts the date of the
message being replied to into Emacs time (a list of two integers) and
then uses `format-time-string' with the result.

All of the timezone information from the original header is lost during
the conversion to Emacs time.

Do we typically just open an upstream emacs bug in such cases?

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

end of thread, other threads:[~2016-02-08 17:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-20  7:32 [Vagrant Cascadian] Bug#759302: notmuch-emacs: citation should use datestring from the replied to message David Bremner
2016-02-08 17:36 ` 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).