Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Insert message-insert-disposition-notification-to in Posting Styles
@ 2007-07-30 16:03 someusernamehere
  2007-07-30 16:15 ` Damien Wyart
  0 siblings, 1 reply; 14+ messages in thread
From: someusernamehere @ 2007-07-30 16:03 UTC (permalink / raw)
  To: info-gnus-english

Is possible this? insert message-insert-disposition-notification-to in
Posting Styles o in some place n the .gnus file for insert/send  this
automatically?

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

* Re: Insert message-insert-disposition-notification-to in Posting Styles
  2007-07-30 16:03 Insert message-insert-disposition-notification-to in Posting Styles someusernamehere
@ 2007-07-30 16:15 ` Damien Wyart
  2007-07-30 16:21   ` someusernamehere
  2007-07-30 16:26   ` someusernamehere
  0 siblings, 2 replies; 14+ messages in thread
From: Damien Wyart @ 2007-07-30 16:15 UTC (permalink / raw)
  To: info-gnus-english

* someusernamehere <someusernamehere@gmail.com> in gnu.emacs.gnus:
> Is possible this? insert message-insert-disposition-notification-to in
> Posting Styles

Yes, you can insert any header you need.

-- 
DW

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

* Re: Insert message-insert-disposition-notification-to in Posting Styles
  2007-07-30 16:15 ` Damien Wyart
@ 2007-07-30 16:21   ` someusernamehere
  2007-07-30 16:30     ` Damien Wyart
  2007-07-30 16:26   ` someusernamehere
  1 sibling, 1 reply; 14+ messages in thread
From: someusernamehere @ 2007-07-30 16:21 UTC (permalink / raw)
  To: info-gnus-english

On 30 jul, 11:15, Damien Wyart <damien.wy...@free.fr> wrote:
> * someusernamehere <someusernameh...@gmail.com> in gnu.emacs.gnus:
>
> > Is possible this? insert message-insert-disposition-notification-to in
> > Posting Styles
>
> Yes, you can insert any header you need.



and... how? :)

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

* Re: Insert message-insert-disposition-notification-to in Posting Styles
  2007-07-30 16:15 ` Damien Wyart
  2007-07-30 16:21   ` someusernamehere
@ 2007-07-30 16:26   ` someusernamehere
  2007-07-30 16:33     ` Damien Wyart
  1 sibling, 1 reply; 14+ messages in thread
From: someusernamehere @ 2007-07-30 16:26 UTC (permalink / raw)
  To: info-gnus-english

On 30 jul, 11:15, Damien Wyart <damien.wy...@free.fr> wrote:
> * someusernamehere <someusernameh...@gmail.com> in gnu.emacs.gnus:
>
> > Is possible this? insert message-insert-disposition-notification-to in
> > Posting Styles
>
> Yes, you can insert any header you need.


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


??

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

* Re: Insert message-insert-disposition-notification-to in Posting Styles
  2007-07-30 16:21   ` someusernamehere
@ 2007-07-30 16:30     ` Damien Wyart
  0 siblings, 0 replies; 14+ messages in thread
From: Damien Wyart @ 2007-07-30 16:30 UTC (permalink / raw)
  To: info-gnus-english

> > > Is possible this? insert
> > > message-insert-disposition-notification-to in Posting Styles

> > Yes, you can insert any header you need.

> and... how? :)

(setq gnus-posting-styles
      '(
        (message-this-is-mail
         ("From" "Dave Null <dave.null@unix.org>")
         (signature-file "~/.signature")
         ("Disposition-Notification-To" "Dave Null <dave.null@unix.org>")
         ("Any-Other-Header-You-Want" "Value of this header")
         )))

Only a simple example, you might use many conditional clauses (here
I used only one, message-this-is-mail).

See the manual for more details :
http://gnus.org/manual/gnus_139.html

-- 
DW

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

* Re: Insert message-insert-disposition-notification-to in Posting Styles
  2007-07-30 16:26   ` someusernamehere
@ 2007-07-30 16:33     ` Damien Wyart
  2007-07-30 16:51       ` someusernamehere
                         ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Damien Wyart @ 2007-07-30 16:33 UTC (permalink / raw)
  To: info-gnus-english

> 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

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

* Re: Insert message-insert-disposition-notification-to in Posting Styles
  2007-07-30 16:33     ` Damien Wyart
@ 2007-07-30 16:51       ` someusernamehere
  2007-07-30 19:03         ` Damien Wyart
  2007-07-30 19:17       ` someusernamehere
  2007-08-01 15:04       ` Exal de Jesus Garcia Carrillo
  2 siblings, 1 reply; 14+ messages in thread
From: someusernamehere @ 2007-07-30 16:51 UTC (permalink / raw)
  To: info-gnus-english

On 30 jul, 11:33, Damien Wyart <damien.wy...@free.fr> wrote:
> > 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)


Is your .gnus online?  :D

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

* Re: Insert message-insert-disposition-notification-to in Posting Styles
  2007-07-30 16:51       ` someusernamehere
@ 2007-07-30 19:03         ` Damien Wyart
  0 siblings, 0 replies; 14+ messages in thread
From: Damien Wyart @ 2007-07-30 19:03 UTC (permalink / raw)
  To: info-gnus-english

> Is your .gnus online?  :D

No, it is quite unreadable, not well commented and contains some private
settings related to internal webservers. But the main parts are coming
from these files (commented in French, unfortunately) :

http://www.teaser.fr/~nchuche/gnus/gnus.el-1.11
http://www-verimag.imag.fr/~moy/emacs/.gnus.el

Lots more are available on the web, searching on "gnus" and "dotfiles"
or "configuration"...

-- 
DW

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

* Re: Insert message-insert-disposition-notification-to in Posting Styles
  2007-07-30 16:33     ` Damien Wyart
  2007-07-30 16:51       ` someusernamehere
@ 2007-07-30 19:17       ` someusernamehere
  2007-07-30 19:29         ` Damien Wyart
  2007-08-01 15:04       ` Exal de Jesus Garcia Carrillo
  2 siblings, 1 reply; 14+ messages in thread
From: someusernamehere @ 2007-07-30 19:17 UTC (permalink / raw)
  To: info-gnus-english

On 30 jul, 11:33, Damien Wyart <damien.wy...@free.fr> wrote:
> > 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)


mmm sure, I dont know hot to setup this :-(, I have copy-pasted your
code in my
.gnus but doesn't work, is needed some additional, can you tell me
what please ? :-D


many thanks for your replies.

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

* Re: Insert message-insert-disposition-notification-to in Posting Styles
  2007-07-30 19:17       ` someusernamehere
@ 2007-07-30 19:29         ` Damien Wyart
  2007-07-30 19:52           ` someusernamehere
  0 siblings, 1 reply; 14+ messages in thread
From: Damien Wyart @ 2007-07-30 19:29 UTC (permalink / raw)
  To: info-gnus-english

> mmm sure, I dont know hot to setup this :-(, I have copy-pasted your
> code in my .gnus but doesn't work, is needed some additional, can you
> tell me what please ? :-D

My code has two cases : one for news (the second one) and this should
work for you, and one for mail matching nnml: on group names, but maybe
you do not use nnml mailgroups. Are you sure this doesn't work at all in
newsgroups ? the gnus-news-group-p test should be true in that case.
I do not see anything specific in this section of my file, but I have
not modified it recently.

If you get some error message, you can post it here.

> many thanks for your replies.

You are welcome! Gnus newcomers are a bit rare these days...

I understand you would like to get something up and running rapidly, but
do not hurry too much, or you will be lost if you work on all parts of
.gnus.el at the same time without understanding any of them ; this might
even make you stop trying Gnus, a pity! Take time to read a bit of the
manual, it is quite gentle, and you can skip many details for a first
read. http://gnus.org/manual/gnus_toc.html

There is also a small tutorial : http://my.gnus.org/tutorial/
I am not sure about its freshness but this might help you getting
started.

It is getting late here in France so I will not be able to help you
until tomorrow... Maybe other readers will be able to direct you to some
others .gnus.el files with comments in English.


Best,

-- 
DW

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

* Re: Insert message-insert-disposition-notification-to in Posting Styles
  2007-07-30 19:29         ` Damien Wyart
@ 2007-07-30 19:52           ` someusernamehere
  2007-07-31  5:15             ` Damien Wyart
  0 siblings, 1 reply; 14+ messages in thread
From: someusernamehere @ 2007-07-30 19:52 UTC (permalink / raw)
  To: info-gnus-english

On 30 jul, 14:29, Damien Wyart <damien.wy...@free.fr> wrote:
> > mmm sure, I dont know hot to setup this :-(, I have copy-pasted your
> > code in my .gnus but doesn't work, is needed some additional, can you
> > tell me what please ? :-D
>
> My code has two cases : one for news (the second one) and this should
> work for you, and one for mail matching nnml: on group names, but maybe
> you do not use nnml mailgroups. Are you sure this doesn't work at all in
> newsgroups ? the gnus-news-group-p test should be true in that case.
> I do not see anything specific in this section of my file, but I have
> not modified it recently.
>


the error is when I just hit `F' for reply in news I get:

Symbol's value as variable is void:

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

* Re: Insert message-insert-disposition-notification-to in Posting Styles
  2007-07-30 19:52           ` someusernamehere
@ 2007-07-31  5:15             ` Damien Wyart
  0 siblings, 0 replies; 14+ messages in thread
From: Damien Wyart @ 2007-07-31  5:15 UTC (permalink / raw)
  To: info-gnus-english

Hello,

> the error is when I just hit `F' for reply in news I get:
> Symbol's value as variable is void:

The message should be longer and tell which symbol has the problem.
Could you go into the *Messages* buffer (via C-x b or the Buffer menu)
and look if there is more information ?

-- 
DW

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

* Re: Insert message-insert-disposition-notification-to in Posting Styles
  2007-07-30 16:33     ` Damien Wyart
  2007-07-30 16:51       ` someusernamehere
  2007-07-30 19:17       ` someusernamehere
@ 2007-08-01 15:04       ` Exal de Jesus Garcia Carrillo
  2007-08-03  9:00         ` Damien Wyart
  2 siblings, 1 reply; 14+ messages in thread
From: Exal de Jesus Garcia Carrillo @ 2007-08-01 15:04 UTC (permalink / raw)
  To: info-gnus-english

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Damien Wyart <damien.wyart@free.fr> no gnu.emacs.gnus escreveu :

[...]

> 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)


There are a way for show only for example the `user from name'? or only
the `user e-mail address?, I mean, the mail-header-from var show both, 
how I can show only one?


regards


- -- 
Spam protection: 
In my e-mail remplace the words `no-spam' with `exal'.


.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8+ <http://mailcrypt.sourceforge.net/>

iD8DBQFGsKEHoZmxoVJRtGIRAom5AJ44VDmiWYWf8Xy25zPepSI1AUeEqACeIe/l
sAV0TIyKH0iFXobLF7y9868=
=f8Be
-----END PGP SIGNATURE-----

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

* Re: Insert message-insert-disposition-notification-to in Posting Styles
  2007-08-01 15:04       ` Exal de Jesus Garcia Carrillo
@ 2007-08-03  9:00         ` Damien Wyart
  0 siblings, 0 replies; 14+ messages in thread
From: Damien Wyart @ 2007-08-03  9:00 UTC (permalink / raw)
  To: info-gnus-english

> There are a way for show only for example the `user from name'? or only
> the `user e-mail address?, I mean, the mail-header-from var show both, 
> how I can show only one?

Replace

(mail-header-from message-reply-headers)

by

(car
  (mail-extract-address-components
  (mail-header-from message-reply-headers))) 

or

(cadr
  (mail-extract-address-components
  (mail-header-from message-reply-headers)))

-- 
DW

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

end of thread, other threads:[~2007-08-03  9:00 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-30 16:03 Insert message-insert-disposition-notification-to in Posting Styles someusernamehere
2007-07-30 16:15 ` Damien Wyart
2007-07-30 16:21   ` someusernamehere
2007-07-30 16:30     ` Damien Wyart
2007-07-30 16:26   ` someusernamehere
2007-07-30 16:33     ` Damien Wyart
2007-07-30 16:51       ` someusernamehere
2007-07-30 19:03         ` Damien Wyart
2007-07-30 19:17       ` someusernamehere
2007-07-30 19:29         ` Damien Wyart
2007-07-30 19:52           ` someusernamehere
2007-07-31  5:15             ` Damien Wyart
2007-08-01 15:04       ` Exal de Jesus Garcia Carrillo
2007-08-03  9:00         ` Damien Wyart

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 NNTP newsgroup(s).