[imp] IMP with dynamic is surprising users with how far delete goes

Ronan SALMON rsalmon at mbpgroup.com
Tue Nov 8 16:01:06 UTC 2011


Quoting francis picabia <fpicabia at gmail.com>:

> On Tue, Nov 8, 2011 at 9:22 AM, Ronan SALMON <rsalmon at mbpgroup.com> wrote:
>>
>> francis picabia <fpicabia at gmail.com> a écrit :
>>
>>> On Tue, Nov 8, 2011 at 1:45 AM, Michael M Slusarz <slusarz at horde.org>
>>> wrote:
>>>>
>>>> Quoting francis picabia <fpicabia at gmail.com>:
>>>>
>>>>> At our site, we've had dynamic mail with IMP active for roughly 3 weeks.
>>>>>
>>>>> Today we have our second user to restore from backup after a user
>>>>> "accidentally" deletes all of their email.  I had difficulty
>>>>> understanding this until the second occurrence.
>>>>>
>>>>> In traditional mode, the email is displayed in pages. This is like
>>>>> many online email services at hotmail, google mail, etc.
>>>>>
>>>>> Users are accustomed to selecting the upper check box to select
>>>>> everything on the page (all viewable on the screen).  They select
>>>>> delete, thinking it is only the messages they see at the time.  In
>>>>> reality, it selected everything in their mailbox. They purged,
>>>>> thinking it was only the messages in front of their eyeballs being
>>>>> purged.  Of course, it deleted and purged everything in their mailbox.
>>>>
>>>> You're kidding me, right?  The dynamic view is exactly how every other UI
>>>> handles a select all.  The traditional view is hamstrung by PHP/page
>>>> architecture and it is the UI that is wrong.
>>>>
>>>> Regardless, the answer is easy.  Use a trash mailbox.
>>>>
>>>
>>> It is no joke, there really are two users who deleted all their email.
>>>  I'd assume they were more accustomed to the paged view in
>>> traditional, also used in free webmail interfaces.  It is rather
>>> alarming if you don't think this is a serious issue.
>>>
>>> We had used a trash in the past with cyrus and imp 3, and people would
>>> fill up their quota with deleted mail they didn't know was there.
>>>
>>> How do I enable the trash?  Is this the same as Virtual Trash? I found
>>> a checkbox to "Automatically create special mailboxes" in a UI part of
>>> config and turned this on.  Deleted messages are not copied into my
>>> trash.
>>>
>>> Also, does it have a way to automatically delete from trash after XX
>>> number of days?
>>
>> You can configure (and maybe lock) a trash login task in
>> imp/config/prefs.php
>
> I found a bunch of settings in prefs.php which are inaccessible from
> the Administration
> interface, as far as I could tell.

These are set for each user account.

> I set the following value here to '1':
>
> // should we move messages to a trash folder instead of just marking
> // them as deleted?
> $_prefs['use_trash'] = array(
>     'value' => 1,
>     'type' => 'checkbox',
>     'desc' => _("When deleting messages, move them to your Trash
> folder instead of marking them as deleted?")
> );
>
> I set the value here to '1':
>
> // display the 'Empty Trash' link in the menubar?
> $_prefs['empty_trash_menu'] = array(
>     'value' => 1,
>     'type' => 'checkbox',
>     'desc' => _("Display the \"Empty Trash\" link in the menubar?")
> );
>
> The following setting wasn't documented in the prefs, but judging by
> an old post related to IMP 3 or 4, the possible values are: yearly =
> 1, monthly = 2, weekly = 3, daily = 4, every login = 5 . I have no
> idea if these are true, but I'm hoping so.  I selected monthly.
>
> // how often to purge the Trash folder?
> $_prefs['purge_trash_interval'] = array(
>     'value' => 2,
>     'type' => 'enum',
>     'enum' => array_merge(array(0 => _("Never")),
> Horde_LoginTasks::getLabels()),
>     'desc' => _("Purge Trash how often:"),
>     'help' => 'prefs-purge_trash_interval'
> );
>
> The trash solution seems to work well within dynamic.  I can't tell
> yet if the purge setting is meaningful, so that is the only remaining
> question I have.  Are those values for purge_trash_interval from older
> IMP still used in IMP 5?
>
> I think this solution is good.

Definitly not the best option.
You should add a weekly cron job to clean messages (in users trash  
folder) older than 7 days (in your case).


Ronan.




More information about the imp mailing list