Opened 6 years ago

Closed 6 years ago

#1253 closed defect (fixed)

Susimail forces POP3 login when not required

Reported by: zzz Owned by:
Priority: minor Milestone: 0.9.13
Component: apps/susimail Version: 0.9.12
Keywords: Cc:
Parent Tickets: Sensitive: no

Description

When the POP3 session has expired, susimail forces a relogin, even when not required, for example when clicking 'new' to compose a message.

WebMail?.processRequest() calls getSessionObject(), which looks for the SessionObject? attached to the HTTPSession. If not, creates new with state = STATE_AUTH which forces a login independent of button action.

This could be avoided for certain actions.

Additionally, the Jetty session lifetime should be extended. Currently 15 minutes in web.xml.

Subtickets

Change History (6)

comment:1 Changed 6 years ago by zzz

Extended to 24h in web.xml in ba82e9e4c57bd8d9f567c9252fe7b5815972e370

comment:2 Changed 6 years ago by zzz

… but it didn't help. Is the state getting reset if the POP server is closing the connection? To be investigated…

comment:3 Changed 6 years ago by zzz

Successfully extended in 7d2f18d277a34eb2772fa9380449c7fdb4dcafcf by renaming the cookie.

Also, in an earlier checkin, replaced the method call for the folder header that was causing a reconnect to the POP server every time.

comment:4 Changed 6 years ago by zzz

In theory we could send a mail with only the SMTP login, but we assume it's the same as POP.

We could go direct to the compose screen if we had credentials to send it.

Not sure if worth it.

comment:5 Changed 6 years ago by zzz

Milestone: 0.9.150.9.13
Status: newtesting

Offline mode added in ae0974f16b27a72d6db7f2b19d3ad3caf22787a2 to be 0.9.12-9

Together with changes above extending session lifetime to 24h, this is mostly fixed.

comment:6 Changed 6 years ago by zzz

Resolution: fixed
Status: testingclosed
Note: See TracTickets for help on using tickets.