From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/79848 Path: news.gmane.org!not-for-mail From: gphilip@india.com Newsgroups: gmane.emacs.gnus.general Subject: Re: Getting rid of the Fcc: field, and other compose problems. Date: Fri, 09 Sep 2011 00:26:54 +0530 Message-ID: <87ehzqlv61.fsf@singlemalt.gphilip.net> References: <87y5xz756n.fsf@singlemalt.localdomain> <87sjo7rn3v.fsf@topper.koldfront.dk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1315508364 4484 80.91.229.12 (8 Sep 2011 18:59:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 8 Sep 2011 18:59:24 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M28142@lists.math.uh.edu Thu Sep 08 20:59:20 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R1jol-0007g2-Vn for ding-account@gmane.org; Thu, 08 Sep 2011 20:59:20 +0200 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 1R1jnv-0002hK-Fy; Thu, 08 Sep 2011 13:58:27 -0500 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 1R1jnt-0002hB-W8 for ding@lists.math.uh.edu; Thu, 08 Sep 2011 13:58:26 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1R1jns-0006RK-Dl for ding@lists.math.uh.edu; Thu, 08 Sep 2011 13:58:25 -0500 Original-Received: from mail-gy0-f172.google.com ([209.85.160.172]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1R1jnq-0003x6-2h for ding@gnus.org; Thu, 08 Sep 2011 20:58:22 +0200 Original-Received: by gyd12 with SMTP id 12so1515896gyd.17 for ; Thu, 08 Sep 2011 11:58:15 -0700 (PDT) Original-Received: by 10.68.48.132 with SMTP id l4mr1623160pbn.78.1315508295193; Thu, 08 Sep 2011 11:58:15 -0700 (PDT) Original-Received: from singlemalt.localdomain.gmail.com ([117.193.162.32]) by mx.google.com with ESMTPS id x6sm14743966pba.5.2011.09.08.11.58.10 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 08 Sep 2011 11:58:13 -0700 (PDT) In-Reply-To: <87sjo7rn3v.fsf@topper.koldfront.dk> ("Adam =?utf-8?Q?Sj?= =?utf-8?Q?=C3=B8gren=22's?= message of "Thu, 08 Sep 2011 18:54:28 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) X-Spam-Score: -0.2 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:79848 Archived-At: Eric, Slackrat, Adam, Thanks to you all for your replies. The "From:" field problem has been solved (see the solution below), but the "Fcc:" field is stubborn and I have given in to its demand. asjo@koldfront.dk (Adam Sj=C3=B8gren) writes: > On Thu, 08 Sep 2011 14:59:36 +0530, G wrote: > >> 1. The "Fcc:" field is populated with a non-existant directory, and I am >> prompted whether I want to create this maildir. > > What have you done to get an Fcc: field? I don't think you get one by > default? (You probably get a Gcc: field for archiving sent messages, > though). The sad thing is that I do not know :( . I finally caved in and said "yes" to the question "Create the maildir?", because I wanted to send mail using Gnus. Now a copy of each mail I send using Gnus is written to this new maildir 'sent' folder. > >> 2. The "From:" field is populated by a junk email id, constructed from >> my username on the local machine and the local machine's hostname. I >> have to edit this field also every time so that it is my proper email >> address.=20 > > Does it help to set the variables user-full-name and user-mail-address? > It helped to set these, but only as a static measure; these wouldn't change depending on which mail I am replying to.=20 >> ;; (setq gnus-posting-styles >> '(((header "to" "myfirstaddress@gmail.com") >> (address "myfirstaddress@gmail.com")) > > I think you've got a level of parens too many there? (Comparing to the > example in the Posting Styles node in the manual) No, the parens are OK here. After a bit of digging around the manuals and the source code of gnus/message.el, I tried a hunch, and it worked! Here is what works: (setq gnus-posting-styles '(((header "to" "myfirstaddress@gmail.com") (From "myfirstaddress@gmail.com")) ((header "to" "myotheraddress@gmail.com") (From "myotheraddress@gmail.com")))) That is, specifying "From" instead of "address" does the trick. Thanks once again for your help.=20 Regards, Philip