Message remains in spool after expunge

Arnaldo Viegas de Lima arnaldo at viegasdelima.com
Tue Aug 22 14:36:14 EDT 2017


Thank you to all that quickly answered (Patrick/Merlin/Sebastian).

I really missed this one. Maybe because I migrated from 2.4 direct to 3.0.3 in 2.5. Indeed one of my comments about the migration is that a list of “behavior” changes could go a long way  into helping the whole process.

Now comes an interesting challenge: I do like the delayed expunge. It’s nice an ingenious and for our installation a nice feature, so I really want to keep it.

But my script needs to process the files in the directory. Up to now the files where listed (filesystem) and a search was used to identify it on Cyrus. With leftover (delayed) files, is there a way to list the messages on the mailbox in Cyrus and obtain the actual filename?

Thanks again,

Arnaldo.


> On Aug 22, 2017, at 9:57 AM, Patrick Boutilier <boutilpj at ednet.ns.ca> wrote:
> 
> On 08/22/2017 09:48 AM, Arnaldo Viegas de Lima wrote:
>> Hi,
>> We have just migrated from 2.4.17 to 3.0.3 and we are having a problem with one of our scripts that perform actions on a SPAM folder for retraining purposes.
>> All files placed by the user there are used for retaining. At the end Cyrus is called to remove the files: we mark all files for deletion and then expunge the mailbox. We have been using this script since 2007, flawlessly.
>> I’ve set Cyrus chatty mode on and I can see the commands being sent to the server and there is a confirmation log message for the expunge, with the  correct number of files.
>> Checking the SPAM mailbox with Cyrus (or any IMAP client), show it as empty. But looking at the mailbox directory in the filesystem, the actual files are still there.
>> Am I missing something on 3.0.3 that may be the cause for this problem?
>> Thanks in advance.
> 
> expunge_mode: delayed is the default since 2.5
> 
> https://www.cyrusimap.org/imap/concepts/features/delayed-expunge.html
> 
> You would want expunge_mode: immediate to use the default behaviour in 2.4.17
> 
> 
> 
> 
> 
>> Arnaldo.
>> ----
>> Cyrus Home Page: http://www.cyrusimap.org/
>> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
>> To Unsubscribe:
>> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
> 
> <boutilpj.vcf>----
> Cyrus Home Page: http://www.cyrusimap.org/
> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
> To Unsubscribe:
> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus



More information about the Info-cyrus mailing list