Re: [courier-users] Re: IMAP_EMPTYTRASH and maildirsize

2003-03-07 Thread Fabio Gomes
Sam Varshavchik wrote:
Yes, this should be fixed.  However it's more of an annoyance.  The 
incorrect quota will fix itself, sooner or later.

In some cases yes. But there are few scenarios where the entire usage of 
the user's mailbox is between the Trash folder and Sent folder. Cleaning 
this folders will not update the maildirsize and the user will be unable 
to get new messages until I remove manually this maildirsize file.

Unfortunatelly I'm not a C programer. I'll be glad if you spare me some 
code to remove this file upon dopurge rotine. Right next the remotion of 
the 'expired' email.Something like:

if(exists(/home/user/maildir/maildirsize))
}
unlink (/home/user/maildir/maildirsize)
}
Well, thank you again.
Best Regards,
Fabio gomes
--
@_{2**2..6*6}=split//,aiGsDDbooe  eoin m-IsvveoF Tenlmt;print 
values%_,\n



---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


[courier-users] IMAP_EMPTYTRASH and maildirsize

2003-03-06 Thread Fabio Gomes
I've configured my courier imap server with the following option:

IMAP_EMPTYTRASH=Trash:7,Sent:30

I'm intriged 'cause the file maildirsize is not updated when messages in 
Trash and Sent are deleted by this feature.

Any considerations?

Thank you all,
Fabio Gomes
--
@_{2**2..6*6}=split//,aiGsDDbooe  eoin m-IsvveoF Tenlmt;print 
values%_,\n



---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


Re: [courier-users] IMAP_EMPTYTRASH and maildirsize

2003-03-06 Thread Fabio Gomes
Jon Nelson wrote:
On Thu, 6 Mar 2003, Fabio Gomes wrote:


I've configured my courier imap server with the following option:

IMAP_EMPTYTRASH=Trash:7,Sent:30

I'm intriged 'cause the file maildirsize is not updated when messages in 
Trash and Sent are deleted by this feature.

Any considerations?


Er, what do you mean 'the file maildirsize'?  Is there a /file/ named
'maildirsize' that ostensibly contains the size of the maildir (in
bytes, # messages, ???). I find no such file name.
The number '7' refers to 7 days worth of seconds (7 *  24 * 60 * 60), and
the calculation that is performed to determine when to delete a message
is based upon the ctime of the message.
Refer to line 58 of maildirpurgetmp.c

Argh.. My mistake, sorry. The situation IS: I'm using courier-imap and 
qmail-ldap. qmail-ldap controls quota by using this /file/ called 
maildirsize located in maildir's top level.

hmm.. Then, althought this is not really a courier problem I'll need to 
change maildirpurgetmp.c to delete this file 
(/home/user/Maildir/maildirsize), if it exists, when the 'dopurge' runs. 
I'll be glad if anyone would help me with some code lines. Otherwise I 
apologize and thank you all.

Regards,
Fabio Gomes
--
@_{2**2..6*6}=split//,aiGsDDbooe  eoin m-IsvveoF Tenlmt;print 
values%_,\n



---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users