]> Sergey Matveev's repositories - public-inbox.git/commitdiff
imap: 30 minute auto-logout timer
authorEric Wong <e@yhbt.net>
Wed, 10 Jun 2020 07:04:59 +0000 (07:04 +0000)
committerEric Wong <e@yhbt.net>
Sat, 13 Jun 2020 07:55:45 +0000 (07:55 +0000)
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

index 77e8af12fa9e9e4ac8b47a7b9226b1084df94332..13f415cf8d64766a30075befebb36f5e5a7f5f64 100644 (file)
@@ -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);