From: Angelina Carlton <debian@magma.ca>
Subject: Gnus and Gmail
Date: Fri, 24 Nov 2006 12:18:11 -0500 [thread overview]
Message-ID: <87zmagyd9o.fsf@magma.ca> (raw)
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
--------------------------
next reply other threads:[~2006-11-24 17:18 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-24 17:18 Angelina Carlton [this message]
2006-11-24 17:51 ` Brep
2006-11-24 19:20 ` Angelina Carlton
2006-11-24 19:31 ` Brep
2006-11-24 19:40 ` Brep
2006-11-24 19:46 ` Leo
2006-11-25 13:58 ` Hadron Quark
2006-11-25 16:40 ` Shanks N
[not found] ` <mailman.1102.1164473065.2155.info-gnus-english@gnu.org>
2006-11-27 1:26 ` Angelina Carlton
[not found] <mailman.2141.1235931707.31690.info-gnus-english@gnu.org>
2009-03-01 18:34 ` Andrzej Adam Filip
2009-03-01 18:44 ` Byung-Hee HWANG
2009-03-09 6:37 ` parmenides
2009-03-09 10:48 ` Richard Riley
-- strict thread matches above, loose matches on Subject: below --
2009-03-01 18:21 Byung-Hee HWANG
2006-12-03 12:08 Guillaume
2006-12-03 15:39 ` Leo
2006-01-15 9:52 gnus and gmail lucius
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zmagyd9o.fsf@magma.ca \
--to=debian@magma.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).