From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/82381 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-add-to-list doesn't work for all groups Date: Tue, 09 Oct 2012 12:09:51 +0200 Message-ID: <874nm4dki8.fsf@thinkpad.tsdh.de> References: <87sj9odtii.fsf@thinkpad.tsdh.de> <87k3v0dpam.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1349777456 11119 80.91.229.3 (9 Oct 2012 10:10:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Oct 2012 10:10:56 +0000 (UTC) Cc: ding@gnus.org To: Katsumi Yamaoka Original-X-From: ding-owner+M30647@lists.math.uh.edu Tue Oct 09 12:11:02 2012 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TLWmC-0006Ur-CX for ding-account@gmane.org; Tue, 09 Oct 2012 12:11:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1TLWlJ-0000h9-D1; Tue, 09 Oct 2012 05:10:05 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1TLWlI-0000gw-0y for ding@lists.math.uh.edu; Tue, 09 Oct 2012 05:10:04 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1TLWlD-0000Q5-F9 for ding@lists.math.uh.edu; Tue, 09 Oct 2012 05:10:03 -0500 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1TLWlB-0005Ar-T3 for ding@gnus.org; Tue, 09 Oct 2012 12:09:57 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id A6C7FD2239; Tue, 9 Oct 2012 12:09:57 +0200 (CEST) X-Virus-Scanned: amavisd-new at uni-koblenz.de Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7J1i3C_tkvJF; Tue, 9 Oct 2012 12:09:53 +0200 (CEST) X-CHKRCPT: Envelopesender noch tsdh@gnu.org Original-Received: from thinkpad.tsdh.de (tsdh.uni-koblenz.de [141.26.67.142]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTPSA id 22867D222B; Tue, 9 Oct 2012 12:09:53 +0200 (CEST) In-Reply-To: (Katsumi Yamaoka's message of "Tue, 09 Oct 2012 18:01:06 +0900") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.50 (gnu/linux) X-Spam-Score: -4.9 (----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:82381 Archived-At: Katsumi Yamaoka 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