What do you think about this patch ? Is the reasoning correct ? Which problems may appear after applying this patch ? One I can think of is the quota issue. Isn't the Trash excluded from the quota count ?
Here comes the reasoning and the patch: Sqwebmail automatically purges messages and does not give users the option to disable the feature. The "--enable-autopurge=7" configuration option is an unreasonable default because many users expect that items moved to the trash folder will remain there until it is explicitly emptied. This patch allows users to disable the autopurge feature through the sqwebmail preferences pages. Sqwebmail will not delete messages by default if "--enable-autopurge=0" is added to the COMMON_CONFOPTS variable in the rules file. [] diff -ru courier-0.36.1.orig/webmail/html/en-us/preferences.html courier-0.36.1/webmail/html/en-us/preferences.html --- courier-0.36.1.orig/webmail/html/en-us/preferences.html Mon Nov 12 23:11:51 2001 +++ courier-0.36.1/webmail/html/en-us/preferences.html Mon Dec 31 06:20:34 2001 @@ -109,7 +109,7 @@ <tr> <td></td> <td>Automatically purge deleted messages after [#v#] - days.</td> + days.<br>(Set zero to disable autopurge.)</td> </tr> </tbody> </table> diff -ru courier-0.36.1.orig/webmail/pref.c courier-0.36.1/webmail/pref.c --- courier-0.36.1.orig/webmail/pref.c Sat Nov 3 10:22:06 2001 +++ courier-0.36.1/webmail/pref.c Mon Dec 31 06:20:34 2001 @@ -182,7 +182,7 @@ break; } - if (pref_autopurge < 1) pref_autopurge=1; + if (pref_autopurge < 0) pref_autopurge=0; if (pref_autopurge > MAXPURGE) pref_autopurge=MAXPURGE; switch (pref_flagsortorder) { diff -ru courier-0.36.1.orig/webmail/sqwebmail.c courier-0.36.1/webmail/sqwebmail.c --- courier-0.36.1.orig/webmail/sqwebmail.c Mon Nov 12 23:11:51 2001 +++ courier-0.36.1/webmail/sqwebmail.c Mon Dec 31 06:20:34 2001 @@ -2404,7 +2404,7 @@ (void)maildir_create(SENT); (void)maildir_create(TRASH); pref_init(); - maildir_autopurge(); + if (pref_autopurge > 0) maildir_autopurge(); sqpcp_login(ubuf, p); Ciao Racke -- Think of it ! For projects and other business stuff please refer to COBOLT NetServices (URL: http://www.cobolt.net; Email: [EMAIL PROTECTED]; Phone: 0041-1-3884400) _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users