Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Re: IMAP disconnecting
       [not found] <mailman.17099.1219212549.18990.info-gnus-english@gnu.org>
@ 2008-08-20 21:13 ` David Kastrup
  2008-08-21  5:13   ` Gour
  0 siblings, 1 reply; 11+ messages in thread
From: David Kastrup @ 2008-08-20 21:13 UTC (permalink / raw)
  To: info-gnus-english

Gour <gour@mail.inet.hr> writes:

> Hello!
>
> I run Emacs-CVS with included Gnus-5.13 which access my local dovecot
> IMAP server.
>
> This topic was already discussed, but I still do not have solutions for
> regular disconnect from IMAP server.
>
> Here you can see snippet from my today' log:
>
>
> dovecot: 2008-08-20 07:53:50Info: imap-login: Login: user=<gour>,
> method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, TLS
> dovecot: 2008-08-20 07:56:28Info: imap-login: Disconnected: Inactivity: 
> rip=127.0.0.1, lip=127.0.0.1, secured
>
>
> It's quite frustrating to start writing email and then discover that you
> cannot send it 3 minutes later cause Gnus lost connection :-/

Goto the *Group* buffer, type ^, go to the line with your server, type C
(possibly followed with C-g if it hangs) and O.  Now go back to your
mail buffer and send.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

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

* Re: IMAP disconnecting
  2008-08-20 21:13 ` IMAP disconnecting David Kastrup
@ 2008-08-21  5:13   ` Gour
  0 siblings, 0 replies; 11+ messages in thread
From: Gour @ 2008-08-21  5:13 UTC (permalink / raw)
  To: info-gnus-english


[-- Attachment #1.1: Type: text/plain, Size: 531 bytes --]

>>>>> "David" == David Kastrup <dak@gnu.org> writes:

David> Goto the *Group* buffer, type ^, go to the line with your server,
David> type C (possibly followed with C-g if it hangs) and O.  Now go
David> back to your mail buffer and send.

Heh, nice 'workaround' ;)

Still, I prefer fully working solution and it looks that Tassilo's
suggestion of disabling TLS is working...


Sincerely,
Gour


-- 

Gour  | Zagreb, Croatia  | GPG key: C6E7162D
----------------------------------------------------------------

[-- Attachment #1.2: Type: application/pgp-signature, Size: 196 bytes --]

[-- Attachment #2: Type: text/plain, Size: 161 bytes --]

_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english

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

* Re: IMAP disconnecting
  2008-08-20 16:39           ` David
@ 2008-08-20 16:57             ` Tassilo Horn
  0 siblings, 0 replies; 11+ messages in thread
From: Tassilo Horn @ 2008-08-20 16:57 UTC (permalink / raw)
  To: info-gnus-english

David <de_bb@arcor.de> writes:

Hi David,

>> But on the net I've read that dovecot doesn't disconnect clients.  After
>> some time with no activity, it contacts the clients and checks if
>> they're still available.
>
> Really? I frequently get disconnected after 30 minutes of idle
> time. It's hardcoded in the source (imap-login/client.c):
>
> /* Disconnect client after idling this many milliseconds */
> #define CLIENT_LOGIN_IDLE_TIMEOUT_MSECS (3*60*1000)

Indeed, I have misread something I've found on the net. ;-)

Bye,
Tassilo

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

* Re: IMAP disconnecting
  2008-08-20 15:35         ` Tassilo Horn
  2008-08-20 15:53           ` Gour
@ 2008-08-20 16:39           ` David
  2008-08-20 16:57             ` Tassilo Horn
  1 sibling, 1 reply; 11+ messages in thread
From: David @ 2008-08-20 16:39 UTC (permalink / raw)
  To: info-gnus-english

Tassilo Horn <tassilo@member.fsf.org> writes:
> But on the net I've read that dovecot doesn't disconnect clients.  After
> some time with no activity, it contacts the clients and checks if
> they're still available.

Really? I frequently get disconnected after 30 minutes of idle
time. It's hardcoded in the source (imap-login/client.c):

/* Disconnect client after idling this many milliseconds */
#define CLIENT_LOGIN_IDLE_TIMEOUT_MSECS (3*60*1000)

However, this shouldn't cause any problems with Gnus. The server should
simply get reopened when you enter or check a nnimap group.

-David

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

* Re: IMAP disconnecting
  2008-08-20 15:35         ` Tassilo Horn
@ 2008-08-20 15:53           ` Gour
  2008-08-20 16:39           ` David
  1 sibling, 0 replies; 11+ messages in thread
From: Gour @ 2008-08-20 15:53 UTC (permalink / raw)
  To: info-gnus-english


[-- Attachment #1.1: Type: text/plain, Size: 796 bytes --]

>>>>> "Tassilo" == Tassilo Horn <tassilo@member.fsf.org> writes:

Tassilo> Yes, looks good.

OK.

Tassilo> This lets gnus check for new news every 10 minutes of emacs
Tassilo> idle time (or something like that).  This can repair
Tassilo> disconnects if the server closes the connection after a certain
Tassilo> time of inactivity.

Tassilo> But on the net I've read that dovecot doesn't disconnect
Tassilo> clients.  After some time with no activity, it contacts the
Tassilo> clients and checks if they're still available.

Interesting.

Tassilo> Normally, it shouldn't.  But give it a test ride...

OK. Wil follow up if required.


Sincerely,
Gour


-- 

Gour  | Zagreb, Croatia  | GPG key: C6E7162D
----------------------------------------------------------------

[-- Attachment #1.2: Type: application/pgp-signature, Size: 196 bytes --]

[-- Attachment #2: Type: text/plain, Size: 161 bytes --]

_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english

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

* Re: IMAP disconnecting
  2008-08-20 15:15       ` Gour
@ 2008-08-20 15:35         ` Tassilo Horn
  2008-08-20 15:53           ` Gour
  2008-08-20 16:39           ` David
  0 siblings, 2 replies; 11+ messages in thread
From: Tassilo Horn @ 2008-08-20 15:35 UTC (permalink / raw)
  To: info-gnus-english

Gour <gour@mail.inet.hr> writes:

Hi!

> Now, dovecot shows:
>
> dovecot: 2008-08-20 16:23:23Info: imap-login: Login: user=<gour>,
> method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
>
> This looks OK?

Yes, looks good.

> otoh, I've found some post (same/similar problem) suggesting to add:
>
> (require 'gnus-demon)
> (setq gnus-use-demon t)
> (gnus-demon-add-handler 'gnus-group-get-new-news 10 0)
> (gnus-demon-init)
>
> What do you think about it?

This lets gnus check for new news every 10 minutes of emacs idle time
(or something like that).  This can repair disconnects if the server
closes the connection after a certain time of inactivity.

But on the net I've read that dovecot doesn't disconnect clients.  After
some time with no activity, it contacts the clients and checks if
they're still available.

> Is it required?

Normally, it shouldn't.  But give it a test ride...

Bye,
Tassilo

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

* Re: IMAP disconnecting
  2008-08-20 13:47     ` Tassilo Horn
@ 2008-08-20 15:15       ` Gour
  2008-08-20 15:35         ` Tassilo Horn
  0 siblings, 1 reply; 11+ messages in thread
From: Gour @ 2008-08-20 15:15 UTC (permalink / raw)
  To: info-gnus-english


[-- Attachment #1.1: Type: text/plain, Size: 975 bytes --]

>>>>> "Tassilo" == Tassilo Horn <tassilo@member.fsf.org> writes:

Tassilo> Yeah, I use the same setup, but TLS only for synching with
Tassilo> offlineimap.

Cool.

Tassilo> Set up your select methods like this.

Tassilo> (add-to-list 'gnus-secondary-select-methods '(nnimap "Uni"
Tassilo> (nnimap-address "localhost") (nnimap-stream network)
Tassilo> (nnimap-authenticator login)))

Thank you very much.

Now, dovecot shows:

dovecot: 2008-08-20 16:23:23Info: imap-login: Login: user=<gour>,
method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured

This looks OK?

otoh, I've found some post (same/similar problem) suggesting to add:

(require 'gnus-demon)
(setq gnus-use-demon t)
(gnus-demon-add-handler 'gnus-group-get-new-news 10 0)
(gnus-demon-init)


What do you think about it?

Is it required?


Sincerely,
Gour


-- 

Gour  | Zagreb, Croatia  | GPG key: C6E7162D
----------------------------------------------------------------

[-- Attachment #1.2: Type: application/pgp-signature, Size: 196 bytes --]

[-- Attachment #2: Type: text/plain, Size: 161 bytes --]

_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english

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

* Re: IMAP disconnecting
  2008-08-20 13:32   ` Gour
@ 2008-08-20 13:47     ` Tassilo Horn
  2008-08-20 15:15       ` Gour
  0 siblings, 1 reply; 11+ messages in thread
From: Tassilo Horn @ 2008-08-20 13:47 UTC (permalink / raw)
  To: info-gnus-english

Gour <gour@mail.inet.hr> writes:

Hi!

> Tassilo> Maybe a problem with TLS?  I don't see a reason to use
> Tassilo> encrypted connections to a local server, so try without that?
>
> Hmm...I use encrypted connections to be able to sync from my laptop
> with offlineimap - that's why I use imap & imaps on the dovecot.

Yeah, I use the same setup, but TLS only for synching with offlineimap.

> How would I force Gnus to connect via imap locally?

Set up your select methods like this.

--8<---------------cut here---------------start------------->8---
(add-to-list 'gnus-secondary-select-methods
             '(nnimap "Uni"
                      (nnimap-address "localhost")
                      (nnimap-stream network)
                      (nnimap-authenticator login)))
--8<---------------cut here---------------end--------------->8---

See (info "(gnus)IMAP") for the description.

Bye,
Tassilo
-- 
Richard Stallman gets 9 bits to the byte.

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

* Re: IMAP disconnecting
  2008-08-20  8:04 ` Tassilo Horn
@ 2008-08-20 13:32   ` Gour
  2008-08-20 13:47     ` Tassilo Horn
  0 siblings, 1 reply; 11+ messages in thread
From: Gour @ 2008-08-20 13:32 UTC (permalink / raw)
  To: info-gnus-english


[-- Attachment #1.1: Type: text/plain, Size: 803 bytes --]

>>>>> "Tassilo" == Tassilo Horn <tassilo@member.fsf.org> writes:

Tassilo> Maybe a problem with TLS?  I don't see a reason to use
Tassilo> encrypted connections to a local server, so try without that?

Hmm...I use encrypted connections to be able to sync from my laptop with
offlineimap - that's why I use imap & imaps on the dovecot.

How would I force Gnus to connect via imap locally?

Tassilo> A quick google search showed that dovecot's rawlog utility
Tassilo> might be useful to find the problem.

Tassilo>   http://wiki.dovecot.org/Debugging/Rawlog

Thank you.

I enabled rawlog and will post if something interesting appears there.


Sincerely,
Gour


-- 

Gour  | Zagreb, Croatia  | GPG key: C6E7162D
----------------------------------------------------------------

[-- Attachment #1.2: Type: application/pgp-signature, Size: 196 bytes --]

[-- Attachment #2: Type: text/plain, Size: 161 bytes --]

_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english

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

* Re: IMAP disconnecting
  2008-08-20  6:08 Gour
@ 2008-08-20  8:04 ` Tassilo Horn
  2008-08-20 13:32   ` Gour
  0 siblings, 1 reply; 11+ messages in thread
From: Tassilo Horn @ 2008-08-20  8:04 UTC (permalink / raw)
  To: info-gnus-english

Gour <gour@mail.inet.hr> writes:

Hi!

> I run Emacs-CVS with included Gnus-5.13 which access my local dovecot
> IMAP server.
>
> This topic was already discussed, but I still do not have solutions
> for regular disconnect from IMAP server.
>
> Here you can see snippet from my today' log:
>
> dovecot: 2008-08-20 07:53:50Info: imap-login: Login: user=<gour>,
> method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, TLS
> dovecot: 2008-08-20 07:56:28Info: imap-login: Disconnected: Inactivity: 
> rip=127.0.0.1, lip=127.0.0.1, secured

Maybe a problem with TLS?  I don't see a reason to use encrypted
connections to a local server, so try without that?

> It's quite frustrating to start writing email and then discover that you
> cannot send it 3 minutes later cause Gnus lost connection :-/

A quick google search showed that dovecot's rawlog utility might be
useful to find the problem.

  http://wiki.dovecot.org/Debugging/Rawlog

Bye,
Tassilo
-- 
      "DRM manages rights in the same way a jail manages freedom"

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

* IMAP disconnecting
@ 2008-08-20  6:08 Gour
  2008-08-20  8:04 ` Tassilo Horn
  0 siblings, 1 reply; 11+ messages in thread
From: Gour @ 2008-08-20  6:08 UTC (permalink / raw)
  To: info-gnus-english


[-- Attachment #1.1: Type: text/plain, Size: 848 bytes --]

Hello!

I run Emacs-CVS with included Gnus-5.13 which access my local dovecot
IMAP server.

This topic was already discussed, but I still do not have solutions for
regular disconnect from IMAP server.

Here you can see snippet from my today' log:


dovecot: 2008-08-20 07:53:50Info: imap-login: Login: user=<gour>,
method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, TLS
dovecot: 2008-08-20 07:56:28Info: imap-login: Disconnected: Inactivity: 
rip=127.0.0.1, lip=127.0.0.1, secured


It's quite frustrating to start writing email and then discover that you
cannot send it 3 minutes later cause Gnus lost connection :-/


Any idea how to investigate the problem deeper and/or any workaround?


Sincerely,
Gour

-- 

Gour  | Zagreb, Croatia  | GPG key: C6E7162D
----------------------------------------------------------------

[-- Attachment #1.2: Type: application/pgp-signature, Size: 196 bytes --]

[-- Attachment #2: Type: text/plain, Size: 161 bytes --]

_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english

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

end of thread, other threads:[~2008-08-21  5:13 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.17099.1219212549.18990.info-gnus-english@gnu.org>
2008-08-20 21:13 ` IMAP disconnecting David Kastrup
2008-08-21  5:13   ` Gour
2008-08-20  6:08 Gour
2008-08-20  8:04 ` Tassilo Horn
2008-08-20 13:32   ` Gour
2008-08-20 13:47     ` Tassilo Horn
2008-08-20 15:15       ` Gour
2008-08-20 15:35         ` Tassilo Horn
2008-08-20 15:53           ` Gour
2008-08-20 16:39           ` David
2008-08-20 16:57             ` Tassilo Horn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).