From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/85436 Path: news.gmane.org!not-for-mail From: Russ Allbery Newsgroups: gmane.emacs.gnus.general Subject: Re: fancy splitting interactively Date: Mon, 05 Jan 2015 22:39:50 -0800 Organization: The Eyrie Message-ID: <87zj9wmmyx.fsf@hope.eyrie.org> References: <87fvbs6u4k.fsf@mat.ucm.es> <87lhlk168j.fsf@ucl.ac.uk> <871tncvulj.fsf@ericabrahamsen.net> <877fx37ob9.fsf@mat.ucm.es> <87k313utl5.fsf@ericabrahamsen.net> <874ms54ddy.fsf@ucl.ac.uk> <87mw5x70uw.fsf@ericabrahamsen.net> <87mw5x2qjb.fsf@ucl.ac.uk> <878uhhvxpd.fsf@topper.koldfront.dk> <877fx07l95.fsf@ericabrahamsen.net> <87r3v8o4j2.fsf@hope.eyrie.org> <87lhlgxvrn.fsf@ericabrahamsen.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1420526496 2171 80.91.229.3 (6 Jan 2015 06:41:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 Jan 2015 06:41:36 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M33678@lists.math.uh.edu Tue Jan 06 07:41:31 2015 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 1Y8Noa-0002yY-9L for ding-account@gmane.org; Tue, 06 Jan 2015 07:40:28 +0100 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 1Y8NoB-0002ck-FQ; Tue, 06 Jan 2015 00:40:03 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Y8No3-0002cV-Fz for ding@lists.math.uh.edu; Tue, 06 Jan 2015 00:39:55 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1Y8No2-0002Us-1a for ding@lists.math.uh.edu; Tue, 06 Jan 2015 00:39:55 -0600 Original-Received: from haven.eyrie.org ([166.84.7.159]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1Y8No0-0005Sn-Hb for ding@gnus.org; Tue, 06 Jan 2015 07:39:52 +0100 Original-Received: from lothlorien.eyrie.org (lothlorien.stanford.edu [68.65.164.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by haven.eyrie.org (Postfix) with ESMTPS id A2573118075 for ; Mon, 5 Jan 2015 22:39:51 -0800 (PST) Original-Received: by lothlorien.eyrie.org (Postfix, from userid 1000) id EAB57B435C5; Mon, 5 Jan 2015 22:39:50 -0800 (PST) In-Reply-To: <87lhlgxvrn.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Tue, 06 Jan 2015 14:34:20 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:85436 Archived-At: Eric Abrahamsen writes: > Right, that's pretty much what I meant -- if I want to send an email as > Eric Abrahamsen, International Man of Mystery, complete with custom > headers and signature, I don't want to have to navigate to the "Man of > Mystery" group and compose from there. There probably isn't such a > group, and even if there were, that's not really what I *mean*. Yeah, that makes sense. > We'd have to figure out how these identities would interact with > composing from a group, but that could actually be interesting. A > group's posting styles could say "use identity B when composing from > this group", for example. ...but this is how Gnus already works now. Or am I missing something? > In short, in several cases I have gone through multiple groups and set > the same headers on all those groups' posting styles. It would make more > sense to me to specify that all these groups use the same identity. Oh, I think you're just missing the fact that this is Gnus, so you don't need to be mucking about in the properties of individual groups and can just use elisp. :) (setq gnus-posting-styles '(("." (address "eagle@eyrie.org") (name "Russ Allbery") (organization "The Eyrie") (signature-file "~/docs/sigs/eyrie") (eval (setq gnus-message-archive-group (rra-archive-group "mail")))) ((or (string-match "^comp\\.lang\\.perl" gnus-newsgroup-name) (string-match "^nnml:project\\.perl" gnus-newsgroup-name)) (address "rra@cpan.org") (signature-file "~/docs/sigs/perl")) ((and (string= "news.software.nntp" gnus-newsgroup-name) (message-news-p)) (signature-file "~/docs/sigs/help-newsgroup")) ((string= "nnml:project.inn" gnus-newsgroup-name) (signature-file "~/docs/sigs/help-list")))) and so forth. All matching settings are applied in order, so put more specific entries later. https://www.gnu.org/software/emacs/manual/html_node/gnus/Posting-Styles.html But you're right that mine is based on my current group, so I have to navigate to the appropriate group to use a particular style. Although note the documentation of gnus-posting-styles: you can run arbitrary elisp to figure out what style to use, among other things. So if you can figure out some other piece of information Gnus has available to select on, you can already use that to determine the posting style. But I don't think there's an easy way to give you something like Gmail's drop-down list of identities to pick from right now. -- Russ Allbery (eagle@eyrie.org)