info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Insert message-insert-disposition-notification-to in Posting Styles


From: Damien Wyart
Subject: Re: Insert message-insert-disposition-notification-to in Posting Styles
Date: Mon, 30 Jul 2007 18:33:23 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1

> Hey, how you can change the "reply phrase", I mean this:
> * someusernamehere <someusernameh...@gmail.com> in gnu.emacs.gnus:

My function to handle this is a bit complicated. Here it is as an
example, you might need to learn a bit more of Gnus and Emacs Lisp to
fully understand it.

(defun dw-message-insert-citation-line ()
  "Function that inserts a simple citation line."
  (when message-reply-headers
    (cond
     ((string-match "nnml:mail" gnus-newsgroup-name)
      (insert "* "
              (mail-header-from message-reply-headers)
              " ["
              (format-time-string "%y%m%d %H:%M"
                                  (gnus-date-get-time
                                   (mail-header-date message-reply-headers)))
              "]:\n\n"))
     ((gnus-news-group-p gnus-newsgroup-name)
      (insert "* "
              (mail-header-from message-reply-headers)
              " in "
              gnus-newsgroup-name
              ":\n\n")))))

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

-- 
DW


reply via email to

[Prev in Thread] Current Thread [Next in Thread]