Re: Purging old email files from Cyrus-IMAPD v.3.0.9 on FreeBSD-12.0

2019-05-16 Thread Savvas Karagiannidis
Hi James,
I think deleted and expunged are explained well in the documentation.

Deleted: In IMAP when a user deletes an email, the email is actually only
flagged as deleted. The user can still see the message and even unset the
flag recovering the email.

Expunged: When the user issues the expunge command the flagged as deleted
messages above become inaccessible by the user. Without delayed delete this
is also where the message file gets deleted from the filesystem (purged).

The confusion is probably between purged and expired. For every email
message cyrus keeps a file on the mailbox folder and also an entry in the
cyrus index file  for that message. For a clean delete, both the file and
the index entry must be deleted. For some reasons they may not be both
removed at the same time... I think for performance reasons, replication
etc. So:

Purged: when the message file is deleted, it is considered purged. The
actual email can in no way be recovered.

Expired: The index entry for the message is removed. This usually happens
after it has been purged. Cyrus has no longer any knowledge of the message
ever existed.

Hope this clarifies things. For simplicity just consider cyr_expire purging
and expiring the messages.

Regards,
Savvas Karagiannidis



On Thu, May 16, 2019, 23:08 James B. Byrne  wrote:

>
>
> On Thu, May 16, 2019 11:00, Savvas Karagiannidis wrote:
> > Hi James,
> > the command that performs the actual removal of the files from the
> > file system is cyr_expire
> > <
> https://www.cyrusimap.org/imap/reference/manpages/systemcommands/cyr_expire.html
> >
> > According to your cyrus.conf and the manual of cyr_expire, the
> > operation is performed daily at 04:00. The command is executed
> > by the main cyrus process, so you don't have to do anything
> > else manually...
> > The parameters -D 180d and -X 180d specify that only mailboxes and
> > messages that are at least 180 days old will be deleted.
> >
> > When cyr_expire is executed you should see a line in your log file
> > like these:
> >
>
> Thanks.  I have a question though. If expunge == purge then why does
> the documentation distinguish between them?
>
> When is What ... Deleted, Expired, Expunged or Purged?
>
> https://www.cyrusimap.org/imap/reference/faqs/o-deleted-expired-expunged-purged.html
>
> Expunged
>
> The message (which has been flagged as \Deleted) is also expunged,
> meaning that the user can in no way retrieve the message
> autonomously.
>
> Purged
>
> The message’s index record may still exist (until they are
> expired), but the message file is removed from the filesystem, or
> in the context of folders, the mail folder is removed from the
> filesystem.
>
>
> This is what has me confused.
>
> Regards,
>
> --
> ***  e-Mail is NOT a SECURE channel  ***
> Do NOT transmit sensitive data via e-Mail
>  Do NOT open attachments nor follow links sent by e-Mail
>
> James B. Byrnemailto:byrn...@harte-lyne.ca
> Harte & Lyne Limited  http://www.harte-lyne.ca
> 9 Brockley Drive  vox: +1 905 561 1241
> Hamilton, Ontario fax: +1 905 561 0757
> Canada  L8E 3C3
>
>

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

Re: Purging old email files from Cyrus-IMAPD v.3.0.9 on FreeBSD-12.0

2019-05-16 Thread James B. Byrne via Info-cyrus



On Thu, May 16, 2019 11:00, Savvas Karagiannidis wrote:
> Hi James,
> the command that performs the actual removal of the files from the
> file system is cyr_expire
> 
> According to your cyrus.conf and the manual of cyr_expire, the
> operation is performed daily at 04:00. The command is executed
> by the main cyrus process, so you don't have to do anything
> else manually...
> The parameters -D 180d and -X 180d specify that only mailboxes and
> messages that are at least 180 days old will be deleted.
>
> When cyr_expire is executed you should see a line in your log file
> like these:
>

Thanks.  I have a question though. If expunge == purge then why does
the documentation distinguish between them?

When is What ... Deleted, Expired, Expunged or Purged?
https://www.cyrusimap.org/imap/reference/faqs/o-deleted-expired-expunged-purged.html

Expunged

The message (which has been flagged as \Deleted) is also expunged,
meaning that the user can in no way retrieve the message
autonomously.

Purged

The message’s index record may still exist (until they are
expired), but the message file is removed from the filesystem, or
in the context of folders, the mail folder is removed from the
filesystem.


This is what has me confused.

Regards,

-- 
***  e-Mail is NOT a SECURE channel  ***
Do NOT transmit sensitive data via e-Mail
 Do NOT open attachments nor follow links sent by e-Mail

James B. Byrnemailto:byrn...@harte-lyne.ca
Harte & Lyne Limited  http://www.harte-lyne.ca
9 Brockley Drive  vox: +1 905 561 1241
Hamilton, Ontario fax: +1 905 561 0757
Canada  L8E 3C3


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


Re: Vacation sieve scripts not working

2019-05-16 Thread Sylvain
Le jeu. 16 mai 2019 à 17:36, Niels Dettenbach via Info-cyrus <
info-cyrus@lists.andrew.cmu.edu> a écrit :

> ...if i remember correctly, Cyrus expects (at least in some setups)
> recipient
> addresses within SIEVE vacation scripts to "react". Could you try to set
> this
> for test?
>

You are right : the addresses parameter is mandatory.

Thanks !

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

Re: Vacation sieve scripts not working

2019-05-16 Thread Niels Dettenbach via Info-cyrus
Am Donnerstag, 16. Mai 2019, 11:49:55 CEST schrieb Sylvain:
> For example, this one will never send vacation messages to sender :
> require ["vacation"];
> vacation :days 1 :subject "OUTOFTHEOFFICE" "I AM OUT OF THE OFFICE";

...if i remember correctly, Cyrus expects (at least in some setups) recipient 
addresses within SIEVE vacation scripts to "react". Could you try to set this 
for test?


best regards,


niels.


-- 
 ---
 Niels Dettenbach
 Syndicat IT & Internet
 http://www.syndicat.com
 PGP: https://syndicat.com/pub_key.asc
 ---
 







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


Re: Vacation sieve scripts not working

2019-05-16 Thread Willem Offermans
Dear Cyrus-imap friends and Sylvain,

Without further info, I cannot tell you what is wrong or why your script is not 
working.

Is there a way to debug sieve?

I can only confirm that the following is working in my case:

vacation :days 5 :addresses [“myn...@example.com", “othern...@example2.com"] 
:subject “I'm out of office"

Maybe you need to specify addresses?, though it is not logical.


Wiel Offermans
wil...@offermans.rompen.nl




> On 16 May 2019, at 11:49, Sylvain  wrote:
> 
> Hi list,
> 
> I'm testing Cyrus 3 on the future debian 10 that will be soon released.
> 
> Vacation sieve scripts seem not to run. Other scripts do.
> 
> For example, this one will never send vacation messages to sender :
> require ["vacation"];
> vacation :days 1 :subject "OUTOFTHEOFFICE" "I AM OUT OF THE OFFICE";
> 
> But this one will reject the mail :
> require ["reject","fileinto"];
> if address :is :all "From" "f...@example.org "
> {
> reject "testing";
> }
> 
> Of course I double checked that the vacation script is activated, and I 
> change the from address at each test. I use sieveshell to put them.
> 
> Anyone can reproduce this ?
> Any idea to debug this situation?
> 
> Thanks
> 
> 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


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