1

I want to configure mu4e citation style—the manner in which mu4e quotes the thread in a reply—so that it is compatible with Gmail's UI.

enter image description here

Note the triple-dot collapsed style in the second message, where I replied through the UI.

There are the message contents:

Content-Type: text/plain; charset="UTF-8"

This style does

On Wed, Oct 3, 2018 at 5:52 PM <matt@example.com> wrote:

>
> This style doesn't work
>
> matt@example.com writes:
>
> > test
>

I have tried setting (setq message-cite-style message-cite-style-gmail), but no luck.

2

You need to customize message-citation-line-function. Something like this would help (it may require date formatting to please your needs):

(defun my/message-insert-citation-line ()
  "Based off `message-insert-citation-line`."
  (when message-reply-headers
    (insert "On " (mail-header-date message-reply-headers) " ")
    (insert (mail-header-from message-reply-headers) " writes:")
    (newline)
    (newline)))

(setq message-citation-line-function 'my/message-insert-citation-line)
1

An alternative to the above:

(setq message-citation-line-format "On %d %b %Y at %R, %f wrote:\n")

followed by

(setq message-citation-line-function 'message-insert-formatted-citation-line)

  • Apparently there's more to it than that, because sometimes this format works and sometimes it doesn't. I'm inspecting the payload and I can't find any substantial difference. So I'm not exactly sure what Google is doing. – Matthew Piziak Oct 9 '18 at 13:05
  • I thought I had it nailed down finally with (setq message-citation-line-format "On %a, %b %d, %Y at %H:%M %p %f wrote:"), but now it's stopped working again. – Matthew Piziak Feb 8 at 21:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.