Re: expunging deleted messages?

2007-06-29 Thread Dmitriy Kirhlarov
mikee wrote:
 [EMAIL PROTECTED] ~]$ time cyr_expire -v -E 3 -X 3
 users snipped
 expiring messages in user.mikee.backup older than 2 days
 expiring messages in user.mikee.spam older than 5 days
 users snipped
 
 expunged 5405 out of 21470 messages from 21 mailboxes
^^^
It's work.

 [EMAIL PROTECTED] ~]$ cyrdump -v user.mikee.hobbit | grep 'flag' | less
 gs
   flag name=\Answered user=*/flag
   flag name=\Deleted user=*119862 119863 119864 119865 119866 119867 
 119868 119869 119870 119871 119872 119
^^^
This messages not deleted. Just marked as \Deleted.
see imapd.conf(5) about expunge_mode option

WBR.
Dmitriy

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: expunging deleted messages?

2007-06-29 Thread mikee
On Fri, 29 Jun 2007, Dmitriy Kirhlarov might have said:

 mikee wrote:
  [EMAIL PROTECTED] ~]$ time cyr_expire -v -E 3 -X 3
  users snipped
  expiring messages in user.mikee.backup older than 2 days
  expiring messages in user.mikee.spam older than 5 days
  users snipped
  
  expunged 5405 out of 21470 messages from 21 mailboxes
 ^^^
 It's work.
 
  [EMAIL PROTECTED] ~]$ cyrdump -v user.mikee.hobbit | grep 'flag' | less
  gs
flag name=\Answered user=*/flag
flag name=\Deleted user=*119862 119863 119864 119865 119866 119867 
  119868 119869 119870 119871 119872 119
 ^^^
 This messages not deleted. Just marked as \Deleted.
 see imapd.conf(5) about expunge_mode option

Is there a command to go ahead and purge any messages that are
flagged as \Deleted and the \Deleted flag was set X days ago?

What I'm trying to accomplish is the automatic removal of any
messages my users have 'deleted' and not yet purged.

Mike

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: expunging deleted messages?

2007-06-29 Thread mikee
On Fri, 29 Jun 2007, Dmitriy Kirhlarov might have said:

 mikee wrote:
  [EMAIL PROTECTED] ~]$ time cyr_expire -v -E 3 -X 3
  users snipped
  expiring messages in user.mikee.backup older than 2 days
  expiring messages in user.mikee.spam older than 5 days
  users snipped
  
  expunged 5405 out of 21470 messages from 21 mailboxes
 ^^^
 It's work.
 
  [EMAIL PROTECTED] ~]$ cyrdump -v user.mikee.hobbit | grep 'flag' | less
  gs
flag name=\Answered user=*/flag
flag name=\Deleted user=*119862 119863 119864 119865 119866 119867 
  119868 119869 119870 119871 119872 119
 ^^^
 This messages not deleted. Just marked as \Deleted.
 see imapd.conf(5) about expunge_mode option

I'll look at that setting, thanks.

Mike

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: expunging deleted messages?

2007-06-29 Thread Dmitriy Kirhlarov
mikee wrote:
 
 Is there a command to go ahead and purge any messages that are
 flagged as \Deleted and the \Deleted flag was set X days ago?
 
 What I'm trying to accomplish is the automatic removal of any
 messages my users have 'deleted' and not yet purged.

No. You need some external tool for making this. You can use 
proxyservers option for proxy account.

May be, you can use
ipurge -d 3 -i -s mailboxpattern
but, it can be dangerously.

Also, see:
http://osdir.com/ml/mail.imap.cyrus/2003-03/msg00167.html

And try to ask in [EMAIL PROTECTED] list for enabling 
this functionality in next releases.

WBR.
Dmitriy

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: expunging deleted messages?

2007-06-29 Thread mikee
On Fri, 29 Jun 2007, Simon Matter might have said:

  On Thu, 28 Jun 2007, Dmitriy Kirhlarov might have said:
 
  mikee wrote:
   And your messages have \Deleted flag?
  
   Something interesting in log files?
  
   Nothing that I find in the log files, just messages not getting
  deleted.
   I have a folder in Outlook that has the same number of messages each
  day.
 
  What you get, if run this manually:
  sudo su - cyrus
  bin/cyr_expire -v -E 3 -X 3
  bin/cyrdump -v $your_mailbox | grep 'flag'
  ?
 
  Also, try to increase verbosity of log files (syslog.conf).
 
  I can't change anything about the daemons yet, this is a production box.
 
  [EMAIL PROTECTED] ~]$ time cyr_expire -v -E 3 -X 3
 
 How I understand it, cyr_expire -X 3 physically removes mail from the
 server which already have been deleted and expunged by the mail client 3
 or more days ago. It does not expunge for you, you have to do it with the
 IMAP client. It simply makes it possible to unexpunge mails on the server
 which already have been completely removed from the clients side of view.
 
 Simon

I think I want the other half of the operation. When my users (and me in case
I forget to expunge) delete messages (marking the messages with the \Delete
flag), I want something that will run through all the mailboxes looking for
messages that are \Delete'd and over N days old. When this commands finds
a message matching the two conditions I want that message physically
purged from the system.

Mike

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: expunging deleted messages?

2007-06-29 Thread Simon Matter
 On Thu, 28 Jun 2007, Dmitriy Kirhlarov might have said:

 mikee wrote:
  And your messages have \Deleted flag?
 
  Something interesting in log files?
 
  Nothing that I find in the log files, just messages not getting
 deleted.
  I have a folder in Outlook that has the same number of messages each
 day.

 What you get, if run this manually:
 sudo su - cyrus
 bin/cyr_expire -v -E 3 -X 3
 bin/cyrdump -v $your_mailbox | grep 'flag'
 ?

 Also, try to increase verbosity of log files (syslog.conf).

 I can't change anything about the daemons yet, this is a production box.

 [EMAIL PROTECTED] ~]$ time cyr_expire -v -E 3 -X 3

How I understand it, cyr_expire -X 3 physically removes mail from the
server which already have been deleted and expunged by the mail client 3
or more days ago. It does not expunge for you, you have to do it with the
IMAP client. It simply makes it possible to unexpunge mails on the server
which already have been completely removed from the clients side of view.

Simon

 users snipped
 expiring messages in user.mikee.backup older than 2 days
 expiring messages in user.mikee.spam older than 5 days
 users snipped

 expunged 5405 out of 21470 messages from 21 mailboxes

 real4m37.700s
 user0m0.132s
 sys 0m2.652s

 [EMAIL PROTECTED] ~]$ cyrdump -v user.mikee.hobbit | grep 'flag' | less
 gs
   flag name=\Answered user=*/flag
   flag name=\Deleted user=*119862 119863 119864 119865 119866 119867
 119868 119869 119870 119871 119872 119
 873 119874 119875 119876 119877 119878 119879 119880 119881 119882 119883
 119884 119885 119886 119887 119888 1198
 89 119890 119891 119892 119893 119894 119895 119896 119897 119898 119899
 119900 119901 119902 119903 119904 11990
 5 119906 119907 119908 119909 119910 119911 119912 119913 119914 119915
 119916 119917 119918 119919 119920 119921
  119922 119923 119924 119925 119926 119927 119928 119929 119930 119931
 119932 119933 119934 119935 119936 119937
 119938 119939 119940 119941 119942 119943 119944 119945 119946 119947
 119948 119949 119950 119951 119952 119953 1
 19954 119955 119956 119957 119958 119959 119960 119961 119962 119963
 119964 119965 119966 119967 119968 119969 11
 9970 119971 119972 119973 119974 119975 119976 119977 119978 119979 119980
 119981 119982 119983 119984 119985 119
 986 119987 119988 119989 119990 119991 119992 119993 119994 119995 119996
 119997 119998 11 12 120001 1200
 02 120003 120004 120005 120006 120007 120008 120009 120010 120011 120012
 120013 120014 120015 120016 120017 12001
 8 120019 120020 120021 120022 120023 120024 120025 120026 120027 120028
 120029 120030 120031 120032 120033 120034

 lots of numbers snipped

 122763 122764 122765 122766 122767 122768 122769 122770 122771 122772
 122773 122774 122775 122776 122777 122778 1
 22779 122780 122781 122782 122783 122784 122785 122786 122787 122788
 122789 122790 122791 122792 122793 122794 12
 2795 122796 122797 122798 122799 122800 122801 122802 122803 122804 122805
 122806 122807 122808 122809 122810 122
 811 122812 122813 122814 122815 122816 122817 122818 122819 122820 122821
 122822 122823 122824 122825 122826 1228
 27 122828 122829 122830 122831 122832 122833 122834 122835 122836 122837
 122838 122839 122840 122841 122842 12284
 3 122844 122845 122846 122847 122848 122849 122850 122851 122852 122853
 122854 122855 122856 122857 122858 122859
  122860 122861 122862 122863 122864 122865 122866 122867 122868 122869
 122870 122871 122872 122873 122874 122875
 122876 122877 122878 /flag
   flag name=\Draft user=*/flag
   flag name=\Flagged user=*/flag
 (END)
 [EMAIL PROTECTED] ~]
 
 Cyrus Home Page: http://cyrusimap.web.cmu.edu/
 Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
 List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


expunging deleted messages?

2007-06-28 Thread mikee
Reading the man page for cyr_expire it seems like this command
is designed to expunge messages that are deleted over -E DAYS
ago. I have a folder in my cyrus-imapd account that I have
a few thousands of messages that do not seem to go away (each
morning I look at the oldest message, and the old message
does not go away).

I do have a job for cyr_expire in the /etc/cyrus.conf file.

Fedora Core 5
Cyrus-Imapd 2.3.1

Mike

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: expunging deleted messages?

2007-06-28 Thread Dmitriy Kirhlarov
mikee wrote:
 Reading the man page for cyr_expire it seems like this command
 is designed to expunge messages that are deleted over -E DAYS

-X DAYS

 ago. I have a folder in my cyrus-imapd account that I have
 a few thousands of messages that do not seem to go away (each
 morning I look at the oldest message, and the old message
 does not go away).

Is this messages are deleted?
Possible, you need

ipurge -f -d DAYS

 I do have a job for cyr_expire in the /etc/cyrus.conf file.

Please, show your string.


WBR
Dmitriy

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: expunging deleted messages?

2007-06-28 Thread mikee
On Thu, 28 Jun 2007, Dmitriy Kirhlarov might have said:

 mikee wrote:
  Reading the man page for cyr_expire it seems like this command
  is designed to expunge messages that are deleted over -E DAYS
 
 -X DAYS
 
  ago. I have a folder in my cyrus-imapd account that I have
  a few thousands of messages that do not seem to go away (each
  morning I look at the oldest message, and the old message
  does not go away).
 
 Is this messages are deleted?
 Possible, you need
 
 ipurge -f -d DAYS
 
  I do have a job for cyr_expire in the /etc/cyrus.conf file.
 
 Please, show your string.

In my $HOST:/etc/cyrus.conf I have:

EVENTS {
  # this is required
  checkpointcmd=ctl_cyrusdb -c period=30

  # this is only necessary if using duplicate delivery suppression,
  # Sieve or NNTP
  delprune  cmd=cyr_expire -E 3 -X 0 at=0400

  # this is only necessary if caching TLS sessions
  tlsprune  cmd=tls_prune at=0400
}

So each morning at 4:00 AM local time the cyrus expire
should run. My concern is ipurge removing *too many*
messages, etc.

Mike

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: expunging deleted messages?

2007-06-28 Thread Dmitriy Kirhlarov
mikee wrote:
 
   # this is only necessary if using duplicate delivery suppression,
   # Sieve or NNTP
   delprune  cmd=cyr_expire -E 3 -X 0 at=0400

Looks correct.
And your messages have \Deleted flag?

Something interesting in log files?

WBR.
Dmitriy

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: expunging deleted messages?

2007-06-28 Thread mikee
On Thu, 28 Jun 2007, Dmitriy Kirhlarov might have said:

 mikee wrote:
  
# this is only necessary if using duplicate delivery suppression,
# Sieve or NNTP
delprune  cmd=cyr_expire -E 3 -X 0 at=0400
 
 Looks correct.
 And your messages have \Deleted flag?
 
 Something interesting in log files?

Nothing that I find in the log files, just messages not getting deleted.
I have a folder in Outlook that has the same number of messages each day.

Mike

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: expunging deleted messages?

2007-06-28 Thread Dmitriy Kirhlarov
mikee wrote:
 And your messages have \Deleted flag?

 Something interesting in log files?
 
 Nothing that I find in the log files, just messages not getting deleted.
 I have a folder in Outlook that has the same number of messages each day.

What you get, if run this manually:
sudo su - cyrus
bin/cyr_expire -v -E 3 -X 3
bin/cyrdump -v $your_mailbox | grep 'flag'
?

Also, try to increase verbosity of log files (syslog.conf).

WBR.
Dmitriy

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: expunging deleted messages?

2007-06-28 Thread mikee
On Thu, 28 Jun 2007, Dmitriy Kirhlarov might have said:

 mikee wrote:
  And your messages have \Deleted flag?
 
  Something interesting in log files?
  
  Nothing that I find in the log files, just messages not getting deleted.
  I have a folder in Outlook that has the same number of messages each day.
 
 What you get, if run this manually:
 sudo su - cyrus
 bin/cyr_expire -v -E 3 -X 3
 bin/cyrdump -v $your_mailbox | grep 'flag'
 ?
 
 Also, try to increase verbosity of log files (syslog.conf).

I can't change anything about the daemons yet, this is a production box.

[EMAIL PROTECTED] ~]$ time cyr_expire -v -E 3 -X 3
users snipped
expiring messages in user.mikee.backup older than 2 days
expiring messages in user.mikee.spam older than 5 days
users snipped

expunged 5405 out of 21470 messages from 21 mailboxes

real4m37.700s
user0m0.132s
sys 0m2.652s

[EMAIL PROTECTED] ~]$ cyrdump -v user.mikee.hobbit | grep 'flag' | less
gs
  flag name=\Answered user=*/flag
  flag name=\Deleted user=*119862 119863 119864 119865 119866 119867 
119868 119869 119870 119871 119872 119
873 119874 119875 119876 119877 119878 119879 119880 119881 119882 119883 
119884 119885 119886 119887 119888 1198
89 119890 119891 119892 119893 119894 119895 119896 119897 119898 119899 119900 
119901 119902 119903 119904 11990
5 119906 119907 119908 119909 119910 119911 119912 119913 119914 119915 119916 
119917 119918 119919 119920 119921
 119922 119923 119924 119925 119926 119927 119928 119929 119930 119931 119932 
119933 119934 119935 119936 119937 
119938 119939 119940 119941 119942 119943 119944 119945 119946 119947 119948 
119949 119950 119951 119952 119953 1
19954 119955 119956 119957 119958 119959 119960 119961 119962 119963 119964 
119965 119966 119967 119968 119969 11
9970 119971 119972 119973 119974 119975 119976 119977 119978 119979 119980 
119981 119982 119983 119984 119985 119
986 119987 119988 119989 119990 119991 119992 119993 119994 119995 119996 
119997 119998 11 12 120001 1200
02 120003 120004 120005 120006 120007 120008 120009 120010 120011 120012 120013 
120014 120015 120016 120017 12001
8 120019 120020 120021 120022 120023 120024 120025 120026 120027 120028 120029 
120030 120031 120032 120033 120034

lots of numbers snipped

122763 122764 122765 122766 122767 122768 122769 122770 122771 122772 122773 
122774 122775 122776 122777 122778 1
22779 122780 122781 122782 122783 122784 122785 122786 122787 122788 122789 
122790 122791 122792 122793 122794 12
2795 122796 122797 122798 122799 122800 122801 122802 122803 122804 122805 
122806 122807 122808 122809 122810 122
811 122812 122813 122814 122815 122816 122817 122818 122819 122820 122821 
122822 122823 122824 122825 122826 1228
27 122828 122829 122830 122831 122832 122833 122834 122835 122836 122837 122838 
122839 122840 122841 122842 12284
3 122844 122845 122846 122847 122848 122849 122850 122851 122852 122853 122854 
122855 122856 122857 122858 122859
 122860 122861 122862 122863 122864 122865 122866 122867 122868 122869 122870 
122871 122872 122873 122874 122875 
122876 122877 122878 /flag
  flag name=\Draft user=*/flag
  flag name=\Flagged user=*/flag
(END)
[EMAIL PROTECTED] ~]

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html