From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/9506 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.gnus.user Subject: Re: gnus-posting-styles confusing Date: Mon, 13 Aug 2007 10:16:08 +0200 Message-ID: <87fy2n97ef.fsf@baldur.tsdh.de> References: <1186989333.549695.14690@i38g2000prf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1186993027 10658 80.91.229.12 (13 Aug 2007 08:17:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 13 Aug 2007 08:17:07 +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 Aug 13 10:17:04 2007 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IKV6Z-0000kH-4B for gegu-info-gnus-english@m.gmane.org; Mon, 13 Aug 2007 10:16:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IKV6Y-0001HH-KN for gegu-info-gnus-english@m.gmane.org; Mon, 13 Aug 2007 04:16:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IKV6W-0001Fu-5H for info-gnus-english@gnu.org; Mon, 13 Aug 2007 04:16:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IKV6U-0001Dq-7J for info-gnus-english@gnu.org; Mon, 13 Aug 2007 04:16:47 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IKV6U-0001De-2q for info-gnus-english@gnu.org; Mon, 13 Aug 2007 04:16:46 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IKV6T-0002uS-KT for info-gnus-english@gnu.org; Mon, 13 Aug 2007 04:16:45 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IKV6H-0004R6-8B for info-gnus-english@gnu.org; Mon, 13 Aug 2007 10:16:33 +0200 Original-Received: from dslb-084-063-021-197.pools.arcor-ip.net ([84.63.21.197]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 13 Aug 2007 10:16:33 +0200 Original-Received: from tassilo by dslb-084-063-021-197.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 13 Aug 2007 10:16:33 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 77 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: dslb-084-063-021-197.pools.arcor-ip.net Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEUSEQ9eW1Dkxz/6+fjQ w52JeEi7Imd/AAAACXBIWXMAAAsSAAALEgHS3X78AAAATnRFWHRSYXcgcHJvZmlsZSB0eXBlIGV4 aWYACmV4aWYKICAgICAgMjAKNDU3ODY5NjYwMDAwNGQ0ZDAwMmEwMDAwMDAwODAwMDAwMDAwMDAw MAqJuBZbAAAACXZwQWcAAAAwAAAAMADO7oxXAAABk0lEQVQ4y32TS3KDMAxAxQB7uyEHiGvvoSh7 sMSeJnD/q9Q/DBmYamNZz/oioM8ySkn7DbL2bHiUV+CODTflGXTSC5xBWwRAJzBAkPIEhLMWANUZ 3ETRt1CcAbcVdhdgmMZq5CsPsS6iufJ4EY7rFVg0WwNwblA5+Q/QCbADtLeewUxKcT/n1g8x0UVp c5Lt7Op4ANw+wfwOB+YxJoA5wlZXMnSwT788gmEbhUtSHMFWPuEnwK0WD6IOKUDISIckkFYk+KWl qHYgUvGIOKYkEeQJEQ5H0EETrERIbWoxgTLmQCLvsQNRhpqQELvmF3Kop17Ce+yJf6WsM7D8CMNF 7pcZoN5C4cLWlUXsiHY5bAKsmXn2c2BCPYkGI0BtHTGFrxX5RUz8jkBZ1tqKt8vOrC1bNgk4M6v5 5jyYvzQrtjqCICN7+8hWaaXNAahvwn66R92QA88ENCPPCSze4ycBI6WQdVBXOoYy/ndeN3tocH35 68MDH8os26zQGHd/+XcYE+xbMpk1LuC0mo9NdANOX10n5Q8J6syYNMm6EgAAABp6VFh0anBlZzpj b2xvcnNwYWNlAAB42jMCAAAzADOJOCM1AAAAJnpUWHRqcGVnOnNhbXBsaW5nLWZhY3RvcgAAeNoz qjDSMawwBGEAEYMC6T2XL08AAAAASUVORK5CYII= User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) Cancel-Lock: sha1:/9lTj1DVxkkz+cImTWng4T8JeeU= X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 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: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:9506 Archived-At: आशीष शुक्ल Ashish Shukla writes: Hi, > Can someone post here an example of "gnus-posting-styles" with also an > example to show that "gnus-posting-styles" really work. Sure, here're mine. --8<---------------cut here---------------start------------->8--- (setq gnus-posting-styles `((".*" (address "thorn+news@fastmail.fm") ("Face" (lambda () (let ((file (th-random-file "~/.faces" "\\.jpg"))) (message "Chose %s as Face file." file) (gnus-face-from-file file)))) (signature (fortune-to-signature (replace-regexp-in-string "\\.dat$" "" (th-random-file fortune-dir))))) (,(rx "infko.") (address "heimdall@uni-koblenz.de")) (,(rx (or (and (opt "de.") (or "comp." "comm.software.")) "gnu." "nntp+Gmane:")) (address "tassilo@member.fsf.org")) (,(rx "gmane.comp.printing.ghostscript.") ;; Posting requires whitelist keyword "artifex" spelled backwards. ("X-Fnord" "xefitra")) ("de.alt.music.metal" (signature (th-now-playing))) (,(rx "nnimap+Fastmail:INBOX") (address "thorn@fastmail.fm")) (,(rx "nnimap+Fastmail:INBOX.news") (address "thorn+news@fastmail.fm")) (,(rx "nnimap+Fastmail:INBOX.FSF") (address "tassilo@member.fsf.org")) (,(rx "nnimap+Fastmail:INBOX.mailinglists." (or "emms-patches" "stumpwm-devel" "bbdb-info" "sbcl-devel" "openchrome")) (address "tassilo@member.fsf.org")) (,(rx"nnimap+Fastmail:INBOX.mailinglists." (or "d-barf" "tsdh-fans" "dtofans")) (address "thorn@fastmail.fm")) (,(rx "nnimap+Fastmail:INBOX.uni") (address "heimdall@uni-koblenz.de")))) --8<---------------cut here---------------end--------------->8--- > I press 'm' key to compose email messages in Gnus, where "To" field is > empty and all other stuff filled in properly. So what I'm interested > in knowing is when does "gnus-posting-styles" gets activated, after I > press "Send" button, or before I press "m" key. None of both. They are used after you press `m' to initialize the mail or posting buffer. Bye, Tassilo -- GNU Emacs is a text editor for Über-Geeks.