expunging deleted messages?

Simon Matter simon.matter at invoca.ch
Fri Jun 29 01:26:43 EDT 2007


> 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.
>
> [cyrus@$HOST ~]$ 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
>
> real    4m37.700s
> user    0m0.132s
> sys     0m2.652s
>
> [cyrus@$HOST ~]$ 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 119999 120000 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)
> [cyrus@$HOST ~]
> ----
> 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
>


More information about the Info-cyrus mailing list