From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/17869 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.user Subject: Re: choose/set from address & gcc-sent_mail Date: Mon, 28 Dec 2015 09:02:29 +0800 Message-ID: <87ege7mllm.fsf@ericabrahamsen.net> References: <87vb7jo8zu.fsf@jnanam.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1451264581 18975 80.91.229.3 (28 Dec 2015 01:03:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Dec 2015 01:03:01 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Mon Dec 28 02:02:51 2015 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aDMD2-0000DN-BZ for gegu-info-gnus-english@m.gmane.org; Mon, 28 Dec 2015 02:02:48 +0100 Original-Received: from localhost ([::1]:43217 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aDMD1-0002tj-Ny for gegu-info-gnus-english@m.gmane.org; Sun, 27 Dec 2015 20:02:47 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44601) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aDMCy-0002tT-UI for info-gnus-english@gnu.org; Sun, 27 Dec 2015 20:02:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aDMCv-0003Y8-Ng for info-gnus-english@gnu.org; Sun, 27 Dec 2015 20:02:44 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:54621) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aDMCv-0003Y3-Gu for info-gnus-english@gnu.org; Sun, 27 Dec 2015 20:02:41 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aDMCr-0008TR-Pb for info-gnus-english@gnu.org; Mon, 28 Dec 2015 02:02:37 +0100 Original-Received: from 111.197.157.87 ([111.197.157.87]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 28 Dec 2015 02:02:37 +0100 Original-Received: from eric by 111.197.157.87 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 28 Dec 2015 02:02:37 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 48 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 111.197.157.87 User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:rgeAikCgk6Kh9M/LkJ/jx5uqSig= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:17869 Archived-At: Benjamin Slade writes: > Is there any way to have Gnus automatically prompt for an account in > case none is set, when composing a new mail or replying to an email? > > I have set: > > (setq gnus-parameters > '( > ("home" > (posting-style > (address "me@gmail.com") > (gcc "\"nnimap+home:[Gmail].Sent Mail\""))) > ("work" > (posting-style > (address "me@work.com") > (gcc "\"nnimap+work:[Gmail].Sent Mail\""))) > )) > > Which means that if I reply to an email or compose a new email when I'm > in nnimap+home:.* or nnimap+work:.* it automatically picks the right > from address and puts a copy of the sent mail in the right place. > > But if I'm in a virtual group or in no group at all, then no Gcc is set, > and From is set to > "....i-did-not-set--mail-host-address--so-tickle-me". What I would like > to do is, in the absence of the account already being properly set, as > per the above rules, to prompt me to chose between, say, "home" and > "work". You can stop Gnus tickling you by setting the `user-mail-address' to a default "from" value. That will at least prevent you from getting those bogus values. But that won't run the appropriate gnus-parameters, or set any other headers up. There have been a few discussions about this on this and other lists recently. Apparently there are a couple of external packages you can try: Gnus Pers, and Gnus Alias: http://www.emacswiki.org/emacs/GnusPers http://www.emacswiki.org/emacs/GnusAlias I haven't tried them, but they are definitely there to solve this sort of problem... > Does anyone have something like this set up?