all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Gnus and Gmail
@ 2008-03-01 17:01 Lorenzo Isella
  2008-03-02  6:13 ` Vyazovoi Pavel
  0 siblings, 1 reply; 6+ messages in thread
From: Lorenzo Isella @ 2008-03-01 17:01 UTC (permalink / raw)
  To: help-gnu-emacs

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 "moonwatcher2001@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 "username@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





^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Gnus and Gmail
  2008-03-01 17:01 Gnus and Gmail Lorenzo Isella
@ 2008-03-02  6:13 ` Vyazovoi Pavel
  0 siblings, 0 replies; 6+ messages in thread
From: Vyazovoi Pavel @ 2008-03-02  6:13 UTC (permalink / raw)
  To: help-gnu-emacs


> 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 user@gmail.com
 auth on
 tls on
 tls_certcheck off
 user user@gmail.com
 password secret





^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Gnus and Gmail
@ 2008-03-02  9:15 Don Saklad
  2008-03-02  9:56 ` Bastien
  0 siblings, 1 reply; 6+ messages in thread
From: Don Saklad @ 2008-03-02  9:15 UTC (permalink / raw)
  To: help-gnu-emacs, dsaklad

What kludges, workarounds are there to sort gmail ?... by size,
by number of lines, alphabetically by subject,
alphabetically by author.









.




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Gnus and Gmail
  2008-03-02  9:15 Don Saklad
@ 2008-03-02  9:56 ` Bastien
  0 siblings, 0 replies; 6+ messages in thread
From: Bastien @ 2008-03-02  9:56 UTC (permalink / raw)
  To: help-gnu-emacs

Don Saklad <dsaklad@gnu.org> writes:

> What kludges, workarounds are there to sort gmail ?... by size,
> by number of lines, alphabetically by subject,
> alphabetically by author.

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




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Gnus and Gmail
       [not found] ` <47CB2FCB.3020003@gmail.com>
@ 2008-03-03  8:24   ` Lorenzo Isella
  2008-03-03  9:58     ` Sebastian Tennant
  0 siblings, 1 reply; 6+ messages in thread
From: Lorenzo Isella @ 2008-03-03  8:24 UTC (permalink / raw)
  To: help-gnu-emacs

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 user@gmail.com
>  auth on
>  tls on
>  tls_certcheck off
>  user user@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




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Gnus and Gmail
  2008-03-03  8:24   ` Lorenzo Isella
@ 2008-03-03  9:58     ` Sebastian Tennant
  0 siblings, 0 replies; 6+ messages in thread
From: Sebastian Tennant @ 2008-03-03  9:58 UTC (permalink / raw)
  To: help-gnu-emacs

Quoth "Lorenzo Isella" <lorenzo.isella@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 "foo@bar.baz" "password"))
       smtpmail-starttls-credentials '(("smtp.gmail.com" 587 "foo@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





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-03-03  9:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-01 17:01 Gnus and Gmail Lorenzo Isella
2008-03-02  6:13 ` Vyazovoi Pavel
  -- strict thread matches above, loose matches on Subject: below --
2008-03-02  9:15 Don Saklad
2008-03-02  9:56 ` Bastien
     [not found] <47cadb2c.1bb87e0a.0dab.ffffb7bbSMTPIN_ADDED@mx.google.com>
     [not found] ` <47CB2FCB.3020003@gmail.com>
2008-03-03  8:24   ` Lorenzo Isella
2008-03-03  9:58     ` Sebastian Tennant

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.