[Dovecot] getting rid of old spam from +spam Maildir ?

Charles Marcus CMarcus at Media-Brokers.com
Mon Aug 6 02:24:54 EEST 2012


On 2012-08-05 6:47 PM, Voytek Eymont <voytek at sbt.net.au> wrote:
>
> On Mon, August 6, 2012 2:23 am, Charles Marcus wrote:
>
>> The 'date.saved:' is the date/time that the message was moved into that
>> folder.
>>
>> The clock for these messages is based on the time it was moved into that
>> folder, NOT the date/time the message was received in the message header.
>> Maybe this is what is confusing you?
>
>> So, if you have issue the command to remove messages older than 7 days,
>> that would be 7 days *since they were moved into the folder*.
>
> Charles,
>
> thanks
>
> these are a user+spam spam basket, the actual messages are either in 'new'
> or 'cur', depending if a particular user logged to 'spam' basket or not
>
> does that mean that say 7 days would clear new messages after 7 days, and,
> any message that is not 'new' after 7 more days, assuming I run the
> command daily ?
>
> all I want is an auto way to clear +spam baskets after x days

I'm not sure I understand your question...

Again, the date.saved is the date/tome the message was moved into the 
folder, and has nothing to do with the date the message was received or 
the date/time in the message header.

So, as long as the date.saved date/time is not older than the date/time 
you are searching on, then they will not be deleted.

-- 

Best regards,

Charles



More information about the dovecot mailing list