* gnus-posting-styles confusing @ 2007-08-13 7:15 आशीष शुक्ल Ashish Shukla 2007-08-13 8:16 ` Tassilo Horn ` (2 more replies) 0 siblings, 3 replies; 17+ messages in thread From: आशीष शुक्ल Ashish Shukla @ 2007-08-13 7:15 UTC (permalink / raw) To: info-gnus-english Hi, I'm using Gnus v5.11 on GNU Emacs 22.1.1 (Fedora 7). I'm quite confused regarding the use of "gnus-posting-styles". Can someone post here an example of "gnus-posting-styles" with also an example to show that "gnus-posting-styles" really work. 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. Thanks in advance, Ashish Shukla -- http://wahjava.wordpress.com/ ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: gnus-posting-styles confusing 2007-08-13 7:15 gnus-posting-styles confusing आशीष शुक्ल Ashish Shukla @ 2007-08-13 8:16 ` Tassilo Horn [not found] ` <mailman.4713.1186993009.32220.info-gnus-english@gnu.org> 2007-08-13 10:49 ` Slackrat 2 siblings, 0 replies; 17+ messages in thread From: Tassilo Horn @ 2007-08-13 8:16 UTC (permalink / raw) To: info-gnus-english आशीष शुक्ल Ashish Shukla <wahjava@gmail.com> 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. ^ permalink raw reply [flat|nested] 17+ messages in thread
[parent not found: <mailman.4713.1186993009.32220.info-gnus-english@gnu.org>]
* Re: gnus-posting-styles confusing [not found] ` <mailman.4713.1186993009.32220.info-gnus-english@gnu.org> @ 2007-08-13 9:40 ` Hadron 2007-08-13 11:59 ` आशीष शुक्ल Ashish Shukla 1 sibling, 0 replies; 17+ messages in thread From: Hadron @ 2007-08-13 9:40 UTC (permalink / raw) To: info-gnus-english Tassilo Horn <tassilo@member.fsf.org> writes: > > Sure, here're mine. > > (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")) > *snip* > > (,(rx "nnimap+Fastmail:INBOX.uni") > (address "heimdall@uni-koblenz.de")))) > Here's an extract from mine which will give you some more ideas, ( ,(rx(or "linux" "emacs" "programming" "sport" "embedded" "physics")) ;; (x-face-file "~/.xfaces/hadron.xface") (face (gnus-face-from-file "~/.xfaces/penguin.jpg")) ;; (face (gnus-face-from-file "~/.xfaces/quark.jpg")) (organization "http://en.wikipedia.org/wiki/Quark") (eval (setq pgg-gpg-user-id "5C******")) (eval(setq gnushush-user-agent-header (quote real))) (signature-file "~/.sigs/hadron") ) ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: gnus-posting-styles confusing [not found] ` <mailman.4713.1186993009.32220.info-gnus-english@gnu.org> 2007-08-13 9:40 ` Hadron @ 2007-08-13 11:59 ` आशीष शुक्ल Ashish Shukla 2007-08-13 13:09 ` Tassilo Horn [not found] ` <mailman.4721.1187010625.32220.info-gnus-english@gnu.org> 1 sibling, 2 replies; 17+ messages in thread From: आशीष शुक्ल Ashish Shukla @ 2007-08-13 11:59 UTC (permalink / raw) To: info-gnus-english Tassilo Horn \/\/|20+3: > आशीष शुक्ल Ashish Shukla <wahjava@gmail.com> 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. Thanks to all for the replies. When I press "m" in "*Group*" buffer in Gnus, a buffer comes with following text already filled in -- begin buffer -- To: Subject: From: wahjava@gmail.com (Ashish Shukla आशीष शुक्ल) Gcc: nnmaildir:sent-mail --text follows this line-- <#secure method=pgpmime mode=sign> -- end bufer -- Now, I've to fill the recipient's address in "To" field. So now tell me how comes is "gnus-posting-styles" thing gets invoked, when I've not filled in "To" field. Did you mean that it gets invoked after I fill "To" field, hmm.. ? or I've to add some more stuff in my ".gnus", hmm... ? If required I'll paste my ".gnus" here. And one more thing I don't have any NNTP subscription, so I don't use Gnus for reading any newsgroups. I use Gnus only for reading my mails. > > Bye, > Tassilo > -- > GNU Emacs is a text editor for Über-Geeks. Thanks Ashish Shukla -- http://wahjava.wordpress.com/ ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: gnus-posting-styles confusing 2007-08-13 11:59 ` आशीष शुक्ल Ashish Shukla @ 2007-08-13 13:09 ` Tassilo Horn [not found] ` <mailman.4721.1187010625.32220.info-gnus-english@gnu.org> 1 sibling, 0 replies; 17+ messages in thread From: Tassilo Horn @ 2007-08-13 13:09 UTC (permalink / raw) To: info-gnus-english आशीष शुक्ल Ashish Shukla <wahjava@gmail.com> writes: Hi, >> None of both. They are used after you press `m' to initialize the >> mail or posting buffer. [...] > When I press "m" in "*Group*" buffer in Gnus, a buffer comes with > following text already filled in > > -- begin buffer -- > To: > Subject: > From: wahjava@gmail.com (Ashish Shukla आशीष शुक्ल) > Gcc: nnmaildir:sent-mail > --text follows this line-- > <#secure method=pgpmime mode=sign> > -- end bufer -- > > Now, I've to fill the recipient's address in "To" field. So now tell > me how comes is "gnus-posting-styles" thing gets invoked, when I've > not filled in "To" field. Did you mean that it gets invoked after I > fill "To" field, hmm.. ? No. > or I've to add some more stuff in my ".gnus", hmm... ? If required > I'll paste my ".gnus" here. I don't understand what you want to do with posting styles. You normally use them to initialize the mail or posting buffer based on the group you are in. What do you want to achieve? Bye, Tassilo -- The desire to be rewarded for one's creativity does not justify depriving the world in general of all or part of that creativity. (Richard M. Stallman) ^ permalink raw reply [flat|nested] 17+ messages in thread
[parent not found: <mailman.4721.1187010625.32220.info-gnus-english@gnu.org>]
* Re: gnus-posting-styles confusing [not found] ` <mailman.4721.1187010625.32220.info-gnus-english@gnu.org> @ 2007-08-13 13:41 ` आशीष शुक्ल Ashish Shukla 2007-08-13 15:16 ` Exal de Jesus Garcia Carrillo ` (3 more replies) 0 siblings, 4 replies; 17+ messages in thread From: आशीष शुक्ल Ashish Shukla @ 2007-08-13 13:41 UTC (permalink / raw) To: info-gnus-english Tassilo Horn \/\/|20+3: [...] > > I don't understand what you want to do with posting styles. You > normally use them to initialize the mail or posting buffer based on the > group you are in. What do you want to achieve? I've 2 mail addresses, one I use for mailing lists, and other I use for rest of the communications. So if I'm sending mail to a mailing list, it should go from my email address ("mailing list" one), otherwise it will go from my default email address. So, is this possible using "gnus-posting-styles" ? > > Bye, > Tassilo > -- > The desire to be rewarded for one's creativity does not justify > depriving the world in general of all or part of that creativity. > (Richard M. Stallman) Thanks Ashish Shukla -- http://wahjava.wordpress.com/ ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: gnus-posting-styles confusing 2007-08-13 13:41 ` आशीष शुक्ल Ashish Shukla @ 2007-08-13 15:16 ` Exal de Jesus Garcia Carrillo 2007-08-13 15:58 ` Sivaram Neelakantan ` (2 subsequent siblings) 3 siblings, 0 replies; 17+ messages in thread From: Exal de Jesus Garcia Carrillo @ 2007-08-13 15:16 UTC (permalink / raw) To: info-gnus-english -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 आशीष शुक्ल Ashish Shukla <wahjava@gmail.com> em gnu.emacs.gnus escreveu : > I've 2 mail addresses, one I use for mailing lists, and other I use > for rest of the communications. So if I'm sending mail to a mailing > list, it should go from my email address ("mailing list" one), > otherwise it will go from my default email address. So, is this > possible using "gnus-posting-styles" ? Hey Ashish, what I use for this is: (setq gnus-posting-styles `((".*" (name user-full-name) (address "exal@gmx.de") (organization "The GNU Emacs Church") ("X-Accept-Language" "es, en, pt") ("X-GPG" "0x5251B462") ("X-GPG-FINGERPRINT" "B17A 8AD9 8B64 DC6C 7F92 BBF7 A199 B1A1 5251 B462") ("X-Home-Page" "http://exal.nipl.net") ("User-Agent" exal-gnus-version) (x-face-file "~/emacs-stuff/xface")) (,(rx "nnmbox:mail.gnu") (address "exal@gnu.org") (organization "GNU Project") ("Reply-To" "Exal de Jesus Garcia Carrillo <exal@gnu.org>") (signature-file "~/emacs-stuff/signature-gnu")))) Note that I also have two mail accounts, if I'm replying in mail.gnu, reply with exal@gnu.org On the same way you can specify whatever you want, for example, your mailing list, an hypotetic example: (,(rx "nnmbox.mailing.list.foo") (addres "foo@bar.com") (.........)) I hope that this help. regards. - -- Spam protection: In my e-mail remplace the words `no-spam' with `exal'. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Processed by Mailcrypt 3.5.8+ <http://mailcrypt.sourceforge.net/> iD8DBQFGwHXCoZmxoVJRtGIRAuFAAJ9EVnzfhEE9m+HutV1n0ZZfo3uycQCfW/p9 NvooGczrCKN9lDwuwSB4Smk= =W6zS -----END PGP SIGNATURE----- ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: gnus-posting-styles confusing 2007-08-13 13:41 ` आशीष शुक्ल Ashish Shukla 2007-08-13 15:16 ` Exal de Jesus Garcia Carrillo @ 2007-08-13 15:58 ` Sivaram Neelakantan 2007-08-13 17:21 ` Tassilo Horn [not found] ` <mailman.4732.1187025727.32220.info-gnus-english@gnu.org> 3 siblings, 0 replies; 17+ messages in thread From: Sivaram Neelakantan @ 2007-08-13 15:58 UTC (permalink / raw) To: info-gnus-english आशीष शुक्ल Ashish Shukla <wahjava@gmail.com> writes: [...] > I've 2 mail addresses, one I use for mailing lists, and other I use > for rest of the communications. So if I'm sending mail to a mailing > list, it should go from my email address ("mailing list" one), > otherwise it will go from my default email address. So, is this > possible using "gnus-posting-styles" ? > [...] I have done something similar, please see http://www.emacswiki.org/cgi-bin/wiki/GnusMSMTP Just replace the newsgroup match regex with something of your specific mail folder or user name matches. Did that help? sivaram -- ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: gnus-posting-styles confusing 2007-08-13 13:41 ` आशीष शुक्ल Ashish Shukla 2007-08-13 15:16 ` Exal de Jesus Garcia Carrillo 2007-08-13 15:58 ` Sivaram Neelakantan @ 2007-08-13 17:21 ` Tassilo Horn [not found] ` <mailman.4732.1187025727.32220.info-gnus-english@gnu.org> 3 siblings, 0 replies; 17+ messages in thread From: Tassilo Horn @ 2007-08-13 17:21 UTC (permalink / raw) To: info-gnus-english आशीष शुक्ल Ashish Shukla <wahjava@gmail.com> writes: Hi, > I've 2 mail addresses, one I use for mailing lists, and other I use > for rest of the communications. So if I'm sending mail to a mailing > list, it should go from my email address ("mailing list" one), > otherwise it will go from my default email address. So, is this > possible using "gnus-posting-styles" ? Yes, that's exactly what they are for. Let's assume you have the following groups for the mailing lists: mail.lists.one mail.lists.two ... mail.lists.nine Then I'd suggest to use these posting styles. ,---- | (setq gnus-posting-styles | '(("." | (address "default@address.invalid")) | ("mail\\.lists\\." | (address "mailinglist@address.invalid")))) `---- Bye, Tassilo -- The desire to be rewarded for one's creativity does not justify depriving the world in general of all or part of that creativity. (Richard M. Stallman) ^ permalink raw reply [flat|nested] 17+ messages in thread
[parent not found: <mailman.4732.1187025727.32220.info-gnus-english@gnu.org>]
* Re: gnus-posting-styles confusing [not found] ` <mailman.4732.1187025727.32220.info-gnus-english@gnu.org> @ 2007-08-13 18:23 ` Adam Sjøgren 2007-08-14 17:34 ` आशीष शुक्ल Ashish Shukla 2007-08-14 15:49 ` आशीष शुक्ल Ashish Shukla 1 sibling, 1 reply; 17+ messages in thread From: Adam Sjøgren @ 2007-08-13 18:23 UTC (permalink / raw) To: info-gnus-english On Mon, 13 Aug 2007 19:21:40 +0200, Tassilo wrote: > ,---- > | (setq gnus-posting-styles > | '(("." > | (address "default@address.invalid")) > | ("mail\\.lists\\." > | (address "mailinglist@address.invalid")))) > `---- The only trick that Ashish Shukla then needs is to know is that if you want to write a _new_ message to a mailinglist, there are three (at least) ways to get the appropriate posting styles applied: * Enter the mailing list group, then press m * With point on the group in the Group buffer, press C-u m * Or, press C-u 1 m to get prompted for the group with which to get the matching posting-styles Best regards, Adam -- "Be?" Adam Sjøgren "Be. Be period. Is." asjo@koldfront.dk ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: gnus-posting-styles confusing 2007-08-13 18:23 ` Adam Sjøgren @ 2007-08-14 17:34 ` आशीष शुक्ल Ashish Shukla 0 siblings, 0 replies; 17+ messages in thread From: आशीष शुक्ल Ashish Shukla @ 2007-08-14 17:34 UTC (permalink / raw) To: info-gnus-english Adam Sjøgren \/\/|20+3: > On Mon, 13 Aug 2007 19:21:40 +0200, Tassilo wrote: > > > ,---- > > | (setq gnus-posting-styles > > | '(("." > > | (address "default@address.invalid")) > > | ("mail\\.lists\\." > > | (address "mailinglist@address.invalid")))) > > `---- > > The only trick that Ashish Shukla then needs is to know is that if you > want to write a _new_ message to a mailinglist, there are three (at > least) ways to get the appropriate posting styles applied: > > * Enter the mailing list group, then press m > > * With point on the group in the Group buffer, press C-u m > > * Or, press C-u 1 m to get prompted for the group with which to get the > matching posting-styles Thanks for these keystrokes. I'm able to get "gnus-posting-styles" working on my box. > > > Best regards, > > Adam > > -- > "Be?" Adam Sjøgren > "Be. Be period. Is." asjo@koldfront.dk Ashish Shukla -- http://wahjava.wordpress.com/ ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: gnus-posting-styles confusing [not found] ` <mailman.4732.1187025727.32220.info-gnus-english@gnu.org> 2007-08-13 18:23 ` Adam Sjøgren @ 2007-08-14 15:49 ` आशीष शुक्ल Ashish Shukla 2007-08-14 17:11 ` Tassilo Horn [not found] ` <mailman.4773.1187111514.32220.info-gnus-english@gnu.org> 1 sibling, 2 replies; 17+ messages in thread From: आशीष शुक्ल Ashish Shukla @ 2007-08-14 15:49 UTC (permalink / raw) To: info-gnus-english Tassilo Horn \/\/|20+3: > आशीष शुक्ल Ashish Shukla <wahjava@gmail.com> writes: > > Hi, Hi, First of all apologies for late reply. > > > I've 2 mail addresses, one I use for mailing lists, and other I use > > for rest of the communications. So if I'm sending mail to a mailing > > list, it should go from my email address ("mailing list" one), > > otherwise it will go from my default email address. So, is this > > possible using "gnus-posting-styles" ? > > Yes, that's exactly what they are for. Let's assume you have the > following groups for the mailing lists: > > mail.lists.one > mail.lists.two > ... > mail.lists.nine How're those groups created ? Are you using group mail splitting ? Hmm.. Anyways, following is my .gnus. -- begin .gnus -- (defun its-gnu() 't) (defun my-gnus-user-agent() "My custom User-Agent field" (concat (format "Gnus/%s (Oort %s) " (gnus-continuum-version (gnus-version)) gnus-version-number) (cond ((its-gnu) (format "Emacs/%s " emacs-version)) (t (format "XEmacs/%s " emacs-program-version))) (cond ((eq window-system 'gtk)' "(GTK)") (t (format "(%s)" system-configuration))))) (require 'cl) (defun match-from-list(list value) "Returns the index of value in the list" (let ((n 0)) (dolist (var list -1) (if (string-equal (format "%s" value) (format "%s" var)) (return n) (setq n (+ n 1))) ))) (setq mail-yank-prefix "| ") (setq user-full-name "Ashish Shukla आशीष शुक्ल") (setq user-mail-address "wahjava@remove.it.human.gmail.com") (setq gnus-visible-headers (concat "^\\(From:\\|Subject:\\|Date:\\|Followup-To:\\|X-Newsreader: \\|To:\\|" "User-Agent:\\|X-Mailer:\\|Organization:\\|Newsgroups:\\)")) ;;; only default posting style for now (setq gnus-posting-styles '( (".*" ("From" "wahjava@remove.it.human.gmail.com (Ashish Shukla आशीष शुक्ल)") ("Organization" "/\\/0/\\/3") ("X-PGP" "762E5E74") ("PGP" "762E5E74") ("X-PGP-FP" "1E00 4679 77E4 F8EE 2E4B 56F2 1F2F 8410 762E 5E74") ("X-Attribution" "आशीष") ("X-Mailer" (my-gnus-user-agent)) (signature-file "~/.signature")) )) (setq gnus-message-archive-group "nnmaildir:sent-mail") (setq message-default-headers (with-temp-buffer (insert "X-Face: ") (insert-file-contents "~/.xface") (buffer-string))) (setq message-required-mail-headers (nconc message-required-mail-headers (list '(Face . (lambda () (gnus-convert-png-to-face "~/Pictures/ face.png")))))) (setq mail-sources '((maildir :path "~/Maildir/"))) (setq gnus-select-method '(nnnil)) (setq gnus-secondary-select-methods '((nnmaildir "" (directory "~/mail") (get-new-mail t)))) (setq nnmail-split-methods '(("sent-mail" "^From:.*wahjava\\(?:.ml\\)? @remove[.]it[.]human[.]gmail[.]com") ("lists" "^List-Id: ") ("inbox" ""))) (require 'pgg) (autoload 'pgg-encrypt-region "pgg" "Encrypt the current region." t) (autoload 'pgg-encrypt-symmetric-region "pgg" "Encrypt the current region with symmetric algorithm." t) (autoload 'pgg-decrypt-region "pgg" "Decrypt the current region." t) (autoload 'pgg-sign-region "pgg" "Sign the current region." t) (autoload 'pgg-verify-region "pgg" "Verify the current region." t) (autoload 'pgg-insert-key "pgg" "Insert the ASCII armored public key." t) (autoload 'pgg-snarf-keys-region "pgg" "Import the public keys in the current region." t) ;; verify/decrypt only if mml knows about the protocol used (setq mm-verify-option 'known) (setq mm-decrypt-option 'known) ;; Here we make button for the multipart (setq gnus-buttonized-mime-types '("multipart/encrypted" "multipart/ signed")) ;; Tells Gnus to inline the part (eval-after-load "mm-decode" '(add-to-list 'mm-inlined-types "application/pgp$")) ;; Tell Gnus how to display the part when it is requested (eval-after-load "mm-decode" '(add-to-list 'mm-inline-media-tests '("application/pgp$" mm-inline-text identity))) ;; Tell Gnus not to wait for a request, just display the thing ;; straight away. (eval-after-load "mm-decode" '(add-to-list 'mm-automatic-display "application/pgp$")) ;; But don't display the signatures please. (eval-after-load "mm-decode" (quote (setq mm-automatic-display (remove "application/pgp- signature" mm-automatic-display)))) ;; auto-sign all outgoing messages (add-hook 'gnus-message-setup-hook 'mml-secure-message-sign-pgpmime) (require 'supercite) (setq sc-preferred-header-style (match-from-list sc-rewrite-header- list '(sc-header-verbose))) (setq message-cite-function 'sc-cite-original) (setq sc-citation-leader "") (setq sc-citation-delimiter "|") (setq sc-nested-citation-p t) (setq sc-electric-references-p t) (setq sc-reference-tag-string ",--- ") (setq sc-fixup-whitespace-p t) (setq sc-blank-lines-after-headers nil) (setq sc-cite-blank-lines-p nil) (setq sc-auto-fill-region-p nil) ; display smilies (setq gnus-treat-display-smileys t) '(toolbar-news-reader (quote gnus)) '(toolbar-mail-reader (quote vm)) '(mail-user-agent (quote my-gnus-user-agent)) '(message-send-mail-function quote 'message-send-mail-with-sendmail) '(message-fromh-style (quote parens)) '(mail-from-style (quote parens)) '(mail-specify-envelope-from t) '(sc-preferred-attribution-list (quote ("sc-lastchoice" "x- attribution" "firstname" "initials" "lastname"))) ;;; Local Variables: ;;; mode: emacs-lisp ;;; tab-width: 4 ;;; End: ;;; vim:filetype=lisp -- end .gnus -- I just started using Gnus 3-4 week back. I share my "maildir" style mailbox with 2 other MUA's also namely, mutt, and Kmail. And following is what I do in mutt to make sure all my mails to mailing lists go from my mailing list address and should save in "lists" maildir. -- begin excerpt -- lists freebsd-questions@freebsd.org subscribe freebsd-questions@freebsd.org lists questions@freebsd.org subscribe questions@freebsd.org save-hook '~l' +lists send-hook '~l' 'my_hdr from: आशीष शुक्ल Ashish Shukla <wahjava.ml@remove.it.human.gmail.com>' -- end excerpt -- > > Then I'd suggest to use these posting styles. > > ,---- > | (setq gnus-posting-styles > | '(("." > | (address "default@address.invalid")) > | ("mail\\.lists\\." > | (address "mailinglist@address.invalid")))) > `----] So please now tell me what to do, to have my mails to mailing list should have "From" field set to correct address. > > Bye, > Tassilo > -- > The desire to be rewarded for one's creativity does not justify > depriving the world in general of all or part of that creativity. > (Richard M. Stallman) Thanks to all for replying, Ashish Shukla -- http://wahjava.wordpress.com/ ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: gnus-posting-styles confusing 2007-08-14 15:49 ` आशीष शुक्ल Ashish Shukla @ 2007-08-14 17:11 ` Tassilo Horn [not found] ` <mailman.4773.1187111514.32220.info-gnus-english@gnu.org> 1 sibling, 0 replies; 17+ messages in thread From: Tassilo Horn @ 2007-08-14 17:11 UTC (permalink / raw) To: info-gnus-english आशीष शुक्ल Ashish Shukla <wahjava@gmail.com> writes: Hi Ashish, >> Yes, that's exactly what they are for. Let's assume you have the >> following groups for the mailing lists: >> >> mail.lists.one >> mail.lists.two >> ... >> mail.lists.nine > > How're those groups created ? Are you using group mail splitting ? That was only an example. I use IMAP and split on the server side with Sieve. > Anyways, following is my .gnus. > > -- begin .gnus -- [...] > (setq nnmail-split-methods > '(("sent-mail" "^From:.*wahjava\\(?:.ml\\)? > @remove[.]it[.]human[.]gmail[.]com") > ("lists" "^List-Id: ") > ("inbox" ""))) Ok, so all your list mails go into lists. So these posting styles should work. --8<---------------cut here---------------start------------->8--- (setq gnus-posting-styles '((".*" (address "wahjava@remove.it.human.gmail.com (Ashish Shukla आशीषशुक्ल)") (organization "/\\/0/\\/3") ("X-PGP" "762E5E74") ("PGP" "762E5E74") ("X-PGP-FP" "1E00 4679 77E4 F8EE 2E4B 56F2 1F2F 8410 762E 5E74") ("X-Attribution" "आशीष") ("X-Mailer" (my-gnus-user-agent)) (signature-file "~/.signature")) ("lists" (address "my@list-address.invalid")))) --8<---------------cut here---------------end--------------->8--- Bye, Tassilo ^ permalink raw reply [flat|nested] 17+ messages in thread
[parent not found: <mailman.4773.1187111514.32220.info-gnus-english@gnu.org>]
* Re: gnus-posting-styles confusing [not found] ` <mailman.4773.1187111514.32220.info-gnus-english@gnu.org> @ 2007-08-14 17:35 ` आशीष शुक्ल Ashish Shukla 0 siblings, 0 replies; 17+ messages in thread From: आशीष शुक्ल Ashish Shukla @ 2007-08-14 17:35 UTC (permalink / raw) To: info-gnus-english Tassilo Horn \/\/|20+3: > आशीष शुक्ल Ashish Shukla <wahjava@gmail.com> writes: > > Hi Ashish, > > >> Yes, that's exactly what they are for. Let's assume you have the > >> following groups for the mailing lists: > >> > >> mail.lists.one > >> mail.lists.two > >> ... > >> mail.lists.nine > > > > How're those groups created ? Are you using group mail splitting ? > > That was only an example. I use IMAP and split on the server side with > Sieve. > > > Anyways, following is my .gnus. > > > > -- begin .gnus -- > > [...] > > > (setq nnmail-split-methods > > '(("sent-mail" "^From:.*wahjava\\(?:.ml\\)? > > @remove[.]it[.]human[.]gmail[.]com") > > ("lists" "^List-Id: ") > > ("inbox" ""))) > > Ok, so all your list mails go into lists. > > So these posting styles should work. > > --8<---------------cut here---------------start------------->8--- > (setq gnus-posting-styles > '((".*" > (address "wahjava@remove.it.human.gmail.com (Ashish Shukla आशीषशुक्ल)") > (organization "/\\/0/\\/3") > ("X-PGP" "762E5E74") > ("PGP" "762E5E74") > ("X-PGP-FP" "1E00 4679 77E4 F8EE 2E4B 56F2 1F2F 8410 762E 5E74") > ("X-Attribution" "आशीष") > ("X-Mailer" (my-gnus-user-agent)) > (signature-file "~/.signature")) > ("lists" > (address "my@list-address.invalid")))) > --8<---------------cut here---------------end--------------->8--- Thanks for this snippet, I'm able to get "gnus-posting-styles" working on my box :) > > Bye, > Tassilo Ashish Shukla -- http://wahjava.wordpress.com/ ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: gnus-posting-styles confusing 2007-08-13 7:15 gnus-posting-styles confusing आशीष शुक्ल Ashish Shukla 2007-08-13 8:16 ` Tassilo Horn [not found] ` <mailman.4713.1186993009.32220.info-gnus-english@gnu.org> @ 2007-08-13 10:49 ` Slackrat 2007-08-13 12:02 ` आशीष शुक्ल Ashish Shukla 2 siblings, 1 reply; 17+ messages in thread From: Slackrat @ 2007-08-13 10:49 UTC (permalink / raw) To: info-gnus-english आशीष शुक्ल Ashish Shukla <wahjava@gmail.com> writes: > Hi, > > I'm using Gnus v5.11 on GNU Emacs 22.1.1 (Fedora 7). I'm quite > confused regarding the use of "gnus-posting-styles". Can someone post > here an example of "gnus-posting-styles" with also an example to show > that "gnus-posting-styles" really work. 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. > ...and here's mine - Linux Slack 11 with Gnus 5.11 on Emacs 22.1 I can assure you that it works ;; ################## ;; POSTING HEADERS ## ;; ################## ;; ;; Set some default email and news headers (setq message-default-mail-headers "Fcc: ~/Mail/outbox") (setq message-default-news-headers "Fcc: ~/News/sent.news.archive") (setq message-required-mail-headers (nconc message-required-mail-headers (list '(Face . (lambda () (gnus-face-from-file "~/.signature/facesmtp.jpg")))))) (setq message-required-news-headers (nconc message-required-news-headers (list '(Face . (lambda () (gnus-face-from-file "~/.signature/facenntp.jpg")))))) (setq gnus-posting-styles '((".*" (name mail-user-name) ("X-Guarantee" "This email is certified to have been free of UCE and any other Malicious, Harmful or Annoying Content when originally sent by <user>@azurservers.com - Azurservers post SPF records and do not condone SPAM type emails") (signature-file "~/.signature/bill") ("X-Homepage" "http://azurservers.com") ("X-Operating-System" "Slackware GNU/Linux") ("X-Azurservers-AuthNo" "Registered as AZSV bghkd8332277") (organization "Not very much!")) ;; USENET ;;======= ("rec*" (signature-file "~/.signature/davey") (name "Davey Crockett") (address "dav4Qeycrockett@azurservers.com") ("Fcc" "~/Mail/sent-rec") ) ("gnu.emacs*" (signature-file "~/.signature/slackrat") (name "Slackrat") (address "s4Qlackrat@azurservers.com") ("Fcc" "~/Mail/sent-gnu")) ;; MAILING LISTS ;;============== ("tlug" ("To" "tlug@ss.org") (signature-file "~/.signature/slackrat") (name "SlackRat") (address "slackrat4Q@azurservers.com") ("Fcc" "~/Mail/sent-tlug") ) ("xitami" ("To" "Xitami Users General Discussion <xitami@lists.xitami.org>") (signature-file "~/.signature/slackrat") (name "SlackRat") (address "slackrat4Q@azurservers.com") ("Fcc" "~/Mail/sent-xitami") ) ;; INDIVIDUALS ;;============ ("sublet-nicola" ("To" "Nicola Nunu <bought@hotmail.it>") (signature-file "~/.signature/bill") (name "William E.Henderson") (address "billhenderson@azurservers.com") ("Fcc" "~/Mail/sent-sublet-nicola") ("Bcc" "inconnu@azurservers.com") ) ("tanya" ("To" "Tanya Kim Henderson <tanyah@ualberta.ca>") (signature-file "~/.signature/dad") (name "Bill Henderson") (address "billhenderson@azurservers.com") ("Fcc" "~/Mail/sent-tanya") ("Bcc" "inconnu@azurservers.com") ) ("gaukroger" ("To" "Kath et John <john.gaukroger@virgin.net>") (signature-file "~/.signature/bill") (name "Bill Henderson") (address "billhenderson@azurservers.com") ("Fcc" "~/Mail/sent-gaukroger") ("Bcc" "inconnu@azurservers.com") ) )) -- SlackRat - No 4Q to Reply - WARNING: It is dangerous to your Health to be Right when the Government is Wrong ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: gnus-posting-styles confusing 2007-08-13 10:49 ` Slackrat @ 2007-08-13 12:02 ` आशीष शुक्ल Ashish Shukla 2007-08-13 12:27 ` Slackrat 0 siblings, 1 reply; 17+ messages in thread From: आशीष शुक्ल Ashish Shukla @ 2007-08-13 12:02 UTC (permalink / raw) To: info-gnus-english Slackrat \/\/|20+3: > आशीष शुक्ल Ashish Shukla <wahjava@gmail.com> writes: > > > Hi, > > > > I'm using Gnus v5.11 on GNU Emacs 22.1.1 (Fedora 7). I'm quite > > confused regarding the use of "gnus-posting-styles". Can someone post > > here an example of "gnus-posting-styles" with also an example to show > > that "gnus-posting-styles" really work. 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. > > > > ...and here's mine - Linux Slack 11 with Gnus 5.11 on Emacs 22.1 > > > I can assure you that it works > > > ;; ################## > ;; POSTING HEADERS ## > ;; ################## > ;; > > ;; Set some default email and news headers > (setq message-default-mail-headers > "Fcc: ~/Mail/outbox") > > (setq message-default-news-headers > "Fcc: ~/News/sent.news.archive") > > (setq message-required-mail-headers > (nconc message-required-mail-headers > (list '(Face . (lambda () > (gnus-face-from-file "~/.signature/facesmtp.jpg")))))) > > (setq message-required-news-headers > (nconc message-required-news-headers > (list '(Face . (lambda () > (gnus-face-from-file "~/.signature/facenntp.jpg")))))) > > (setq gnus-posting-styles > '((".*" > (name mail-user-name) > ("X-Guarantee" "This email is certified to have been free > of UCE and any other Malicious, Harmful or > Annoying Content when originally sent by > <user>@azurservers.com - Azurservers post > SPF records and do not condone SPAM type > emails") > (signature-file "~/.signature/bill") > ("X-Homepage" "http://azurservers.com") > ("X-Operating-System" "Slackware GNU/Linux") > ("X-Azurservers-AuthNo" "Registered as AZSV bghkd8332277") > (organization "Not very much!")) > > ;; USENET > ;;======= > > ("rec*" > (signature-file "~/.signature/davey") > (name "Davey Crockett") > (address "dav4Qeycrockett@azurservers.com") > ("Fcc" "~/Mail/sent-rec") > ) > > ("gnu.emacs*" > (signature-file "~/.signature/slackrat") > (name "Slackrat") > (address "s4Qlackrat@azurservers.com") > ("Fcc" "~/Mail/sent-gnu")) > > ;; MAILING LISTS > ;;============== > ("tlug" > ("To" "tlug@ss.org") > (signature-file "~/.signature/slackrat") > (name "SlackRat") > (address "slackrat4Q@azurservers.com") > ("Fcc" "~/Mail/sent-tlug") > ) > > ("xitami" > ("To" "Xitami Users General Discussion <xitami@lists.xitami.org>") > (signature-file "~/.signature/slackrat") > (name "SlackRat") > (address "slackrat4Q@azurservers.com") > ("Fcc" "~/Mail/sent-xitami") > ) > > ;; INDIVIDUALS > ;;============ > > ("sublet-nicola" > ("To" "Nicola Nunu <bought@hotmail.it>") > (signature-file "~/.signature/bill") > (name "William E.Henderson") > (address "billhenderson@azurservers.com") > ("Fcc" "~/Mail/sent-sublet-nicola") > ("Bcc" "inconnu@azurservers.com") > ) > > ("tanya" > ("To" "Tanya Kim Henderson <tanyah@ualberta.ca>") > (signature-file "~/.signature/dad") > (name "Bill Henderson") > (address "billhenderson@azurservers.com") > ("Fcc" "~/Mail/sent-tanya") > ("Bcc" "inconnu@azurservers.com") > ) > > ("gaukroger" > ("To" "Kath et John <john.gaukroger@virgin.net>") > (signature-file "~/.signature/bill") > (name "Bill Henderson") > (address "billhenderson@azurservers.com") > ("Fcc" "~/Mail/sent-gaukroger") > ("Bcc" "inconnu@azurservers.com") > ) > )) Thanks for the reply. I've already seen your ".gnus" when searching for "gnus-posting-styles" in Google Groups. What I am expecting is what keystrokes do you press to activate the "gnus-posting-styles". It will be great if you post a sample conversation. > > > -- > SlackRat - No 4Q to Reply > - > WARNING: > It is dangerous to your Health to be Right when the Government is > Wrong Thanks Ashish Shukla -- http://wahjava.wordpress.com/ ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: gnus-posting-styles confusing 2007-08-13 12:02 ` आशीष शुक्ल Ashish Shukla @ 2007-08-13 12:27 ` Slackrat 0 siblings, 0 replies; 17+ messages in thread From: Slackrat @ 2007-08-13 12:27 UTC (permalink / raw) To: info-gnus-english आशीष शुक्ल Ashish Shukla <wahjava@gmail.com> writes: > Slackrat \/\/|20+3: >> ...and here's mine - Linux Slack 11 with Gnus 5.11 on Emacs 22.1 >> >> >> I can assure you that it works >> >> >> ;; ################## >> ;; POSTING HEADERS ## >> ;; ################## >> ;; >> >> ;; Set some default email and news headers >> (setq message-default-mail-headers >> "Fcc: ~/Mail/outbox") >> >> (setq message-default-news-headers >> "Fcc: ~/News/sent.news.archive") >> >> (setq message-required-mail-headers >> (nconc message-required-mail-headers >> (list '(Face . (lambda () >> (gnus-face-from-file "~/.signature/facesmtp.jpg")))))) >> >> (setq message-required-news-headers >> (nconc message-required-news-headers >> (list '(Face . (lambda () >> (gnus-face-from-file "~/.signature/facenntp.jpg")))))) >> >> (setq gnus-posting-styles >> '((".*" >> (name mail-user-name) >> ("X-Guarantee" "This email is certified to have been free >> of UCE and any other Malicious, Harmful or >> Annoying Content when originally sent by >> <user>@azurservers.com - Azurservers post >> SPF records and do not condone SPAM type >> emails") >> (signature-file "~/.signature/bill") >> ("X-Homepage" "http://azurservers.com") >> ("X-Operating-System" "Slackware GNU/Linux") >> ("X-Azurservers-AuthNo" "Registered as AZSV bghkd8332277") >> (organization "Not very much!")) >> >> ;; USENET >> ;;======= >> >> ("rec*" >> (signature-file "~/.signature/davey") >> (name "Davey Crockett") >> (address "dav4Qeycrockett@azurservers.com") >> ("Fcc" "~/Mail/sent-rec") >> ) >> >> ("gnu.emacs*" >> (signature-file "~/.signature/slackrat") >> (name "Slackrat") >> (address "s4Qlackrat@azurservers.com") >> ("Fcc" "~/Mail/sent-gnu")) >> >> ;; MAILING LISTS >> ;;============== >> ("tlug" >> ("To" "tlug@ss.org") >> (signature-file "~/.signature/slackrat") >> (name "SlackRat") >> (address "slackrat4Q@azurservers.com") >> ("Fcc" "~/Mail/sent-tlug") >> ) >> >> ("xitami" >> ("To" "Xitami Users General Discussion <xitami@lists.xitami.org>") >> (signature-file "~/.signature/slackrat") >> (name "SlackRat") >> (address "slackrat4Q@azurservers.com") >> ("Fcc" "~/Mail/sent-xitami") >> ) >> >> ;; INDIVIDUALS >> ;;============ >> >> ("sublet-nicola" >> ("To" "Nicola Nunu <bought@hotmail.it>") >> (signature-file "~/.signature/bill") >> (name "William E.Henderson") >> (address "billhenderson@azurservers.com") >> ("Fcc" "~/Mail/sent-sublet-nicola") >> ("Bcc" "inconnu@azurservers.com") >> ) >> >> ("tanya" >> ("To" "Tanya Kim Henderson <tanyah@ualberta.ca>") >> (signature-file "~/.signature/dad") >> (name "Bill Henderson") >> (address "billhenderson@azurservers.com") >> ("Fcc" "~/Mail/sent-tanya") >> ("Bcc" "inconnu@azurservers.com") >> ) >> >> ("gaukroger" >> ("To" "Kath et John <john.gaukroger@virgin.net>") >> (signature-file "~/.signature/bill") >> (name "Bill Henderson") >> (address "billhenderson@azurservers.com") >> ("Fcc" "~/Mail/sent-gaukroger") >> ("Bcc" "inconnu@azurservers.com") >> ) >> )) > > Thanks for the reply. I've already seen your ".gnus" when searching > for "gnus-posting-styles" in Google Groups. What I am expecting is > what keystrokes do you press to activate the "gnus-posting-styles". It > will be great if you post a sample conversation. I'm not 100 per cent sure what you want, but hopefully the following will be of some assistance to you: The above simply resides in your ".gnus" file in your home directory to enable you to set the headers correctly when you: (a) respond to an email or item in a newsgroup (b) initialize an email or article in a newsgroup Newsgroups and emails whilst almost identical are treated somewhat differently. To respond to an email or a newsgroup article, simply press 'f" to reply without quoting the original email, or "F" to respond with the text of the original email quoted in your reply. To initiate a new newsgroup item, press "a" - for Article To initiate a new email, press "m" - for Mail In either instance, if you are in the group buffer with the cursor positioned over a group for which special header rules apply, the headers will be completed automatically. If you invoke "m" or "a" when you are not in a group with special headers defined, the default or standard headers will be included but you will have to supply any missing ones manually. -- SlackRat - No 4Q to Reply - WARNING: It is dangerous to your Health to be Right when the Government is Wrong ^ permalink raw reply [flat|nested] 17+ messages in thread
end of thread, other threads:[~2007-08-14 17:35 UTC | newest] Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2007-08-13 7:15 gnus-posting-styles confusing आशीष शुक्ल Ashish Shukla 2007-08-13 8:16 ` Tassilo Horn [not found] ` <mailman.4713.1186993009.32220.info-gnus-english@gnu.org> 2007-08-13 9:40 ` Hadron 2007-08-13 11:59 ` आशीष शुक्ल Ashish Shukla 2007-08-13 13:09 ` Tassilo Horn [not found] ` <mailman.4721.1187010625.32220.info-gnus-english@gnu.org> 2007-08-13 13:41 ` आशीष शुक्ल Ashish Shukla 2007-08-13 15:16 ` Exal de Jesus Garcia Carrillo 2007-08-13 15:58 ` Sivaram Neelakantan 2007-08-13 17:21 ` Tassilo Horn [not found] ` <mailman.4732.1187025727.32220.info-gnus-english@gnu.org> 2007-08-13 18:23 ` Adam Sjøgren 2007-08-14 17:34 ` आशीष शुक्ल Ashish Shukla 2007-08-14 15:49 ` आशीष शुक्ल Ashish Shukla 2007-08-14 17:11 ` Tassilo Horn [not found] ` <mailman.4773.1187111514.32220.info-gnus-english@gnu.org> 2007-08-14 17:35 ` आशीष शुक्ल Ashish Shukla 2007-08-13 10:49 ` Slackrat 2007-08-13 12:02 ` आशीष शुक्ल Ashish Shukla 2007-08-13 12:27 ` Slackrat
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).