Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Gnus and Gmail

114 views
Skip to first unread message

Lorenzo Isella

unread,
Mar 1, 2008, 12:01:16 PM3/1/08
to help-gn...@gnu.org
Dear All,
I am fairly new to Emacs and I start only now to understand it is much
more than an editor.
I am thinking about using Gnus to manage my gmail account, but I'd like
to add I am completely new to Gnus.
I am a bit unsure about how to proceed. I am running Debian testing on
my box
I followed the steps in the tutorial on
http://wired-news.blogspot.com/2008/01/configuration-of-gmail-on-gnusemacs_09.html
The tutorial is for Ubuntu, but it should probably work for Debian as well.
Now, these are my problems:
(1) After a some attempts, I managed to get Gnus connect to my mailbox.
I can see for instance the last 30 mails in my inbox.
But I do not see in Gnus the same folders (inbox, sent, etc...) I have
on gmail, though I am using Imap.
What am I doing wrong?
(2) The other trouble is that when I try sending emails, I usually get
an smtp error and I do not know how to handle this.
I did a bit of online research on the archive and I found:
http://lists.gnu.org/archive/html/help-gnu-emacs/2006-02/msg00145.html
which may have something to do with my problem. BTW, my internet
provider is libero.it, but I am not sure where this should go.
I paste below first the gnus.el file I am using and output file; I think
they could be useful for understanding what is going on.

Many thanks

Lorenzo


;; Configuration of ~/.gnus.el

;; Customize the next three lines with your ISP information.
(load "starttls")
(load-library "smtpmail")

(setq user-mail-address "moonwat...@gmail.com")
(setq user-full-name "Lorenzo Isella")

;; Configure incoming mail (IMAP)
(setq gnus-select-method '(nnimap "gmail"
(nnimap-address "imap.gmail.com")
(nnimap-server-port 993)
(nnimap-authinfo-file "~/.imap-authinfo")
(nnimap-stream ssl)))

;; Configure outbound mail (SMTP)
(setq smtpmail-starttls-credentials '(("smtp.gmail.com" 587 nil nil))
smtpmail-smtp-server "smtp.gmail.com"
smtpmail-default-smtp-server "smtp.gmail.com"
send-mail-function 'smtpmail-send-it
message-send-mail-function 'smtpmail-send-it
smtpmail-smtp-service 587
smtpmail-auth-credentials '(("smtp.gmail.com" 587 "user...@gmail.com"
nil))
smtpmail-debug-info t
smtpmail-debug-verb t
)
(setq smtpmail-local-domain nil)
(setq gnus-permanently-visible-groups "gmail")
(executable-find starttls-program)

("emacs22-gtk")
Loading 00debian-vars...done
Loading /etc/emacs22/site-start.d/50auctex.el (source)...
Loading /usr/share/emacs/22.1/site-lisp/auctex.el (source)...
Loading /usr/share/emacs/22.1/site-lisp/tex-site.el (source)...done
Loading /usr/share/emacs/22.1/site-lisp/auctex.el (source)...done
Loading /usr/share/emacs/22.1/site-lisp/preview-latex.el (source)...done
Loading /etc/emacs22/site-start.d/50auctex.el (source)...done
Loading /etc/emacs/site-start.d/50autoconf.el (source)...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...
Loading debian-ispell...
Loading /var/cache/dictionaries-common/emacsen-ispell-default.el
(source)...done
Loading debian-ispell...done
Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el
(source)...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done
Loading /etc/emacs/site-start.d/50emacs-goodies-el.el (source)...done
Loading /etc/emacs/site-start.d/50ess.el (source)...
Loading regexp-opt...done
Loading /etc/emacs/site-start.d/50ess.el (source)...done
Loading /etc/emacs/site-start.d/50maxima-emacs.el (source)...done
Loading /etc/emacs/site-start.d/50noweb.el (source)...done
Loading /etc/emacs/site-start.d/50nowebm.el (source)...done
Loading /etc/emacs/site-start.d/50psvn.el (source)...done
Loading /etc/emacs/site-start.d/50pymacs.el (source)...done
Loading /etc/emacs/site-start.d/50python-mode.el (source)...done
Loading /etc/emacs/site-start.d/60cltl.el (source)...done
Loading advice...done
For information about the GNU Project and its goals, type C-h C-p. [2 times]
Loading gnus...done
Loading gnus-start...done
Loading starttls...done
Loading smtpmail...done
Loading gnus-agent...done
imap: Connecting to imap.gmail.com...
imap: Opening SSL connection with `openssl s_client -quiet -ssl3
-connect %s:%p'...done
Waiting for response from imap.gmail.com...done
Parsing authinfo file `~/.imap-authinfo'.
imap: Authenticating to `imap.gmail.com' using `login'...
imap: Plaintext authentication...
imap: Authenticating to `imap.gmail.com' using `login'...done
Saving file /home/iselllo/.newsrc-dribble...
Wrote /home/iselllo/.newsrc-dribble
Gnus auto-save file exists. Do you want to read it? (y or n)
Reading /home/iselllo/.newsrc.eld...
Reading active file from gmail via nnimap...
nnimap: Checking mailboxes...
Loading utf7...done
nnimap: Mailbox INBOX modified
nnimap: Checking mailboxes...done
nnimap: Listing subscribed mailboxes on gmail...done
No new newsgroups
Checking new news...done
No gnus is bad news
No more unread newsgroups
Making completion list...
Retrieving newsgroup: INBOX...
Loading disp-table...done
Loading gnus-ml...done
Loading byte-opt...done
nnimap: Updating info for INBOX...done
Fetching headers for INBOX...done
Generating summary...done
Loading gnus-bcklg...done
Loading gnus-async...done
Loading mail-extr...done
Loading smiley...done
Loading gnus-cite...done
byte-code: End of buffer [4 times]
Sending...
Sending via mail...
Loading mailalias...done
220 mx.google.com ESMTP f19sm20760382fka.18
250-mx.google.com at your service, [151.59.223.202]
250-SIZE 28311552
250-8BITMIME
250-STARTTLS
250 ENHANCEDSTATUSCODES
220 2.0.0 Ready to start TLS
250-mx.google.com at your service, [151.59.223.202]
250-SIZE 28311552
250-8BITMIME
250-AUTH LOGIN PLAIN
250 ENHANCEDSTATUSCODES
334 VXNlcm5hbWU6
334 UGFzc3dvcmQ6
535 5.7.1 Credentials Rejected f19sm20760382fka.18
221 2.0.0 mx.google.com closing connection f19sm20760382fka.18
smtpmail-send-it: Sending failed; SMTP protocol error
byte-code: Beginning of buffer [3 times]
byte-code: Beginning of buffer

Vyazovoi Pavel

unread,
Mar 2, 2008, 1:13:45 AM3/2/08
to help-gn...@gnu.org

> But I do not see in Gnus the same folders (inbox, sent, etc...) I have
> on gmail, though I am using Imap.
Add this to ~/.gnus:
(setq gnus-invalid-group-regexp "[:`'\"]\\|^$")

> The other trouble is that when I try sending emails

This document may help you:
http://www.emacswiki.org/cgi-bin/wiki/GnusGmail

I send my mail over msmtp, msmtp with gmail configuration:
account gmail
host smtp.gmail.com
port 587
from us...@gmail.com
auth on
tls on
tls_certcheck off
user us...@gmail.com
password secret

Don Saklad

unread,
Mar 2, 2008, 4:15:42 AM3/2/08
to help-gn...@gnu.org, dsa...@gnu.org
What kludges, workarounds are there to sort gmail ?... by size,
by number of lines, alphabetically by subject,
alphabetically by author.

.


Bastien

unread,
Mar 2, 2008, 4:56:39 AM3/2/08
to help-gn...@gnu.org
Don Saklad <dsa...@gnu.org> writes:

I don't know about "sorting gmail", but for sorting emails in Gnus, you
have the C-c C-s keypmap:

C-c C-s C-a gnus-summary-sort-by-author
C-c C-s C-c gnus-summary-sort-by-chars
C-c C-s C-d gnus-summary-sort-by-date
C-c C-s TAB gnus-summary-sort-by-score
C-c C-s C-l gnus-summary-sort-by-lines
C-c C-s C-n gnus-summary-sort-by-number
C-c C-s C-o gnus-summary-sort-by-original
C-c C-s C-r gnus-summary-sort-by-random
C-c C-s C-s gnus-summary-sort-by-subject
C-c C-s C-t gnus-summary-sort-by-recipient

--
Bastien


Lorenzo Isella

unread,
Mar 3, 2008, 3:24:05 AM3/3/08
to help-gn...@gnu.org
Hello,
And thanks for your answer.

>> But I do not see in Gnus the same folders (inbox, sent, etc...) I have
>> on gmail, though I am using Imap.
>>
> Add this to ~/.gnus:
> (setq gnus-invalid-group-regexp "[:`'\"]\\|^$")
>
>
I tried that, but unfortunately I saw no improvement. (I added that line
to my previous gnus.el file.
At least, "U" does not show any sent folder and I am not sure I
understood the S s command.


>> The other trouble is that when I try sending emails
>>
> This document may help you:
> http://www.emacswiki.org/cgi-bin/wiki/GnusGmail
>
> I send my mail over msmtp, msmtp with gmail configuration:
> account gmail
> host smtp.gmail.com
> port 587
> from us...@gmail.com
> auth on
> tls on
> tls_certcheck off
> user us...@gmail.com
> password secret
>
>
>

Here I need a bit of help. I installed msmtp, but I do not know yet how
to use/configure it. Furthermore (apologies, but I am a newbie), what is
the gnus-init file? Is it another name for gnus.el? If not where should
I find/create it?
I wonder it the following would be easier: could somone who is using
gnus+gmail on Debian post me his configuration files?
At this point, imap or pop does not matter, as long as the mails also
stay on the web and I can read them via gnus.
Cheers

Lorenzo


Sebastian Tennant

unread,
Mar 3, 2008, 4:58:24 AM3/3/08
to help-gn...@gnu.org
Quoth "Lorenzo Isella" <lorenzo...@gmail.com>:

> what is the gnus-init file? Is it another name for gnus.el?

Yes it is.

> I wonder it the following would be easier: could somone who is using
> gnus+gmail on Debian post me his configuration files?

I use smtpmail.el, not msmtp. This works for me.

N.B.

1. the 'gnutls-cli' program is a separate program entirely, included in
the Debian package; gnutls-bin.

2. this code only deals with SENDING and it lives in my ~/.emacs, not
my ~/.gnus. It's possible to send mail (using the function
(message-mail)) without loading gnus.

3. hope this helps. don't give up. it's worth it in the end.

(setq ;; use Gnus' message mode instead of plain Mail mode
mail-user-agent 'message-user-agent
;;
message-send-mail-function 'smtpmail-send-it
;; display all headers (not just To: and Subject:)
message-generate-headers-first t
;; nil to disable alias expansion (aliae found in ~/.mailrc)
message-mail-alias-type 'abbrev
;; smtpmail
starttls-gnutls-program "gnutls-cli"
;; CHANGE SMTP SERVER HERE
smtpmail-smtp-server "smtp.gmail.com"
smtpmail-default-smtp-server "smtp.gmail.com"
;; you only need one of these, but I'm not sure which
smtpmail-auth-credentials '(("smtp.gmail.com" 587 "f...@bar.baz" "password"))
smtpmail-starttls-credentials '(("smtp.gmail.com" 587 "f...@bar.baz" "password"))
;; Gmail uses port 587 for accepting mail submissions
smtpmail-smtp-service 587
;; if t, use smptmail-send-queued-mail to send
smtpmail-queue-mail nil
smtpmail-debug-info t)

Sebastian

Message has been deleted
0 new messages