From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/9902 Path: news.gmane.org!not-for-mail From: Richard G Riley Newsgroups: gmane.emacs.gnus.user Subject: Re: msmtp and multiple smtp servers Date: Sat, 10 Nov 2007 18:02:58 +0100 Message-ID: <5pm6i1FrnrfqU1@mid.uni-berlin.de> References: <5phh1oFrfp8hU1@mid.uni-berlin.de> <87fxzge45g.fsf@gnu.org> <5phjikFr9vkuU1@mid.uni-berlin.de> <87bqa4e208.fsf@gnu.org> <5phnnjFrh2fcU1@mid.uni-berlin.de> <87zlxo89b0.fsf@gnu.org> <5pj7qbFredgsU1@mid.uni-berlin.de> <5pjqcaFquu3iU1@mid.uni-berlin.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1194742661 29607 80.91.229.12 (11 Nov 2007 00:57:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 11 Nov 2007 00:57:41 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Sun Nov 11 01:57:44 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 1Ir18x-0008Bn-PT for gegu-info-gnus-english@m.gmane.org; Sun, 11 Nov 2007 01:57:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ir18l-0008VS-UV for gegu-info-gnus-english@m.gmane.org; Sat, 10 Nov 2007 19:57:31 -0500 Original-Path: shelby.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Lines: 103 Original-X-Trace: news.uni-berlin.de pddcdHjv3nXpoBQy/PCsuwOvzMCM5ZYGphkjuMXXf/zwhpXqU= Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAD1BMVEVCODScb2DBjHbUq5h0 cYfNHpyLAAAACXBIWXMAAABIAAAASABGyWs+AAACEElEQVQ4y12UzU5bQQyFPw/ZwrUv7EnCthIS 2VdXFY8NaiqxrSpeIPAAVXzuPsVd3Bt+MruZb449tnWm3W3uB07X2WbTArbTLgKgd4c3aKM9AGDr 9frK4sb7y83mDlrN6jVwvuyhSgDNpzA3btD3Xmi/zxRNByCiyqEgcMtdQkNTqBEwEMLJVGMJZtgU Uh2OAd5YQGHzG9yA8ptVtmlfNj+uMBi9vCEw6OZzUYzIXhsOYOMELDC66rIaGkB1rDNJbE2qwZbw 9/Z5OUZmNRigMndKICXh0K8aPJkrjD2wy5lijTqHyBLUvlBJlZ40WAHYKkCNzroOVNUAx8IxhK8s zaySdZvKiwjHQR7m5XavqSUSgMAiwhCPzL1ySAMwrxrBaLAHqRKmURWdV0c7f34RzOdJCY0jom0P FORIZRb5itQVP6YcCY7tU6IA3S80ASMK6wknVB0PAxMozF6KHqCzEWoG0MXSAkoYBY8zcAkrBbby aWTPc45CjmdEzE04/G4AcnVGApnHUTaAu7Ma8QBc5Z9AXXCNEeZ5K30CZpd/BHQSi88KdEECqvp1 +KwgdZm73GdyTDGD23jrcveSGo+uOFaeHifGncDZEluBHd3wodjSGKg6UWz5rjeeHbg/UTDbYMHw FTyVmTMwHL+JCRy2hwLrn68etl9DDWyy8vrsG4fTHP8QP/++3z+CLZUfrgLgP1mVA+dyHGcmAAAA GnpUWHRKUEVHLUNvbG9yc3BhY2UAAHjaMwIAADMAMxEWfmMAAAAqelRYdEpQRUctU2FtcGxpbmct ZmFjdG9ycwAAeNozqjDSMaww1DGsMAQAEYMC6QbEyigAAAAASUVORK5CYII= User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50.6 (gnu/linux) Original-Xref: shelby.stanford.edu gnu.emacs.gnus:80112 X-Mailman-Approved-At: Sat, 10 Nov 2007 19:57:11 -0500 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:9902 Archived-At: Sivaram Neelakantan writes: > Richard G Riley writes: > >> Sivaram Neelakantan writes: >> >>> Richard G Riley writes: >>> >>> >>> [...] >>> >>>> I tried the solution here: >>>> > > [...] > >> >> OK, the problem is narrowed down. >> >> the account is correct. But its not matching the .msmtprc section. >> Instead it is dropping through to the default e.g >> >> ,---- >> | account abc >> | user abc@gmail.com >> | password abc123 >> | >> | account rgr >> | user rgr@gmail.com >> | password rgr123 >> | >> | account default : rgr >> `---- >> >> in this case if the "from" is logged using message in the multi-smtp >> function then message correctly reports that account "abc" was selected >> into variable account. But the actual user & password picked up for the >> smtp chat with the gmail servers is that of rgr above : the default >> account. >> >> I have latest msmtp 1.4.13. >> >> This then makes me think there is indeed a problem with >> >> (setq message-sendmail-extra-arguments (list "-a" account)) >> >> But examining it tells me >> >> message-sendmail-extra-arguments's value is ("-a" "abc") >> >> Is this correct? Has something changed here? >> >> So what else can I do to debug? I am dreading this being something so >> obvious with my config file. > > Does your posting style look similar to this? > > (setq gnus-parameters > '((".*news\\.gmane\\.org.*" > (visible . t) > (display . all) > (posting-style > (address "nsivaram.xxxxxx@gmail.com") > (name "Sivaram Neelakantan") > (eval (setq message-sendmail-extra-arguments '("-a" "siva"))) > (user-mail-address "nsivaram.xxxx@gmail.com"))) > (".*nnfolder:.*" > (posting-style > (address "sssss@gmail.com") > (name "Ssssss") > (body "Sssss") > (eval (setq message-sendmail-extra-arguments '("-a" "sssss"))) > (user-mail-address "ssssss@gmail.com"))))) > > Obviously, the sendmail args go into effect only when I *enter* the > specific folders. The second argument is the account names in the > msmtprc file. > > 1. Set the posting styles match for 2 different folders and check the > message-sendmail-extra-arguments value in each case (by entering the > folder) to see whether it changes from one value to the other. If it > doesn't, fix your posting styles, first. > > 2. Then send an email and check the logs and the sent mail folder on > gmail to check which smtp account it used. I know which one was used : the one which appears as the "from" when it is received - google automatically replaces anything in the "from" with the user logged into the smtp server. However, everything is now solved. And it's embarrassing. Almost line 1 of the Wiki. I changed to No Gnus 0.6 and it worked. Since I had an emacs-snapshot of emacs 22 then I assumed (wrongly) that I had recent Gnus. I have no real idea what No Gnus v Gnus means but it works now. What the difference is that makes it work is unknown to me. Thanks for your support.