* gnus-add-to-list doesn't work for all groups
@ 2012-10-09 6:55 Tassilo Horn
2012-10-09 7:56 ` Katsumi Yamaoka
0 siblings, 1 reply; 7+ messages in thread
From: Tassilo Horn @ 2012-10-09 6:55 UTC (permalink / raw)
To: ding
Hi all,
I've set `gnus-add-to-list' via group parameters to t in all my mailing
list groups.
--8<---------------cut here---------------start------------->8---
(setq gnus-parameters
[...]
(,(rx "nnimap+Uni:ml/")
(gcc-self . "nnimap+Uni:Sent")
(subscribed . t)
(gnus-add-to-list t))
(,(rx "nnimap+Fastmail:INBOX.mailinglists.")
(gcc-self . "nnimap+Fastmail:INBOX.Sent Items")
(gnus-use-scoring t)
(subscribed . t)
(gnus-add-to-list t))))
--8<---------------cut here---------------end--------------->8---
What works is that in every summary buffer of a mailing list like
nnimap+Fastmail:INBOX.mailinglists.ding
nnimap+Fastmail:INBOX.mailinglists.emacs-devel
gnus-add-to-list's value is t.
However, whereas in the emacs-devel group above, hitting `a' already
inserts the mailing list address as To (and gnus-mailing-list-mode is
t), that doesn't happen in ding or any other group. I remember that I
was once queried if emacs-devel@gnu.org should be added as to-list
parameter when posting to emacs-devel. However, that didn't happen in
any other mailing list group.
Now I've grepped the Gnus source files for gnus-add-to-list, and it's
only used in `gnus-post-news'. So I used `edebug-defun' to check why
there's no to-list parameter added although `gnus-add-to-list' it t, and
the answer is that this function isn't called at all when I send off a
mail with `C-c C-c' (`message-send-and-exit').
Any ideas what's wrong?
Bye,
Tassilo
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: gnus-add-to-list doesn't work for all groups
2012-10-09 6:55 gnus-add-to-list doesn't work for all groups Tassilo Horn
@ 2012-10-09 7:56 ` Katsumi Yamaoka
2012-10-09 8:26 ` Tassilo Horn
0 siblings, 1 reply; 7+ messages in thread
From: Katsumi Yamaoka @ 2012-10-09 7:56 UTC (permalink / raw)
To: ding
Tassilo Horn wrote:
[...]
> Now I've grepped the Gnus source files for gnus-add-to-list, and it's
> only used in `gnus-post-news'. So I used `edebug-defun' to check why
> there's no to-list parameter added although `gnus-add-to-list' it t, and
> the answer is that this function isn't called at all when I send off a
> mail with `C-c C-c' (`message-send-and-exit').
This adds the To address of a *sent* mail to the to-list group
parameter of the group (and is saved to the ~/.newsrc.eld file).
So, you will get that address in the To header afterward.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: gnus-add-to-list doesn't work for all groups
2012-10-09 7:56 ` Katsumi Yamaoka
@ 2012-10-09 8:26 ` Tassilo Horn
2012-10-09 9:01 ` Katsumi Yamaoka
0 siblings, 1 reply; 7+ messages in thread
From: Tassilo Horn @ 2012-10-09 8:26 UTC (permalink / raw)
To: Katsumi Yamaoka; +Cc: ding
Katsumi Yamaoka <yamaoka@jpl.org> writes:
>> Now I've grepped the Gnus source files for gnus-add-to-list, and it's
>> only used in `gnus-post-news'. So I used `edebug-defun' to check why
>> there's no to-list parameter added although `gnus-add-to-list' it t,
>> and the answer is that this function isn't called at all when I send
>> off a mail with `C-c C-c' (`message-send-and-exit').
>
> This adds the To address of a *sent* mail to the to-list group
> parameter of the group (and is saved to the ~/.newsrc.eld file).
> So, you will get that address in the To header afterward.
Yes, I know. But I've sent dozens of mails to ding and other mailing
list groups already, yet I get the prefilling of the mailing list
address only in my emacs-devel group.
In .newrc.eld, there's an entry (to-list . "emacs-devel@gnu.org") for my
emacs-devel group, but no other mailing list group has such an entry.
Bye,
Tassilo
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: gnus-add-to-list doesn't work for all groups
2012-10-09 8:26 ` Tassilo Horn
@ 2012-10-09 9:01 ` Katsumi Yamaoka
2012-10-09 10:09 ` Tassilo Horn
0 siblings, 1 reply; 7+ messages in thread
From: Katsumi Yamaoka @ 2012-10-09 9:01 UTC (permalink / raw)
To: ding
Tassilo Horn wrote:
> Katsumi Yamaoka <yamaoka@jpl.org> writes:
[...]
>> This adds the To address of a *sent* mail to the to-list group
>> parameter of the group (and is saved to the ~/.newsrc.eld file).
>> So, you will get that address in the To header afterward.
> Yes, I know. But I've sent dozens of mails to ding and other mailing
> list groups already, yet I get the prefilling of the mailing list
> address only in my emacs-devel group.
> In .newrc.eld, there's an entry (to-list . "emacs-devel@gnu.org") for my
> emacs-devel group, but no other mailing list group has such an entry.
This requires using the `a' command to start composing a mail.
Moreover, the function to send a mail should be one of the
message.el functions that understands `message-send-actions'.
See its value in a mail beffer; it should have this element:
(gnus-inews-add-to-address "GroupName")
Note that this won't appear if the to-list or to-address group
parameter has already been set for the group (and gnus-add-to-list
will have no effect).
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: gnus-add-to-list doesn't work for all groups
2012-10-09 9:01 ` Katsumi Yamaoka
@ 2012-10-09 10:09 ` Tassilo Horn
2012-10-09 11:02 ` Katsumi Yamaoka
0 siblings, 1 reply; 7+ messages in thread
From: Tassilo Horn @ 2012-10-09 10:09 UTC (permalink / raw)
To: Katsumi Yamaoka; +Cc: ding
Katsumi Yamaoka <yamaoka@jpl.org> writes:
> This requires using the `a' command to start composing a mail.
I think, I did so in my original mail starting this thread. [This
turned out to be wrong; see below.]
> Moreover, the function to send a mail should be one of the message.el
> functions that understands `message-send-actions'. See its value in a
> mail beffer; it should have this element:
>
> (gnus-inews-add-to-address "GroupName")
Ok, so now I've hit `a' in my ding group and got a new *unsent mail*
message-mode buffer with this value.
,----
| message-send-actions is a variable defined in `message.el'.
| Its value is
| ((when
| (gnus-buffer-exists-p "*Summary nnimap+Fastmail:INBOX.mailinglists.ding*")
| (with-current-buffer "*Summary nnimap+Fastmail:INBOX.mailinglists.ding*" nil))
| (gnus-inews-add-to-address "nnimap+Fastmail:INBOX.mailinglists.ding"))
|
| Local in buffer *unsent mail*; global value is nil
|
| Documentation:
| A list of actions to be performed upon successful sending of a message.
`----
So that looks good to me. In that mail, I added myself as To, and now I
should be queried if my own address should be added as to-list for my
ding group.
I've done edebug-defun on `gnus-inews-add-to-address' and am now sending
off the mail with `message-send-and-exit'... Gosh, it worked, I was
queried!!
OMG, now I know what I was doing wrong all the time. When I want to
compose a mail to a list it goes like:
1. `a' ; Shit, empty To. Don't want to hand-edit!
2. `C-x k RET' ; Kill the *unsent mail* buffer
3. `RET' ; Select some random article from the summary
4. Move point to To: ding@gnus.org and `RET' which creates a new
*unsent mail* buffer with To prefilled.
So, yes, that's not `a'. ;-)
However, maybe it would make sense if `RET' on an email address had the
same effect as `a' rather than `m'...
Bye,
Tassilo
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: gnus-add-to-list doesn't work for all groups
2012-10-09 10:09 ` Tassilo Horn
@ 2012-10-09 11:02 ` Katsumi Yamaoka
2012-10-09 11:17 ` Tassilo Horn
0 siblings, 1 reply; 7+ messages in thread
From: Katsumi Yamaoka @ 2012-10-09 11:02 UTC (permalink / raw)
To: ding
Tassilo Horn wrote:
> However, maybe it would make sense if `RET' on an email address had the
> same effect as `a' rather than `m'...
Why it is limited to only `a' seems to be, I guess, that one may
have not wanted gnus-add-to-list to be conspicuous since it cannot
be complete (the To address isn't necessarily the list address ;-).
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: gnus-add-to-list doesn't work for all groups
2012-10-09 11:02 ` Katsumi Yamaoka
@ 2012-10-09 11:17 ` Tassilo Horn
0 siblings, 0 replies; 7+ messages in thread
From: Tassilo Horn @ 2012-10-09 11:17 UTC (permalink / raw)
To: ding; +Cc: Katsumi Yamaoka
Katsumi Yamaoka <yamaoka@jpl.org> writes:
>> However, maybe it would make sense if `RET' on an email address had
>> the same effect as `a' rather than `m'...
>
> Why it is limited to only `a' seems to be, I guess, that one may have
> not wanted gnus-add-to-list to be conspicuous since it cannot be
> complete (the To address isn't necessarily the list address ;-).
That's true, but on the other hand you're queried anyway and able not to
select the current address as to-list. So it depends if one frequently
starts off-list mails by selecting the receiver from a mailing list
summary. Or even more concrete, if one frequently starts off-list mails
that way before to-list has been set initially. Not very likely, IMHO.
But I'll simply remember to press `a' the next time. :-)
Thanks a lot for your help,
Tassilo
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2012-10-09 11:17 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-09 6:55 gnus-add-to-list doesn't work for all groups Tassilo Horn
2012-10-09 7:56 ` Katsumi Yamaoka
2012-10-09 8:26 ` Tassilo Horn
2012-10-09 9:01 ` Katsumi Yamaoka
2012-10-09 10:09 ` Tassilo Horn
2012-10-09 11:02 ` Katsumi Yamaoka
2012-10-09 11:17 ` Tassilo Horn
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).