about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-06-10 07:04:59 +0000
committerEric Wong <e@yhbt.net>2020-06-13 07:55:45 +0000
commit8a87dfcb8c310337a0b737ac478ce3b17d223dec (patch)
treef8058984c1c1133fc01a60a41dc9b8643d63f71e
parent648d1bf21a43b686bdc493bcffecea73c5610d1f (diff)
downloadpublic-inbox-8a87dfcb8c310337a0b737ac478ce3b17d223dec.tar.gz
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.
-rw-r--r--lib/PublicInbox/IMAP.pm3
1 files changed, 3 insertions, 0 deletions
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);