From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/9527 Path: news.gmane.org!not-for-mail From: =?utf-8?B?4KSG4KS24KWA4KS3IOCktuClgeCkleCljeCksiBBc2hpc2ggU2h1a2xh?= Newsgroups: gmane.emacs.gnus.user Subject: Re: gnus-posting-styles confusing Date: Tue, 14 Aug 2007 15:49:50 -0000 Organization: http://groups.google.com Message-ID: <1187106590.869679.58960@x40g2000prg.googlegroups.com> References: <1186989333.549695.14690@i38g2000prf.googlegroups.com> <1187006349.550081.97090@i13g2000prf.googlegroups.com> <1187012509.563409.38030@x40g2000prg.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1187109656 3207 80.91.229.12 (14 Aug 2007 16:40:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Aug 2007 16:40:56 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Tue Aug 14 18:40:54 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 1IKzRt-0006sS-1V for gegu-info-gnus-english@m.gmane.org; Tue, 14 Aug 2007 18:40:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IKzRs-0003W9-93 for gegu-info-gnus-english@m.gmane.org; Tue, 14 Aug 2007 12:40:52 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!x40g2000prg.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Lines: 227 Original-NNTP-Posting-Host: 122.163.238.197 Original-X-Trace: posting.google.com 1187106594 21778 127.0.0.1 (14 Aug 2007 15:49:54 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 14 Aug 2007 15:49:54 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (compatible; Konqueror/3.5; Linux 2.6.22.1-41.fc7; X11; x86_64; en_US, hi) KHTML/3.5.7 (like Gecko),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: x40g2000prg.googlegroups.com; posting-host=122.163.238.197; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Original-Xref: shelby.stanford.edu gnu.emacs.gnus:79715 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:9527 Archived-At: Tassilo Horn \/\/|20+3: > =E0=A4=86=E0=A4=B6=E0=A5=80=E0=A4=B7 =E0=A4=B6=E0=A5=81=E0=A4=95=E0=A5=8D= =E0=A4=B2 Ashish Shukla 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 =E0=A4=86=E0=A4=B6=E0=A5=80=E0=A4=B7 = =E0=A4=B6=E0=A5=81=E0=A4=95=E0=A5=8D=E0=A4=B2") (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 =E0=A4=86=E0= =A4=B6=E0=A5=80=E0=A4=B7 =E0=A4=B6=E0=A5=81=E0=A4=95=E0=A5=8D=E0=A4=B2)") ("Organization" "/\\/0/\\/3") ("X-PGP" "762E5E74") ("PGP" "762E5E74") ("X-PGP-FP" "1E00 4679 77E4 F8EE 2E4B 56F2 1F2F 8410 762E 5E74") ("X-Attribution" "=E0=A4=86=E0=A4=B6=E0=A5=80=E0=A4=B7") ("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=3Dlisp -- 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: =E0=A4=86=E0=A4=B6=E0=A5=80=E0=A4=B7 =E0=A4=B6= =E0=A5=81=E0=A4=95=E0=A5=8D=E0=A4=B2 Ashish Shukla ' -- 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/