You are not logged in.

#1 2007-10-25 13:57:08

Gustavo
Member
From: Brazil
Registered: 2006-07-04
Posts: 92

Mutt and Gmail Imap

Hello,

Has anyone tried to use mutt and gmail(imap)? I can see the messages in my inbox, but other folders appears empty. This setup works fine on Sylpheed, so I'm guessing it's a mutt configuration problem. My .muttrc:

### CONFIGURACOES ###

set mbox=+mbox
set mbox_type=Maildir
set folder="imaps://myuser@imap.gmail.com/"
set spoolfile="imaps://myuser@imap.gmail.com/INBOX"
set header_cache=~/.hcache
set record="imaps://myuser@imap.gmail.com/[Gmail]/Sent Mail"
set edit_headers=y
set sendmail="/usr/bin/msmtp"
set realname='Gustavo Carvalho'
set postponed="imaps://myuser@imap.gmail.com/[Gmail]/Drafts"
set sort=threads
set autoedit=no
set write_bcc=no
set metoo
set delete=yes
set include
set reply_to=yes
set sort_browser=reverse-date
set tilde
set markers=no
set collapse_unread=no
set nouse_domain 
set charset=utf-8
set index_format="%4C %Z %{%m/%d} %-15.15F (%4c) %s"
set mbox="!"
set from="..."
set reverse_name=yes
### HEADERS ###

source ~/.mutt/muttheaders

### CAIXAS ###


### URL VIEW ###
macro pager \cb <pipe-entry>'urlview'<enter> 'Follow links with urlview'

### ABOOK ###

set query_command="abook --mutt-query '%s'"
macro pager A |'abook --add-email'\n

### CONTATOS ###

source ~/.mutt/contatos
source ~/.mutt/grupos

### CORES ###
#
color hdrdefault cyan           default
color quoted     cyan           default
color quoted1    brightblue     default
color quoted2    brightblue     default
color quoted3    yellow         default
color quoted4    red            default
color signature  cyan           default
color indicator  white          cyan
color attachment cyan           default
color error      red            default
color message    white          default
color search     white          default
color status     brightcyan     default
color tree       white          default
color normal     white          default
color tilde      green          default
color bold       white          default
color markers    red            default
color index     cyan            default         ~N

Thanks for your help,

Gustavo

Last edited by Gustavo (2007-10-25 13:59:57)

Offline

#2 2007-10-26 15:53:08

Gustavo
Member
From: Brazil
Registered: 2006-07-04
Posts: 92

Re: Mutt and Gmail Imap

georgeb wrote:

How do you mean the folders are empty? Eveything is working fine for me.

One thing I noticed is that I have to press SPACE to see a folder when listed using "?".

If you press enter it just shows you the subdiectory.

The relevant part of my .muttrc is below.

set imap_user = 'topsecret@gmail.com'
set imap_pass = 'topsecret'

set spoolfile = imaps://imap.gmail.com:993/INBOX
set folder = imaps://imap.gmail.com:993
set record="imaps://imap.gmail.com/[Gmail]/Sent Mail"
set postponed="imaps://imap.gmail.com/[Gmail]/Drafts"]

I was pressing enter. roll

Now I can see my mail. Thanks a lot!

Offline

#3 2007-10-26 22:55:11

meqif
Member
From: Portugal
Registered: 2006-12-16
Posts: 60
Website

Re: Mutt and Gmail Imap

Sorry for hijacking the thread, but I have a slightly related question:

Did anyone notice badly encoded "From" headers in index mode when accessing IMAP Gmail with mutt? I'm seeing stuff like "=?ISO-8859-1?Q?Wolfgang_N=E1dasi-Donner_", which is correctly shown in Thunderbird (IMAP Gmail) and in mutt when accessing the version stored in my homeserver (both versions are the same).

The "From" field looks fine in the pager, but is also shown incorrectly when replying!

Last edited by meqif (2007-10-26 22:56:28)


Ricardo Martins ><>< ricardomartins.cc ><>< GPG key: 0x1308F1B4

Offline

#4 2007-10-28 20:21:05

Gustavo
Member
From: Brazil
Registered: 2006-07-04
Posts: 92

Re: Mutt and Gmail Imap

Yes, I noticed that too. Also, my mutt sometimes locks and I have to kill it when using imap gmail.

Offline

#5 2007-10-28 21:32:52

scj
Member
From: Sweden
Registered: 2007-09-23
Posts: 158

Re: Mutt and Gmail Imap

I can't get mutt to display umlauts properly, for some reason. I'm sending myself test messages containing åäö and they are displayed as ?'s.  This is only for the message body, since the subject line is displayed properly.
Both mutt and vim have their encodings set to utf-8 and the attachment shows as 'text/plain, 8bit, utf-8'

Offline

#6 2007-10-28 21:37:31

meqif
Member
From: Portugal
Registered: 2006-12-16
Posts: 60
Website

Re: Mutt and Gmail Imap

scj wrote:

I can't get mutt to display umlauts properly, for some reason. I'm sending myself test messages containing åäö and they are displayed as ?'s.  This is only for the message body, since the subject line is displayed properly.
Both mutt and vim have their encodings set to utf-8 and the attachment shows as 'text/plain, 8bit, utf-8'

Do you have "set charset=utf-8" in .muttrc? Are you using an utf-8 compatible terminal emulator (like urxvt)? Does the email look fine in another email client?


Ricardo Martins ><>< ricardomartins.cc ><>< GPG key: 0x1308F1B4

Offline

#7 2007-10-28 21:59:16

scj
Member
From: Sweden
Registered: 2007-09-23
Posts: 158

Re: Mutt and Gmail Imap

Yes, yes and no. Turns out that they aren't displayed properly in thunderbird either, although they are using the gmail webclient.

edit: seems like it's a known google problem

Last edited by scj (2007-10-29 07:35:54)

Offline

#8 2007-10-29 08:15:02

meqif
Member
From: Portugal
Registered: 2006-12-16
Posts: 60
Website

Re: Mutt and Gmail Imap

scj wrote:

Yes, yes and no. Turns out that they aren't displayed properly in thunderbird either, although they are using the gmail webclient.

edit: seems like it's a known google problem

Interesting. Probably both our issues with IMAP Gmail are related. I hope they fix them soon.

Last edited by meqif (2007-10-29 08:15:55)


Ricardo Martins ><>< ricardomartins.cc ><>< GPG key: 0x1308F1B4

Offline

#9 2007-11-09 08:13:00

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Mutt and Gmail Imap

I just set this up.. here's my config: http://phraktured.net/config/.mutt/gmailimap

Though you'll probably want something like so as well:

set header_cache=~/.mutt/hcache
set message_cachedir="~/.mutt/msgcache/"
set certificate_file=~/.mutt/certs

As a side note, I'm thinking about setting the trash folder to archive things, and make delete an extra step, because gmail is like that

Offline

#10 2007-11-09 08:41:51

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Mutt and Gmail Imap

meqif wrote:

Did anyone notice badly encoded "From" headers in index mode when accessing IMAP Gmail with mutt? I'm seeing stuff like "=?ISO-8859-1?Q?Wolfgang_N=E1dasi-Donner_", which is correctly shown in Thunderbird (IMAP Gmail) and in mutt when accessing the version stored in my homeserver (both versions are the same).

This is actually part of the email standard. I can't remember the details, but it's something of the form: email only supports latin1 or something like that, so to add in different characters, they need to be encoded in this form, and parsed by clients.

Offline

#11 2007-11-09 08:50:13

meqif
Member
From: Portugal
Registered: 2006-12-16
Posts: 60
Website

Re: Mutt and Gmail Imap

phrakture wrote:
meqif wrote:

Did anyone notice badly encoded "From" headers in index mode when accessing IMAP Gmail with mutt? I'm seeing stuff like "=?ISO-8859-1?Q?Wolfgang_N=E1dasi-Donner_", which is correctly shown in Thunderbird (IMAP Gmail) and in mutt when accessing the version stored in my homeserver (both versions are the same).

This is actually part of the email standard. I can't remember the details, but it's something of the form: email only supports latin1 or something like that, so to add in different characters, they need to be encoded in this form, and parsed by clients.

Yeah, I know that; that's RFC 2047 if my memory serves me well. The thing is, mutt parses those headers correctly when accessing mail stored on my home server but messes everything up when it is stored on Gmail.

Last edited by meqif (2007-11-09 08:51:12)


Ricardo Martins ><>< ricardomartins.cc ><>< GPG key: 0x1308F1B4

Offline

#12 2007-11-09 12:29:28

mucknert
Member
From: Berlin // Germany
Registered: 2006-06-27
Posts: 510

Re: Mutt and Gmail Imap

Did the OP try out offlineimap? The setup can be found in the Wiki under Mutt.


Todays mistakes are tomorrows catastrophes.

Offline

#13 2007-11-10 01:41:19

gregf
Member
Registered: 2007-09-04
Posts: 6

Re: Mutt and Gmail Imap

Gustavo wrote:

I was pressing enter. roll

Now I can see my mail. Thanks a lot!

Yeah I was doing that at first as well. Since enter works just fine for pop3 mbox's. If you have not figured this out yet though this is what I did to go back to using enter.

bind browser <return> view-file

Could not get used to using space after doing enter for years.

Offline

#14 2008-01-20 21:47:00

mdk
Member
From: Helsinki/Finland
Registered: 2005-04-04
Posts: 26
Website

Re: Mutt and Gmail Imap

meqif wrote:

Did anyone notice badly encoded "From" headers in index mode when accessing IMAP Gmail with mutt? I'm seeing stuff like "=?ISO-8859-1?Q?Wolfgang_N=E1dasi-Donner_", which is correctly shown in Thunderbird (IMAP Gmail) and in mutt when accessing the version stored in my homeserver (both versions are the same).

Did you find any solution to this problem? I'm experiencing same here with gmail IMAP access.


MDK
Open Source Software Operations/Nokia
michael.kostrzewa (at) nokia.com

Offline

#15 2008-01-20 21:55:37

meqif
Member
From: Portugal
Registered: 2006-12-16
Posts: 60
Website

Re: Mutt and Gmail Imap

Check this bug report. It's Google's fault, apparently.


Ricardo Martins ><>< ricardomartins.cc ><>< GPG key: 0x1308F1B4

Offline

Board footer

Powered by FluxBB