Hi people,

For some reason, gnus is not marking emails as read just for gmail accounts, i tried with the simplest configuration in my .gnus putting:

(add-to-list 'gnus-secondary-select-methods '(nnimap "gmail"
(nnimap-address "imap.gmail.com")
(nnimap-server-port 993)
(nnimap-stream ssl)))
but it does not work properly. Also I am following GnusGmail tutorial from emacswiki:

http://www.emacswiki.org/cgi-bin/wiki/GnusGmail

and in section "catching up" http://www.emacswiki.org/cgi-bin/wiki/GnusGmail#toc10 I can read:

"
g
does gnus-group-get-new-news in group mode. This doesn’t seem to work completely correctly: it may report incorrect numbers of unread messages in each group after an update.

Only g (or M-g) didn’t work with the normal configuration. I have seen that Gmail starts working perfectly in Gnus after you disable Gnus Agent, with (setq gnus-agent nil). It seems that gnus-agent and nnimap don’t play well together.

A less drastic solution is to only disable gnus-agent for Gmail. Go to the server buffer with ^ and disable the agent for Gmail with J r.

"

However nothing of these two possible workarounds are doing anything, when I read an email, i still see via gmail web interface that email is unread, if I press refresh the same issue, and If I quit from gnus and join again to my gmail account all the emails read previously still as unread.

I am not interested into remove the emails, I am interested to maintain some of them as read in previous sessions ( (O)ld state ).

Could anybody provide me some guidance of how to fix that? If I am using other imap server (not from gmail) it works properly.

Thanks!

Borja Tarraso