From 8a87dfcb8c310337a0b737ac478ce3b17d223dec Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 10 Jun 2020 07:04:59 +0000 Subject: [PATCH] imap: 30 minute auto-logout timer RFC 3501 section 5.4 requires this to be >= 30 minutes, 10x higher than what is recommended for NNTP. Fortunately our design is reasonably memory-efficient despite being Perl. --- lib/PublicInbox/IMAP.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/PublicInbox/IMAP.pm b/lib/PublicInbox/IMAP.pm index 77e8af12..13f415cf 100644 --- a/lib/PublicInbox/IMAP.pm +++ b/lib/PublicInbox/IMAP.pm @@ -80,6 +80,9 @@ my @MoY = qw(Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec); my %MoY; @MoY{@MoY} = (0..11); +# RFC 3501 5.4. Autologout Timer needs to be >= 30min +$PublicInbox::DS::EXPTIME = 60 * 30; + sub greet ($) { my ($self) = @_; my $capa = capa($self); -- 2.44.0