From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/85457 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: fancy splitting interactively Date: Fri, 09 Jan 2015 11:01:56 +0800 Message-ID: <87y4pcmzbv.fsf@ericabrahamsen.net> 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> <87zj9wmmyx.fsf@hope.eyrie.org> <87ppasgyi5.fsf@nowhere.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1420772565 25150 80.91.229.3 (9 Jan 2015 03:02:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 Jan 2015 03:02:45 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M33699@lists.math.uh.edu Fri Jan 09 04:02:40 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 1Y9PpB-00005R-Mm for ding-account@gmane.org; Fri, 09 Jan 2015 04:01:22 +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 1Y9Pou-0002sz-PN; Thu, 08 Jan 2015 21:01:04 -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 1Y9Pot-0002sp-C0 for ding@lists.math.uh.edu; Thu, 08 Jan 2015 21:01:03 -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 1Y9Pos-00048W-Cd for ding@lists.math.uh.edu; Thu, 08 Jan 2015 21:01:03 -0600 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1Y9Por-0001mo-0D for ding@gnus.org; Fri, 09 Jan 2015 04:01:01 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Y9Pnv-0001vD-Pq for ding@gnus.org; Fri, 09 Jan 2015 04:00:03 +0100 Original-Received: from 111.197.154.230 ([111.197.154.230]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 09 Jan 2015 04:00:03 +0100 Original-Received: from eric by 111.197.154.230 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 09 Jan 2015 04:00:03 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 77 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 111.197.154.230 User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:F3Z+EcOARpxPPKF59c5Qhp4zYNU= X-Spam-Score: -0.5 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:85457 Archived-At: Glyn Millington writes: > Russ Allbery writes: > >> 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. > > > Isn't this what Gnus-alias does? > > http://www.emacswiki.org/emacs/GnusAlias Yes, I mentioned very package early on, as doing pretty much exactly what I had in mind. Does anyone have any particular opinions about maybe making that part of message.el? Eric