[dev] Patch: imp/lib/Message.php
Michael M Slusarz
slusarz at bigworm.colorado.edu
Fri Jun 20 13:28:46 PDT 2003
Quoting Marc Jauvin <marc at register4less.com>:
| Michael M Slusarz <slusarz at bigworm.colorado.edu> wrote:
|
| > Quoting Marc Jauvin <marc at register4less.com>:
| >
| > | This fixes the bug when the mailbox is overquota and the user wants
| to
| > | move deleted mail to a Trash Folder... In case this happens, the
| patched
| > | code now deletes the mail and expunges the folder automatically.
| >
| > Not exactly. If the user is over quota, we should manually delete the
| > messages from the mailbox and then readd them to the Trash mailbox.
| Simply
| > expunging the messages from the mailbox without moving them to the
| Trash is
| > most certainly _not_ expected behavior. I have modified your patch to
| do
| > just that - can someone else verify it works for them?
|
| I am not sure how you can do that without using more space in the
| mailbox?
Example
Quota is 100KB, User is using 99KB
User wants to delete 2KB message in INBOX. Using imap_mail_move(), the
message is first copied to the trash, then deleted. However, the copy
would cause the user to be at 101KB, and the server will not allow this.
Instead, the new code first downloads the text of the message and then
deletes it (97 KB), and then saves the message to the Trash mailbox (99
KB). Life is good. :)
| Anyway, I can test your patch if you tell me where it is... ;)
In HEAD.
michael
______________________________________________
Michael Slusarz [slusarz at bigworm.colorado.edu]
The University of Colorado at Boulder
More information about the dev
mailing list