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

francis picabia fpicabia at gmail.com
Tue Nov 8 19:46:24 UTC 2011


On Tue, Nov 8, 2011 at 2:52 PM, Andrew Morgan <morgan at orst.edu> wrote:
> On Tue, 8 Nov 2011, francis picabia wrote:
>
>> On Tue, Nov 8, 2011 at 10:47 AM, francis picabia <fpicabia at gmail.com>
>> wrote:
>>
>>>
>>> I found a bunch of settings in prefs.php which are inaccessible from
>>> the Administration
>>> interface, as far as I could tell.
>>>
>>> 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.
>>
>> I have learned some users are caught with mail sitting in a purgeable
>> state, but there is no longer a menu item to purge it while delete to
>> trash is active.
>>
>> The first time this came up, I temporarily disabled trash for a few
>> seconds, the user logged out and in, and then the purged messages had
>> been deleted.
>>
>> Now it has happened to another user, so I'm looking for a better solution.
>>
>> While trash is active, how can I cause messages already deleted but
>> not purged to move to the trash, for all users?  Or is there a better
>> way to go about migrating to the 'delete to trash' configuration?
>
> Have you looked at the Virtual Trash option?  With Virtual Trash enabled,
> IMP follows the usual IMAP conventions of marking messages as deleted
> instead of moving them to a separate Trash folder.  But, it also takes all
> messages that are marked as deleted and hides them from the end user.  You
> will see a Virtual Folder named Virtual Trash as well.
>
> Using Virtual Trash also plays nicely if you have mailbox quotas. Sometimes,
> if a user is close to their quota it is not possible to move (really, copy +
> delete) a message to their Trash folder.  With Virtual Trash, there is no
> move, so no quota limit is exceeded.
>
>        Andy

I've told the user to manually delete again the messages marked for deletion.

Virtual Trash sounds like a good move when quotas are full.  I can't
figure out how to configure it.   I searched for docs on it at the
horde wiki and nothing.

Here is what we have by default:

$_prefs['vfolder'] = array(
    // By default, Virtual Inbox is enabled and Virtual Trash is disabled.
    // 'value' => serialize(array())
    'value' => 'a:0:{}'
);

How is Virtual Trash enabled?  Will Virtual trash be purged the same
way as "traditional trash" - according to the settings in prefs.php?
By the sounds of it, Virtual Trash would be purged on logout?


More information about the imp mailing list