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
> 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
.
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
>> 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
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