Summary | keep auto saved message in compose window although session is expired |
Queue | IMP |
Queue Version | 6.1.7 |
Type | Bug |
State | Not A Bug |
Priority | 1. Low |
Owners | |
Requester | lauffer (at) ph-freiburg (dot) de |
Created | 04/11/2014 (4103 days ago) |
Due | |
Updated | 07/09/2014 (4014 days ago) |
Assigned | 04/16/2014 (4098 days ago) |
Resolved | 07/09/2014 (4014 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
with an active logout.
If a user manually logs out in a separate window/tab/whatever, then
yes... the auto saved draft will be deleted. And that is the expected
behavior. Otherwise your drafts mailbox would have 1,000s of
abandoned drafts.
(server)... so my focus is on the situation when there is already an
auto saved message in the draft folder.
.oO(in the hope of "very important mails takes more time to compose
than TTL of auto save...")
ATM I only was able to reproduce a lost of an auto saved message with
an active logout.
Ok. Because of the changes in the upcoming horde webgroupware I would
say we "hold the line"... I will come back after test of the new
version.
data, let alone the 'compose_cache' entry, so this code doesn't do
anything. (And I'm not even sure if this is run on a session timeout
anyway.)
only)" because this is needed for the use of s/mime.
after some minutes (or if I press the button to save in drafts...).
The problem is that some users get horde to remove/delete this
already saved messages out of the draft (or it never was saved
there?). If the users call us for help they tell us horde said the
session had expired after clicking on the send button. So the
composed message text get lost in the closing window...
if compose data is seen in a POST and there is no session, the message
should be saved to the user's VFS backend. (We can't save to users'
draft mailbox, since we don't have access to the IMAP server at this
point).
I faintly remember fixing some issues relating to session expiration
in the near past. Although you may need to be running (unreleased)
Horde 5.2 and/or IMP 6.2 and/or Horde_Core to see the fixes.
session expired to to other user acitivity in a 2nd... 3rd...
browser window.
session. So I searched for a task like this and found something in
imp/lib/Application.php round about line 163.:
public function logout()
{
/* Clean up dangling IMP_Compose objects. */
foreach (array_keys($GLOBALS['session']->get('imp',
'compose_cache', Horde_Session::TYPE_ARRAY)) as $key) {
$GLOBALS['injector']->getInstance('IMP_Factory_Compose')->create($key)->destroy('cancel');
}
At the moment my idea would be to temporare remove this foreach().
Question: Are there some known, seriously side effects by doing this?
Maybe I should go deeper and just only find the part where saved
message in draft got deleted?
only)" because this is needed for the use of s/mime.
And we use the dynamic view (set on the login mask) as default This
compose window in dynamic view is working (and looks different as
using it in the basic mode). So the notice "Basic view only" seems to
be puzzeling.
And yes, in generel the message will be saved in the drafts folder
after some minutes (or if I press the button to save in drafts...).
The problem is that some users get horde to remove/delete this already
saved messages out of the draft (or it never was saved there?). If the
users call us for help they tell us horde said the session had expired
after clicking on the send button. So the composed message text get
lost in the closing window...
The question is: Can we do anything to prevent this? I guess the
session expired to to other user acitivity in a 2nd... 3rd... browser
window.
We tell our users not to open more than one horde tab or window at
once. But can we do something in Horde...? Testting for a working
session before closing the compose window? Whatever...
Type ⇒ Bug
Priority ⇒ 1. Low
State ⇒ Feedback
and when changed. Are you saying this isn't working? And since the
preference to write messages in a new window only exists in the basic
mode, are you using that? Does it work correctly in the other mode?
State ⇒ New
Patch ⇒ No
Milestone ⇒
Queue ⇒ IMP
Summary ⇒ keep auto saved message in compose window although session is expired
Type ⇒ Enhancement
Priority ⇒ 1. Low
new message (we use new windows as default for that because of the use
of s/mime).
In this case the typed in mail text gets lost in space after klicking
on the send button.
We would be very pleased if there is a way to save the message text in
draft, or not to close the window... to find a way not to lost the
already composed message text.
Poorly we don't know right now how to reproduce this kind of expired
sessions. But regardless of this we think there should be a way to
save the mail text in any way... (btw. I remember the OTRS ticket
system which is very strickt and disallows opening more than one
window. If you try so you get be asked if the other window should be
closed or the new not opened... a solution for horde?)