From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/8252 Path: news.gmane.org!not-for-mail From: Angelina Carlton Newsgroups: gmane.emacs.gnus.user Subject: Gnus and Gmail Date: Fri, 24 Nov 2006 12:18:11 -0500 Message-ID: <87zmagyd9o.fsf@magma.ca> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1164391153 27900 80.91.229.2 (24 Nov 2006 17:59:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 24 Nov 2006 17:59:13 +0000 (UTC) Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Fri Nov 24 18:59:07 2006 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GnfKA-0002Zg-Sx for gegu-info-gnus-english@m.gmane.org; Fri, 24 Nov 2006 18:58:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GnfKA-0004UW-Iz for gegu-info-gnus-english@m.gmane.org; Fri, 24 Nov 2006 12:58:54 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.magma.ca!news.magma.ca.POSTED!not-for-mail Original-NNTP-Posting-Date: Fri, 24 Nov 2006 11:18:18 -0600 Original-Newsgroups: gnu.emacs.gnus X-Subliminal-Message: debian/rules User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.90 (gnu/linux) Cancel-Lock: sha1:a+jX74YY2+OMN5WN391zNpR3Q+A= Original-Lines: 73 Original-NNTP-Posting-Host: 209.217.93.107 Original-X-Trace: sv3-yejnxmVFV8NU4qX/cjBTOYDXOwVBzZsBFhWIR8Qh12GYnx2RtjghE8LR9UcC80huPIcQA0DCFTNJy8B!PZxAD/UZLlAy40GtNw1IEJpyB2AmMeh7pPAIvE4kezpxKMjoBS6NAfi1AL8NAraqhcA= Original-X-Complaints-To: abuse@magma.ca X-DMCA-Complaints-To: abuse@magma.ca X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Original-Xref: shelby.stanford.edu gnu.emacs.gnus:78437 Original-To: info-gnus-english@gnu.org 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:8252 Archived-At: Hello, I would like to send and receive all my gmail without having to use a webrowser and to use Gnus instead. I have configured fetchmail to receive my gmail and drop it in my mail spool and Gnus can read this without a problem. The only problem now is sending from the gmail account. First I need to make it appear that I am using the gmail account when replying to mail originating from gmail. As I understand it, I can use a posting-style for this? Does this look correct? ,---- | (setq gnus-posting-styles | '((".*" | (name "Angelina Carlton") | (address "debian@magma.ca") | (signature-file "/home/orchid/.signature")) | ("^nnml.*gmail" | (name "bzgirl") | (address "bzgirl@gmail.com") | (signature-file "/home/orchid/.signature.bzgirl")))) `---- The next step is much harder for me to figure out, I found a guide on the internet (http://www.pvv.ntnu.no/~terjeros/wiki/GnusGmail) and use this: ,---- | ;; gmail | (defun fs-change-smtp () | "Change the SMTP server according to the current from line." | (save-excursion | (let ((from | (save-restriction | (message-narrow-to-headers) | (message-fetch-field "from")))) | (message "From is `%s', setting `smtpmail-smtp-server' to `%s'" | from | (cond | ((string-match "bzgirl@gmail.com" from) | ;; Use stmp-auth | (message "Using smtp-auth") | ;; Sending mail | (setq message-send-mail-function 'smtpmail-send-it) | (setq smtpmail-starttls-credentials '(("smtp.gmail.com" 465 nil nil))) | (setq smtpmail-auth-credentials '(("smtp.gmail.com" 465 "bzgirl@gmail.com" "PASSWORD)"))) | (setq smtpmail-default-smtp-server "smtp.gmail.com") | (setq smtpmail-smtp-server "smtp.gmail.com") | (setq smtpmail-smtp-service 465)) | ((string-match "bzgirl@example.org" from) | ;; Use local sendmail | (message "Using local sendmail") | (setq message-send-mail-function `message-send-mail-with-sendmail)) | (t | (error | (concat "Don't know which mail server to use for " | from))))))) | (add-hook 'message-setup-hook 'fs-change-smtp) `---- I think the posting style works (haven't been able to send a test mail to check) because the headers look right, but when I issue C-c C-c gnus then hangs with the message "Sending Mail..." in the mini-buffer. -- -----Angelina Carlton----- orchid on irc.freenode.net debian@magma.ca http://bzgirl.org --------------------------