Re: FWD: Confused about Deleted and Expunged

2020-01-17 Thread Adam Tauno Williams
> I found some entries like:
> [...] cyrus/imap[5918]: Expunged 1 messages from
> test.tld!user.test.spam
> What is the difference between the above entry and the below entry
> (lower and capital
> expunged)?
> [...] cyrus/cyr_expire[14039]: Expired 0 and expunged 0 out of 144674
> messages from 818
> mailboxes
> The "Expunged" message should come from some imap-client (don't know
> which)? 

Yes, an IMAP client issued an EXPUNGE.  

> The "expunged" are from the command line execution of
> "/usr/sbin/cyrus expire [...]".

This looks for Expunged messages to Expire.

It is a three phased delete; which is beautiful.

Message Deleted  (becomes candidate for expunge)
  -> Message Expunged (becomes candidate for expiration) 
  -> Message Expired

The first two steps are performed by the client/user.  The final step
is performed by the administrator, expressed via the server's policy as
defined in cyrus.conf.



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


FWD: Confused about Deleted and Expunged

2020-01-17 Thread Horst Häberlen
Hi Patrick,

> Anything in the logs showing email being expunged? Look for Expunged 
> with the capitol E.


I found some entries like:
[...] cyrus/imap[5918]: Expunged 1 messages from test.tld!user.test.spam

What is the difference between the above entry and the below entry (lower and 
capital
expunged)?

[...] cyrus/cyr_expire[14039]: Expired 0 and expunged 0 out of 144674 messages 
from 818
mailboxes

The "Expunged" message should come from some imap-client (don't know which)? The
"expunged" are from the command line execution of "/usr/sbin/cyrus expire 
[...]".

regards
Horst

-- 
Horst Häberlen
Kirchenstr. 16
74639 Zweiflingen

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

Confused about Deleted and Expunged

2020-01-17 Thread Horst Häberlen
Hi M.Menge ,

> I suspect a confusion about "marked as Deleted", Expunged and Expired
> 
> See  
> https://www.cyrusimap.org/imap/reference/faqs/o-deleted-expired-expunged-purged.html
> of more information.
> 
> E-Mails "marked as Deleted" need to be Expunged by the imap
> EXPUNGE or UID EXPUNGE command.
> 
> The cyr_expire cmd is for removing Expunged mails from the index and disk
> if  "expunge_mode: delayed" is used, which is the default since 2.5
> 
> You may want to take a look at the "/vendor/cmu/cyrus-imapd/expire"  
> mailbox annotation

My command "/usr/lib/cyrus/bin/ipurge -f -X -d 100 
user/test/s...@testdomain.tld"
gives me:

Working on user/test/s...@testdomain.tld...
Total messages   9214
Total bytes  191140555
Deleted messages 1
Deleted bytes2250912
Remaining messages   9213
Remaining bytes  19643

So i see it markin as /Deleted works. Access by imap client gives the number 
9213. But in
the filesystem there are many more files in the spam folder: 9213 which can be 
'seen' and
many more which are marked as /Deleted.

The command "/usr/sbin/cyrus expire -E 4 -D 28 -X 28" should Expunge (which is, 
what i
suppose, removing from filesystem) the /Deleted marked files.

Am i wrong?

regards
Horst


-- 
Horst Häberlen
Kirchenstr. 16
74639 Zweiflingen

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: FWD: Confused about Deleted and Expunged

2020-01-17 Thread Patrick Boutilier
Anything in the logs showing email being expunged? Look for Expunged 
with the capitol E.




On 1/17/20 10:41 AM, Horst Häberlen wrote:

hi Adam Tauno Williams,


What happens if you su to the cyrus user and try to run the command you
see in cyrus.conf ?


This makes no difference. I tried both commands as root and as cyrus. The Log 
entries were
identical:

[...] cyrus/cyr_expire[10175]: Expired 0 and expunged 0 out of 144646 messages 
from 818
mailboxes
[...] cyrus/cyr_expire[10175]: Removed 0 deleted mailboxes
[...] cyrus/cyr_expire[10175]: duplicate_prune: pruning back 4.00 days
[...] cyrus/cyr_expire[10175]: duplicate_prune: purged 0 out of 4171 entries


regards
Horst

<>
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

Confused about Deleted and Expunged

2020-01-17 Thread Horst Häberlen
> Looks to run cyr_expire as /usr/sbin/cyrus is a script.
> 
> https://www.apt-browse.org/browse/ubuntu/trusty/universe/all/cyrus-common/2.4.17+caldav~beta9-3/file/usr/sbin/cyrus


Thanks for the clarification!

-- 
Horst Häberlen
Kirchenstr. 16
74639 Zweiflingen

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

FWD: Confused about Deleted and Expunged

2020-01-17 Thread Horst Häberlen
hi Adam Tauno Williams,

> What happens if you su to the cyrus user and try to run the command you
> see in cyrus.conf ?

This makes no difference. I tried both commands as root and as cyrus. The Log 
entries were
identical:

[...] cyrus/cyr_expire[10175]: Expired 0 and expunged 0 out of 144646 messages 
from 818
mailboxes
[...] cyrus/cyr_expire[10175]: Removed 0 deleted mailboxes
[...] cyrus/cyr_expire[10175]: duplicate_prune: pruning back 4.00 days
[...] cyrus/cyr_expire[10175]: duplicate_prune: purged 0 out of 4171 entries


regards
Horst

-- 
Horst Häberlen
Kirchenstr. 16
74639 Zweiflingen

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: Confused about Deleted and Expunged

2020-01-17 Thread Michael Menge

Hi

I suspect a confusion about "marked as Deleted", Expunged and Expired

See  
https://www.cyrusimap.org/imap/reference/faqs/o-deleted-expired-expunged-purged.html

of more information.

E-Mails "marked as Deleted" need to be Expunged by the imap
EXPUNGE or UID EXPUNGE command.

The cyr_expire cmd is for removing Expunged mails from the index and disk
if  "expunge_mode: delayed" is used, which is the default since 2.5

You may want to take a look at the "/vendor/cmu/cyrus-imapd/expire"  
mailbox annotation




Quoting Adam Tauno Williams :


This command seems to work on Ubuntu 18.04. (cyrus-imapd 2.5.10-
3ubuntu1)
In /usr/sbin there is no cyr_expire but now i found a
/usr/lib/cyrus/bin/cyr_expire
The result is the same, no files were deleted, the log file entry is
the same as when i
use the "/usr/sbin/cyrus expire [..]" command
Can anybody confirm this "/usr/sbin/cyrus expire [..]" command on
Ubuntu?


What happens if you su to the cyrus user and try to run the command you
see in cyrus.conf ?

--
Adam Tauno Williams, awill...@whitemice.org
Multi-Modal Activists Against Auto Dependent Development
resisting the unAmerican socialists of the Motorist hegemony
http://www.mmaaadd.org

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





M.MengeTel.: (49) 7071/29-70316
Universität Tübingen   Fax.: (49) 7071/29-5912
Zentrum für Datenverarbeitung  mail:  
michael.me...@zdv.uni-tuebingen.de

Wächterstraße 76
72074 Tübingen


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: FWD: Confused about Deleted and Expunged

2020-01-17 Thread Adam Tauno Williams
> This command seems to work on Ubuntu 18.04. (cyrus-imapd 2.5.10-
> 3ubuntu1)
> In /usr/sbin there is no cyr_expire but now i found a
> /usr/lib/cyrus/bin/cyr_expire
> The result is the same, no files were deleted, the log file entry is
> the same as when i
> use the "/usr/sbin/cyrus expire [..]" command
> Can anybody confirm this "/usr/sbin/cyrus expire [..]" command on
> Ubuntu?

What happens if you su to the cyrus user and try to run the command you
see in cyrus.conf ?

-- 
Adam Tauno Williams, awill...@whitemice.org
Multi-Modal Activists Against Auto Dependent Development
resisting the unAmerican socialists of the Motorist hegemony
http://www.mmaaadd.org 

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


FWD: Confused about Deleted and Expunged

2020-01-17 Thread Horst Häberlen
Hi Nikos,

> does it really say "/usr/sbin/cyrus expire" in your cyrus.conf? That
> can't work. The command is named cyr_expire on my system, and it
> definitely does not have a space in its name.


YES there is no space in the name, it seems to be a parameter for cyrus.

This command seems to work on Ubuntu 18.04. (cyrus-imapd 2.5.10-3ubuntu1)

In /usr/sbin there is no cyr_expire but now i found a 
/usr/lib/cyrus/bin/cyr_expire

The result is the same, no files were deleted, the log file entry is the same 
as when i
use the "/usr/sbin/cyrus expire [..]" command

Can anybody confirm this "/usr/sbin/cyrus expire [..]" command on Ubuntu?

Regards
Horst



-- 
Horst Häberlen
Kirchenstr. 16
74639 Zweiflingen

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: Confused about Deleted and Expunged

2020-01-17 Thread Patrick Boutilier

Looks to run cyr_expire as /usr/sbin/cyrus is a script.

https://www.apt-browse.org/browse/ubuntu/trusty/universe/all/cyrus-common/2.4.17+caldav~beta9-3/file/usr/sbin/cyrus



On 1/17/20 8:11 AM, Nikos Gatsis - Qbit wrote:

delprune  cmd="cyr_expire -E 3" at=0400

Οn centos 7:

Version: 2.4.17

Release: 15.el7



On 17/1/2020 12:11 μ.μ., Horst Häberlen wrote:

Hi Sebastian Hagedorn ,

i have no idea how follow-up works in this list, i hope this mail goes to the 
right place.


does it really say "/usr/sbin/cyrus expire" in your cyrus.conf? That
can't work. The command is named cyr_expire on my system, and it
definitely does not have a space in its name.

Yes, the command is correct. On Ubuntu 18.04 there is no cyr_expire and the 
entry
"/usr/sbin/cyrus expire" is in cyrus.conf by default.

In the log files the results are printed ".. localhost cyrus/cyr_expire[14320]: 
Expired 0
and expunged 0 out of 143844 messages from 818 mailboxes"

regards
Horst



--
Untitled Document

*Γατσής Νίκος - Gatsis Nikos*
Web developer
tel.: 210.8256721 - 210.8256712
email: ngat...@qbit.gr
http://www.qbit.gr


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

Re: Confused about Deleted and Expunged

2020-01-17 Thread Nikos Gatsis - Qbit
Title: Untitled Document

  
  
delprune  cmd="cyr_expire -E 3" at=0400
Οn centos 7:
 Version: 2.4.17

  Release: 15.el7

  

  
On 17/1/2020 12:11 μ.μ., Horst Häberlen
  wrote:


  Hi Sebastian Hagedorn ,

i have no idea how follow-up works in this list, i hope this mail goes to the right place.


  
does it really say "/usr/sbin/cyrus expire" in your cyrus.conf? That
can't work. The command is named cyr_expire on my system, and it
definitely does not have a space in its name.

  
  
Yes, the command is correct. On Ubuntu 18.04 there is no cyr_expire and the entry
"/usr/sbin/cyrus expire" is in cyrus.conf by default.

In the log files the results are printed ".. localhost cyrus/cyr_expire[14320]: Expired 0
and expunged 0 out of 143844 messages from 818 mailboxes"

regards
Horst




-- 
  
  
  
  Γατσής
  Νίκος - Gatsis Nikos
Web developer
tel.: 210.8256721 - 210.8256712
email: ngat...@qbit.gr
http://www.qbit.gr 
  


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

Confused about Deleted and Expunged

2020-01-17 Thread Horst Häberlen
Hi Sebastian Hagedorn ,

i have no idea how follow-up works in this list, i hope this mail goes to the 
right place.

> does it really say "/usr/sbin/cyrus expire" in your cyrus.conf? That
> can't work. The command is named cyr_expire on my system, and it
> definitely does not have a space in its name.

Yes, the command is correct. On Ubuntu 18.04 there is no cyr_expire and the 
entry
"/usr/sbin/cyrus expire" is in cyrus.conf by default.

In the log files the results are printed ".. localhost cyrus/cyr_expire[14320]: 
Expired 0
and expunged 0 out of 143844 messages from 818 mailboxes"

regards
Horst


-- 
Horst Häberlen
Kirchenstr. 16
74639 Zweiflingen

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: Confused about Deleted and Expunged

2020-01-17 Thread Sebastian Hagedorn
Hi,

Am 17.01.20 um 09:52 Uhr schrieb Horst Häberlen:
> my Mail Server stores spam mail via spamassassin in users 
> (user/t...@testdomain.tld) spam
> mailboxes (user/test/s...@testdomain.tld)
> 
> For removing too old spam mails, i do use a script on all mailboxes which 
> marks the spam
> mailboxes as deleted:
> /usr/lib/cyrus/bin/ipurge -f -X -d 100 user/test/s...@testdomain.tld
> 
> This works perfect, the user can see spam mails for 100 days.
> 
> I assumed the following cyrus.conf event does Expunge the deleted mails from 
> hdd:
> [...]
> 
> EVENTS {
>expungeprune   cmd="/usr/sbin/cyrus expire -E 4 -D 28 -X 28" at=0445
> 
> [...]
> 
> But this does not work.
> 
> How can i 'really' delete from hdd??

does it really say "/usr/sbin/cyrus expire" in your cyrus.conf? That
can't work. The command is named cyr_expire on my system, and it
definitely does not have a space in its name.
<>

smime.p7s
Description: S/MIME Cryptographic Signature

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

Confused about Deleted and Expunged

2020-01-17 Thread Horst Häberlen
Hi,

my Mail Server stores spam mail via spamassassin in users 
(user/t...@testdomain.tld) spam
mailboxes (user/test/s...@testdomain.tld)

For removing too old spam mails, i do use a script on all mailboxes which marks 
the spam
mailboxes as deleted:
/usr/lib/cyrus/bin/ipurge -f -X -d 100 user/test/s...@testdomain.tld

This works perfect, the user can see spam mails for 100 days.

I assumed the following cyrus.conf event does Expunge the deleted mails from 
hdd:
[...]

EVENTS {
   expungeprune   cmd="/usr/sbin/cyrus expire -E 4 -D 28 -X 28" at=0445

[...]

But this does not work.

How can i 'really' delete from hdd??

thanks for your help
Horst

-- 
Horst Häberlen
Kirchenstr. 16
74639 Zweiflingen

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