« Return to Thread: behavior with $auto_expunge set to false

Re: behavior with $auto_expunge set to false

by Jon Angliss :: Rate this Message:

Reply to Author | View in Thread

Michael A. Puls II wrote:

> SM 1.5.2 - SVN
> $trash_folder = 'Trash'
> $auto_expunge = false
> $default_move_to_trash = false
> user preference: move_to_trash=0
>
> In that situation, I get an expunge button, delete button and an
> undelete button. They all work fine.
>
> However, there are few things that don't work as I expect.
>
> 1. When moving selected messages from one folder to another, they are
> copied to the desired folder and the originals are marked as deleted.
>
> I would instead like to: $auto_expunge_selected_when_moving = true;

When RFC supports such an option, we'll add it.  EXPUNGE doesn't support
arguments, so executing EXPUNGE on a mailbox will remove all \Deleted
messages.

> 2. I'd also like to be able to expunge selected instead of expunge all.
>
> I suppose this could be done when you try to delete a message that's
> already marked as deleted.
>
> Something like: $deleting_already_deleted_expunges = true;

When RFC supports such an option, we'll add it.  EXPUNGE doesn't support
arguments, so executing EXPUNGE on a mailbox will remove all \Deleted
messages.

> 3. In the folder preferences for a profile, if I switch the trash
> folder from "Do not use Trash" to my Trash folder and then switch it
> back to "Do not use Trash", I lose the undelete button and can't get
> it back.
>
> The workaround is to modify the profile file to get rid of the
> move_to_trash entry, sign out and sign back in.
>
> 4. Somehow, after switching from using a trash folder and not using
> one, I ended up with a 'none' folder.
>
> Are 3 and 4 known bugs?

They certainly look like it, and certainly shouldn't use 'none' as a
mailbox name.  I've seen comments in the code that reference the usage
of it.  We should probably unset it, or set it to some unique string, or
even an empty string.

> Anyway I can accomplish 1 and 2?

See 6.4.3 of RFC 3501.  EXPUNGE function doesn't support arguments,
which means executing it removes all \Deleted flagged emails.

--
Jon Angliss
<jon@...>


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
-----
squirrelmail-devel mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-devel@...
List archives: http://news.gmane.org/gmane.mail.squirrelmail.devel
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel

 « Return to Thread: behavior with $auto_expunge set to false