Greetings

I have been looking for a solution to the 'delete when over quota' problem. I 
do not wish to disable 'move to trash' as a default. But the overquota 
delete/move problem will be a major issue here.

So I found:
http://sourceforge.net/mailarchive/messages.php?msg_id=5930175

This contains a patch written by Alexandros Vellis that appears to be a good 
solution. The patch applies without issue. But when I test it I do not see any 
change in squirrelmail.

I have fiddled a bit to try and figure it out. What I found is that in 
imap_messages.php if I add a few prints, ie added print "1" and print "2" as 
follows

------------------------------------------------------------------------------
    /* If $disabletrash has been explicitly set to true, no copying to trash
     * will be done altogether. */
    if (($move_to_trash == true) && ($disabletrash == false) &&
      (sqimap_mailbox_exists($imap_stream, $trash_folder) && ($mailbox != 
$trash_folder))) {
print "1";
        $read = sqimap_run_command ($imap_stream, "COPY $start:$end 
\"$trash_folder\"", true, $response, $message, $
print "2";
        /* Check for errors on the COPY command */
        if($response == "NO") {
------------------------------------------------------------------------------

When I delete the message I see '1' on the screen followed by the error "over 
quota" but never '2'. The function sqimap_run_command never seems to return.

Am I missing something? Any special config required? Is there a more recent 
patch for the problem? Is there somewhere where all patches are stored? 

I am using the stable squirrelmail 1.4.2.

Regards
Warren



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to