Re: Deleting messages

2010-04-05 Thread Nybbles2Byte
You learn something new every day!

Sunday, April 4, 2010, 8:03:14 AM, you wrote:

> On Fri, 2010-04-02 at 21:00 -0400, Joseph Brennan wrote:
>> --On Friday, April 2, 2010 5:30 PM -0700 Nybbles2Byte 
>>  wrote:
>> > Okay, I am sure this is stupid question but how do you really delete
>> > messages. When I delete messages in my email client and then log in to
>> > see the mailbox through a web program I see that the message are marked
>> > as deleted but still there.
>> That's what "delete" does.  It marks the messages deleted.  You can still
>> undelete them, in case of error.
>> Then the command "expunge" removes all messages marked deleted.  For no
>> known reason some clients call this "purge" instead of "expunge".

> For the record: recent versions of Cyrus also support "delayed expunge",
> where even messages that have been 'expunged' can be recovered for a
> time without having to resort to extra-ordinary means [restore from
> backup & reconstruct mailbox].  This feature has to be specifically
> activated.

> Awesome feature.   
>  

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



-- 
 Nybbles2Bytemailto:nybbles2b...@gmail.com
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: Deleting messages

2010-04-04 Thread Adam Tauno Williams
On Fri, 2010-04-02 at 21:00 -0400, Joseph Brennan wrote:
> --On Friday, April 2, 2010 5:30 PM -0700 Nybbles2Byte 
>  wrote:
> > Okay, I am sure this is stupid question but how do you really delete
> > messages. When I delete messages in my email client and then log in to
> > see the mailbox through a web program I see that the message are marked
> > as deleted but still there.
> That's what "delete" does.  It marks the messages deleted.  You can still
> undelete them, in case of error.
> Then the command "expunge" removes all messages marked deleted.  For no
> known reason some clients call this "purge" instead of "expunge".

For the record: recent versions of Cyrus also support "delayed expunge",
where even messages that have been 'expunged' can be recovered for a
time without having to resort to extra-ordinary means [restore from
backup & reconstruct mailbox].  This feature has to be specifically
activated.

Awesome feature.   
 


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: Deleting messages

2010-04-04 Thread Adam Tauno Williams
On Sat, 2010-04-03 at 13:24 -0400, Joseph Brennan wrote:
> Nybbles2Byte  wrote:
> > Expunge sounds more like a legal term
> > than anything to do with software and I'm surprised that it became an
> > official
> > command as programmers would far more likely think of purge first.
> > Perhaps a non-programmer came up with that one.
> "Expunge" comes from the MM client developed in the 1970s.  One of the
> developers, Mark Crispin, designed the IMAP protocol in 1986, and he
> carried over the term Expunge as the command to remove messages marked
> deleted.
> 
> I can't think of a good reason not to use the term that the protocol
> uses, since it is a word people know and using it would make it simpler
> to discuss commands applicable to any IMAP client.
> I first saw "purge" used in the mid 1990s.  I don't know whether it
> first appeared in the Exchange Client (the interoffice memo and
> scheduling client that became Outlook) or Netscape Navigator (one
> the first GUI IMAP clients).  It was an unfamiliar term and I did
> not understand why it was being used.  None of the old email clients
> used it, nor did the POP or IMAP protocols.

+1; "Expunge" is the correct term.
-- 
Adam Tauno Williams  LPIC-1, Novell CLA

OpenGroupware, Cyrus IMAPd, Postfix, OpenLDAP, Samba


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: Deleting messages

2010-04-03 Thread Joseph Brennan
Nybbles2Byte  wrote:

> Expunge sounds more like a legal term
> than anything to do with software and I'm surprised that it became an
> official
> command as programmers would far more likely think of purge first.
> Perhaps a
> non-programmer came up with that one.


"Expunge" comes from the MM client developed in the 1970s.  One of the
developers, Mark Crispin, designed the IMAP protocol in 1986, and he
carried over the term Expunge as the command to remove messages marked
deleted.



I can't think of a good reason not to use the term that the protocol
uses, since it is a word people know and using it would make it simpler
to discuss commands applicable to any IMAP client.

I first saw "purge" used in the mid 1990s.  I don't know whether it
first appeared in the Exchange Client (the interoffice memo and
scheduling client that became Outlook) or Netscape Navigator (one
the first GUI IMAP clients).  It was an unfamiliar term and I did
not understand why it was being used.  None of the old email clients
used it, nor did the POP or IMAP protocols.


Joseph Brennan
Columbia University Information Technology




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: Deleting messages

2010-04-02 Thread Nybbles2Byte
Hello Joseph,

You nailed it. Mine uses Purge. Purge is a common programming term so you
can bet that the reason they use that word is it's coming from the 
programmers writing the email client. Expunge sounds more like a legal term 
than anything to do with software and I'm surprised that it became an official 
command as programmers would far more likely think of purge first. Perhaps a 
non-programmer came up with that one.

Friday, April 2, 2010, 6:00:15 PM, you wrote:



> --On Friday, April 2, 2010 5:30 PM -0700 Nybbles2Byte 
>  wrote:

>> Okay, I am sure this is stupid question but how do you really delete
>> messages. When I delete messages in my email client and then log in to
>> see the mailbox through a web program I see that the message are marked
>> as deleted but still there.


> That's what "delete" does.  It marks the messages deleted.  You can still
> undelete them, in case of error.

> Then the command "expunge" removes all messages marked deleted.  For no
> known reason some clients call this "purge" instead of "expunge".

> Joseph Brennan
> Columbia University Information Technology


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



-- 
 Nybbles2Bytemailto:nybbles2b...@gmail.com
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: Deleting messages

2010-04-02 Thread Reinaldo de Carvalho
On Fri, Apr 2, 2010 at 9:30 PM, Nybbles2Byte  wrote:
> Hello,
>
> Okay, I am sure this is stupid question but how do you really delete
> messages. When I delete messages in my email client and then log in to see
> the mailbox through a web program I see that the message are marked as
> deleted but still there.
>

To remove a message the email client should use "delete" and "expunge".

-- 
Reinaldo de Carvalho
http://korreio.sf.net
http://python-cyrus.sf.net

"Don't try to adapt the software to the way you work, but rather
yourself to the way the software works" (myself)

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: Deleting messages

2010-04-02 Thread Joseph Brennan


--On Friday, April 2, 2010 5:30 PM -0700 Nybbles2Byte 
 wrote:

> Okay, I am sure this is stupid question but how do you really delete
> messages. When I delete messages in my email client and then log in to
> see the mailbox through a web program I see that the message are marked
> as deleted but still there.


That's what "delete" does.  It marks the messages deleted.  You can still
undelete them, in case of error.

Then the command "expunge" removes all messages marked deleted.  For no
known reason some clients call this "purge" instead of "expunge".

Joseph Brennan
Columbia University Information Technology



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


Deleting messages

2010-04-02 Thread Nybbles2Byte
Hello,

Okay, I am sure this is stupid question but how do you really delete messages. 
When I delete messages in my email client and then log in to see the mailbox 
through a web program I see that the message are marked as deleted but still 
there.

-- 
Nybbles2Byte  mailto:nybbles2b...@gmail.com
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: Deleting messages "marked for deletion" older than X days

2008-08-19 Thread Gerard Beekmans

Hi Bron,

Yes, it sounds like that's what I'm looking for: running expunge 
periodically.


Now there's one slight problem here: I can't just run expunge as it is. 
I have users who periodically need to undelete messages. I'd like 
expunge to only act on messages older than X days, giving people the 
chance to undelete messages within that time period.


I'll check out some IMAP libraries. Perhaps one offers to obtain a list 
of all messages with the \Deleted flag, then check its received time 
stamp and do the math on that. If older than X, delete/expunge/whatever 
it, else skip it.



Gerard Beekmans
IT Manager
Achilles Media
Tel: 403-678-1216 ext. 102
Email: [EMAIL PROTECTED]




Bron Gondwana wrote:

On Mon, Aug 18, 2008 at 05:09:53PM -0500, Kenneth Marshall wrote:
  

In the manual page, the definition of the '-X' option seems to
do what you want:

  -X expunge-days
  Expunge  previously deleted messages older than expunge-days
  (when using the "delayed" expunge mode).  The default is
  0 (zero) days, which will expunge all previously deleted messages.



Messages go through the following life cycle in "traditional IMAP",
example:

Created (\Recent)- LMTP DELIVER (UID = 9)
No flags ()  - A001 SELECT INBOX (clears the \Recent)
Viewed (\Seen)   - A002 UID FETCH 9 RFC822
Deleted (\Deleted \Seen) - A003 UID STORE 9 +FLAGS (\Deleted)
Purged  (no message) - A004 EXPUNGE

Now, what the -X option actually does is turns this into:

Created (\Recent)- LMTP DELIVER (UID = 9)
No flags ()  - A001 SELECT INBOX (clears the \Recent)
Viewed (\Seen)   - A002 UID FETCH 9 RFC822
Deleted (\Deleted \Seen) - A003 UID STORE 9 +FLAGS (\Deleted)
Purged  (no index record)- A004 EXPUNGE

but the file is still on disk, just the index record has been moved
from the file cyrus.index to a new file cyrus.expunge.  A week later:

Cleaned up (no file) - cyr_expire -X 7

The cyrus.expunge record and the actual spool file itself get deleted at
this point.  Until then you can un-delete the record using the
"unexpunge" command in cyrus 2.3.X.

---

I think what the original requestor was actually looking for is a tool
that can run the "EXPUNGE" phase on a regular basis.  As far as I'm
aware there's nothing that ships with Cyrus that can do it.  If I was
writing something for the job I would make an admin IMAP connection to
Cyrus and just cycle through the folders calling 'EXPUNGE' on them.
Cheap and nasty, but it would do the trick.  You can do this in any
language with a TCP library, though something with an IMAP interface
library would be nicer.  I'd use Perl and Mail::IMAPTalk, but that's
just because that's what I already use!

Bron.
  

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: Deleting messages "marked for deletion" older than X days

2008-08-19 Thread Gerard Beekmans
Wesley,

I looked at ipurge but I find it also happily deletes messages that 
weren't marked for deletion. It appears to delete everything older than 
X days, regardless of that \Deleted flag mentioned in another reply.


Gerard Beekmans
IT Manager
Achilles Media
Tel: 403-678-1216 ext. 102
Email: [EMAIL PROTECTED]




Wesley Craig wrote:
> cyr_expire -D and -X deal with delayed delete & expunge, 
> respectively.  Neither will address message that the MUA hasn't 
> already deleted (in the case of folders) or expunged (in the case of 
> messages).
>
> The tool that is closest to the desired functionality is ipurge.  In 
> order for ipurge to do what you're asking, Gerard, it would have to 
> examine whatever the "deleted" flag is for Outlook -- it varies by 
> MUA, some set a flag, some move messages to a trash folder, etc.
>
> :wes
>
> On 18 Aug 2008, at 18:09, Kenneth Marshall wrote:
>> In the manual page, the definition of the '-X' option seems to
>> do what you want:
>>
>>   -X expunge-days
>>   Expunge  previously deleted messages older than 
>> expunge-days
>>   (when using the "delayed" expunge mode).  The default is
>>   0 (zero) days, which will expunge all previously 
>> deleted messages.
>>
 On Mon, Aug 18, 2008 at 03:35:20PM -0600, Gerard Beekmans wrote:
> I am looking for a way to run a daily script on the Cyrus IMAP server
> that processes every user's mail folders and deletes every message
> marked for deletion older than X days.
>
> I realize the proper way to do this is client-side and have the 
> client
> program purge/expunge the mailboxes periodically in some fashion.
>
> Unfortunately in the corporate world there are many clients who still
> use old versions of Outlook that only marks a message for deletion 
> and
> will not automatically purge the folder.
>
> To force users to manually purge every single folder they have, one
> folder at a time as some versions of Outlook can't do this 
> recursively,
> is not a feasible option. Users just stopped doing this because it
> becomes too time consuming a task.
>
> So I'm looking for a server-side solution that analyzes every mail
> folder on the system, finds marked messages older than X days and
> purges/deletes them on the client's behalf.
>
> Some pointers are appreciated. I can write the scripts (shell, perl,
> whatever) myself if need be, just need to know how to start going 
> about
> obtaining such a specific list of messages.

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: Deleting messages "marked for deletion" older than X days

2008-08-19 Thread Adam Tauno Williams
On Tue, 2008-08-19 at 10:05 +1000, Bron Gondwana wrote:
> On Mon, Aug 18, 2008 at 05:09:53PM -0500, Kenneth Marshall wrote:
> > In the manual page, the definition of the '-X' option seems to
> > do what you want:
> > 
> >   -X expunge-days
> >   Expunge  previously deleted messages older than expunge-days
> >   (when using the "delayed" expunge mode).  The default is
> >   0 (zero) days, which will expunge all previously deleted 
> > messages.
> Now, what the -X option actually does is turns this into:
> but the file is still on disk, just the index record has been moved
> from the file cyrus.index to a new file cyrus.expunge.  A week later:
> Cleaned up (no file) - cyr_expire -X 7
> The cyrus.expunge record and the actual spool file itself get deleted at
> this point.  Until then you can un-delete the record using the
> "unexpunge" command in cyrus 2.3.X.

I'm working on data-retention for my employer and I was wondering about
this.  The wording is a bit vague in the manual page (we are now using
deleted to mean multiple things...).   I have assumed that "-X 7" means
purge-the-message-seven-days-AFTER-IT-WAS-"EXPUNGED".  Is this correct?
I believe the manual page could also be read to mean
purge-the-message-AFTER-IT-WAS-"EXPUNGED"-AND-IS-OLDER-THAN-SEVEN-DAYS.
"OLDER-THAN-SEVEN-DAYS" meaning it was received more than seven days
ago [equivalent to "ipurge -d 7 -X"].  

> I think what the original requestor was actually looking for is a tool
> that can run the "EXPUNGE" phase on a regular basis.  As far as I'm
> aware there's nothing that ships with Cyrus that can do it.  If I was
> writing something for the job I would make an admin IMAP connection to
> Cyrus and just cycle through the folders calling 'EXPUNGE' on them.
> Cheap and nasty, but it would do the trick.  You can do this in any
> language with a TCP library, though something with an IMAP interface
> library would be nicer.  I'd use Perl and Mail::IMAPTalk, but that's
> just because that's what I already use!

I'd do it in python. :)  I've done some similar things for walking the
entire mailstore and building statistics, etc...  but it is REALLY slow!
A server side API for making tools like cyr_expire would be really nice.


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: Deleting messages "marked for deletion" older than X days

2008-08-18 Thread Bron Gondwana
On Mon, Aug 18, 2008 at 05:09:53PM -0500, Kenneth Marshall wrote:
> In the manual page, the definition of the '-X' option seems to
> do what you want:
> 
>   -X expunge-days
>   Expunge  previously deleted messages older than expunge-days
>   (when using the "delayed" expunge mode).  The default is
>   0 (zero) days, which will expunge all previously deleted 
> messages.

Messages go through the following life cycle in "traditional IMAP",
example:

Created (\Recent)- LMTP DELIVER (UID = 9)
No flags ()  - A001 SELECT INBOX (clears the \Recent)
Viewed (\Seen)   - A002 UID FETCH 9 RFC822
Deleted (\Deleted \Seen) - A003 UID STORE 9 +FLAGS (\Deleted)
Purged  (no message) - A004 EXPUNGE

Now, what the -X option actually does is turns this into:

Created (\Recent)- LMTP DELIVER (UID = 9)
No flags ()  - A001 SELECT INBOX (clears the \Recent)
Viewed (\Seen)   - A002 UID FETCH 9 RFC822
Deleted (\Deleted \Seen) - A003 UID STORE 9 +FLAGS (\Deleted)
Purged  (no index record)- A004 EXPUNGE

but the file is still on disk, just the index record has been moved
from the file cyrus.index to a new file cyrus.expunge.  A week later:

Cleaned up (no file) - cyr_expire -X 7

The cyrus.expunge record and the actual spool file itself get deleted at
this point.  Until then you can un-delete the record using the
"unexpunge" command in cyrus 2.3.X.

---

I think what the original requestor was actually looking for is a tool
that can run the "EXPUNGE" phase on a regular basis.  As far as I'm
aware there's nothing that ships with Cyrus that can do it.  If I was
writing something for the job I would make an admin IMAP connection to
Cyrus and just cycle through the folders calling 'EXPUNGE' on them.
Cheap and nasty, but it would do the trick.  You can do this in any
language with a TCP library, though something with an IMAP interface
library would be nicer.  I'd use Perl and Mail::IMAPTalk, but that's
just because that's what I already use!

Bron.

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: Deleting messages "marked for deletion" older than X days

2008-08-18 Thread Wesley Craig
cyr_expire -D and -X deal with delayed delete & expunge,  
respectively.  Neither will address message that the MUA hasn't  
already deleted (in the case of folders) or expunged (in the case of  
messages).

The tool that is closest to the desired functionality is ipurge.  In  
order for ipurge to do what you're asking, Gerard, it would have to  
examine whatever the "deleted" flag is for Outlook -- it varies by  
MUA, some set a flag, some move messages to a trash folder, etc.

:wes

On 18 Aug 2008, at 18:09, Kenneth Marshall wrote:
> In the manual page, the definition of the '-X' option seems to
> do what you want:
>
>   -X expunge-days
>   Expunge  previously deleted messages older than  
> expunge-days
>   (when using the "delayed" expunge mode).  The default is
>   0 (zero) days, which will expunge all previously  
> deleted messages.
>
>>> On Mon, Aug 18, 2008 at 03:35:20PM -0600, Gerard Beekmans wrote:
 I am looking for a way to run a daily script on the Cyrus IMAP  
 server
 that processes every user's mail folders and deletes every message
 marked for deletion older than X days.

 I realize the proper way to do this is client-side and have the  
 client
 program purge/expunge the mailboxes periodically in some fashion.

 Unfortunately in the corporate world there are many clients who  
 still
 use old versions of Outlook that only marks a message for  
 deletion and
 will not automatically purge the folder.

 To force users to manually purge every single folder they have, one
 folder at a time as some versions of Outlook can't do this  
 recursively,
 is not a feasible option. Users just stopped doing this because it
 becomes too time consuming a task.

 So I'm looking for a server-side solution that analyzes every mail
 folder on the system, finds marked messages older than X days and
 purges/deletes them on the client's behalf.

 Some pointers are appreciated. I can write the scripts (shell,  
 perl,
 whatever) myself if need be, just need to know how to start  
 going about
 obtaining such a specific list of messages.

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: Deleting messages "marked for deletion" older than X days

2008-08-18 Thread Kenneth Marshall
It must be a 2.3 option, we are running 2.3.10+ here.

Ken

On Mon, Aug 18, 2008 at 04:21:29PM -0600, Gerard Beekmans wrote:
> I'll do some more checking then. My cyr_expire version doesn't even have 
> the -X option (I'm testing this on a system that has cyrus imap 2.2.13 as 
> its recent version).
>
>
>
> Gerard Beekmans
> IT Manager
> Achilles Media
> Tel: 403-678-1216 ext. 102
> Email: [EMAIL PROTECTED]
>
>
>
>
> Kenneth Marshall wrote:
>> In the manual page, the definition of the '-X' option seems to
>> do what you want:
>>
>>   -X expunge-days
>>   Expunge  previously deleted messages older than expunge-days
>>   (when using the "delayed" expunge mode).  The default is
>>   0 (zero) days, which will expunge all previously deleted 
>> messages.
>>
>> Ken
>>
>>
>> On Mon, Aug 18, 2008 at 03:53:31PM -0600, Gerard Beekmans wrote:
>>   
>>> Hi Ken,
>>>
>>>  From the description it seems like cyr_expire will apply to every email 
>>> in a mailbox. I don't want to delete any regular emails other than the 
>>> ones already marked for deletion by an email client who is lacking a 
>>> decent purge feature.
>>>
>>>
>>> Gerard Beekmans
>>> IT Manager
>>> Achilles Media
>>> Tel: 403-678-1216 ext. 102
>>> Email: [EMAIL PROTECTED]
>>>
>>>
>>>
>>>
>>> Kenneth Marshall wrote:
>>> 
 I think that the cyr_expire command may be what you are searching
 for.

 Ken

 On Mon, Aug 18, 2008 at 03:35:20PM -0600, Gerard Beekmans wrote:
 
> Hi,
>
> I am looking for a way to run a daily script on the Cyrus IMAP server 
> that processes every user's mail folders and deletes every message 
> marked for deletion older than X days.
>
> I realize the proper way to do this is client-side and have the client 
> program purge/expunge the mailboxes periodically in some fashion.
>
> Unfortunately in the corporate world there are many clients who still 
> use old versions of Outlook that only marks a message for deletion and 
> will not automatically purge the folder.
>
> To force users to manually purge every single folder they have, one 
> folder at a time as some versions of Outlook can't do this recursively, 
> is not a feasible option. Users just stopped doing this because it 
> becomes too time consuming a task.
>
> So I'm looking for a server-side solution that analyzes every mail 
> folder on the system, finds marked messages older than X days and 
> purges/deletes them on the client's behalf.
>
> Some pointers are appreciated. I can write the scripts (shell, perl, 
> whatever) myself if need be, just need to know how to start going about 
> obtaining such a specific list of messages.
>
> Thanks,
>
> -- 
> Gerard Beekmans
> IT Manager
> Achilles Media
> Tel: 403-678-1216 ext. 102
> Email: [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
>>>
>>> 
>

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: Deleting messages "marked for deletion" older than X days

2008-08-18 Thread Gerard Beekmans
I'll do some more checking then. My cyr_expire version doesn't even have 
the -X option (I'm testing this on a system that has cyrus imap 2.2.13 
as its recent version).



Gerard Beekmans
IT Manager
Achilles Media
Tel: 403-678-1216 ext. 102
Email: [EMAIL PROTECTED]




Kenneth Marshall wrote:
> In the manual page, the definition of the '-X' option seems to
> do what you want:
>
>   -X expunge-days
>   Expunge  previously deleted messages older than expunge-days
>   (when using the "delayed" expunge mode).  The default is
>   0 (zero) days, which will expunge all previously deleted 
> messages.
>
> Ken
>
>
> On Mon, Aug 18, 2008 at 03:53:31PM -0600, Gerard Beekmans wrote:
>   
>> Hi Ken,
>>
>>  From the description it seems like cyr_expire will apply to every email 
>> in a mailbox. I don't want to delete any regular emails other than the 
>> ones already marked for deletion by an email client who is lacking a 
>> decent purge feature.
>>
>>
>> Gerard Beekmans
>> IT Manager
>> Achilles Media
>> Tel: 403-678-1216 ext. 102
>> Email: [EMAIL PROTECTED]
>>
>>
>>
>>
>> Kenneth Marshall wrote:
>> 
>>> I think that the cyr_expire command may be what you are searching
>>> for.
>>>
>>> Ken
>>>
>>> On Mon, Aug 18, 2008 at 03:35:20PM -0600, Gerard Beekmans wrote:
>>>   
>>>   
 Hi,

 I am looking for a way to run a daily script on the Cyrus IMAP server 
 that processes every user's mail folders and deletes every message 
 marked for deletion older than X days.

 I realize the proper way to do this is client-side and have the client 
 program purge/expunge the mailboxes periodically in some fashion.

 Unfortunately in the corporate world there are many clients who still 
 use old versions of Outlook that only marks a message for deletion and 
 will not automatically purge the folder.

 To force users to manually purge every single folder they have, one 
 folder at a time as some versions of Outlook can't do this recursively, 
 is not a feasible option. Users just stopped doing this because it 
 becomes too time consuming a task.

 So I'm looking for a server-side solution that analyzes every mail 
 folder on the system, finds marked messages older than X days and 
 purges/deletes them on the client's behalf.

 Some pointers are appreciated. I can write the scripts (shell, perl, 
 whatever) myself if need be, just need to know how to start going about 
 obtaining such a specific list of messages.

 Thanks,

 -- 
 Gerard Beekmans
 IT Manager
 Achilles Media
 Tel: 403-678-1216 ext. 102
 Email: [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
>>
>> 

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: Deleting messages "marked for deletion" older than X days

2008-08-18 Thread Kenneth Marshall
In the manual page, the definition of the '-X' option seems to
do what you want:

  -X expunge-days
  Expunge  previously deleted messages older than expunge-days
  (when using the "delayed" expunge mode).  The default is
  0 (zero) days, which will expunge all previously deleted messages.

Ken


On Mon, Aug 18, 2008 at 03:53:31PM -0600, Gerard Beekmans wrote:
> Hi Ken,
> 
>  From the description it seems like cyr_expire will apply to every email 
> in a mailbox. I don't want to delete any regular emails other than the 
> ones already marked for deletion by an email client who is lacking a 
> decent purge feature.
> 
> 
> Gerard Beekmans
> IT Manager
> Achilles Media
> Tel: 403-678-1216 ext. 102
> Email: [EMAIL PROTECTED]
> 
> 
> 
> 
> Kenneth Marshall wrote:
> > I think that the cyr_expire command may be what you are searching
> > for.
> >
> > Ken
> >
> > On Mon, Aug 18, 2008 at 03:35:20PM -0600, Gerard Beekmans wrote:
> >   
> >> Hi,
> >>
> >> I am looking for a way to run a daily script on the Cyrus IMAP server 
> >> that processes every user's mail folders and deletes every message 
> >> marked for deletion older than X days.
> >>
> >> I realize the proper way to do this is client-side and have the client 
> >> program purge/expunge the mailboxes periodically in some fashion.
> >>
> >> Unfortunately in the corporate world there are many clients who still 
> >> use old versions of Outlook that only marks a message for deletion and 
> >> will not automatically purge the folder.
> >>
> >> To force users to manually purge every single folder they have, one 
> >> folder at a time as some versions of Outlook can't do this recursively, 
> >> is not a feasible option. Users just stopped doing this because it 
> >> becomes too time consuming a task.
> >>
> >> So I'm looking for a server-side solution that analyzes every mail 
> >> folder on the system, finds marked messages older than X days and 
> >> purges/deletes them on the client's behalf.
> >>
> >> Some pointers are appreciated. I can write the scripts (shell, perl, 
> >> whatever) myself if need be, just need to know how to start going about 
> >> obtaining such a specific list of messages.
> >>
> >> Thanks,
> >>
> >> -- 
> >> Gerard Beekmans
> >> IT Manager
> >> Achilles Media
> >> Tel: 403-678-1216 ext. 102
> >> Email: [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
> 

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: Deleting messages "marked for deletion" older than X days

2008-08-18 Thread Gerard Beekmans
Hi Ken,

 From the description it seems like cyr_expire will apply to every email 
in a mailbox. I don't want to delete any regular emails other than the 
ones already marked for deletion by an email client who is lacking a 
decent purge feature.


Gerard Beekmans
IT Manager
Achilles Media
Tel: 403-678-1216 ext. 102
Email: [EMAIL PROTECTED]




Kenneth Marshall wrote:
> I think that the cyr_expire command may be what you are searching
> for.
>
> Ken
>
> On Mon, Aug 18, 2008 at 03:35:20PM -0600, Gerard Beekmans wrote:
>   
>> Hi,
>>
>> I am looking for a way to run a daily script on the Cyrus IMAP server 
>> that processes every user's mail folders and deletes every message 
>> marked for deletion older than X days.
>>
>> I realize the proper way to do this is client-side and have the client 
>> program purge/expunge the mailboxes periodically in some fashion.
>>
>> Unfortunately in the corporate world there are many clients who still 
>> use old versions of Outlook that only marks a message for deletion and 
>> will not automatically purge the folder.
>>
>> To force users to manually purge every single folder they have, one 
>> folder at a time as some versions of Outlook can't do this recursively, 
>> is not a feasible option. Users just stopped doing this because it 
>> becomes too time consuming a task.
>>
>> So I'm looking for a server-side solution that analyzes every mail 
>> folder on the system, finds marked messages older than X days and 
>> purges/deletes them on the client's behalf.
>>
>> Some pointers are appreciated. I can write the scripts (shell, perl, 
>> whatever) myself if need be, just need to know how to start going about 
>> obtaining such a specific list of messages.
>>
>> Thanks,
>>
>> -- 
>> Gerard Beekmans
>> IT Manager
>> Achilles Media
>> Tel: 403-678-1216 ext. 102
>> Email: [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


Re: Deleting messages "marked for deletion" older than X days

2008-08-18 Thread Kenneth Marshall
I think that the cyr_expire command may be what you are searching
for.

Ken

On Mon, Aug 18, 2008 at 03:35:20PM -0600, Gerard Beekmans wrote:
> Hi,
> 
> I am looking for a way to run a daily script on the Cyrus IMAP server 
> that processes every user's mail folders and deletes every message 
> marked for deletion older than X days.
> 
> I realize the proper way to do this is client-side and have the client 
> program purge/expunge the mailboxes periodically in some fashion.
> 
> Unfortunately in the corporate world there are many clients who still 
> use old versions of Outlook that only marks a message for deletion and 
> will not automatically purge the folder.
> 
> To force users to manually purge every single folder they have, one 
> folder at a time as some versions of Outlook can't do this recursively, 
> is not a feasible option. Users just stopped doing this because it 
> becomes too time consuming a task.
> 
> So I'm looking for a server-side solution that analyzes every mail 
> folder on the system, finds marked messages older than X days and 
> purges/deletes them on the client's behalf.
> 
> Some pointers are appreciated. I can write the scripts (shell, perl, 
> whatever) myself if need be, just need to know how to start going about 
> obtaining such a specific list of messages.
> 
> Thanks,
> 
> -- 
> Gerard Beekmans
> IT Manager
> Achilles Media
> Tel: 403-678-1216 ext. 102
> Email: [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


Deleting messages "marked for deletion" older than X days

2008-08-18 Thread Gerard Beekmans
Hi,

I am looking for a way to run a daily script on the Cyrus IMAP server 
that processes every user's mail folders and deletes every message 
marked for deletion older than X days.

I realize the proper way to do this is client-side and have the client 
program purge/expunge the mailboxes periodically in some fashion.

Unfortunately in the corporate world there are many clients who still 
use old versions of Outlook that only marks a message for deletion and 
will not automatically purge the folder.

To force users to manually purge every single folder they have, one 
folder at a time as some versions of Outlook can't do this recursively, 
is not a feasible option. Users just stopped doing this because it 
becomes too time consuming a task.

So I'm looking for a server-side solution that analyzes every mail 
folder on the system, finds marked messages older than X days and 
purges/deletes them on the client's behalf.

Some pointers are appreciated. I can write the scripts (shell, perl, 
whatever) myself if need be, just need to know how to start going about 
obtaining such a specific list of messages.

Thanks,

-- 
Gerard Beekmans
IT Manager
Achilles Media
Tel: 403-678-1216 ext. 102
Email: [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


Re: problem deleting messages with cyrus-imapd 2.3.3-6

2006-09-25 Thread Rich Graves
This is the "delayed expunge" feature, added in 2.3. man imapd.conf, 
page down to expunge_mode. It's a speed enhancement and has the side 
effect of allowing sysadmin undelete/unexpunge without recourse to backups.


You should have something like this in cyrus.conf for garbage 
collection. man cyr_expire for details.


delprune  cmd="cyr_expire -E 2 -X 2" at=0400

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


problem deleting messages with cyrus-imapd 2.3.3-6

2006-09-25 Thread Zeli Kartzman


after deleting a whole bunch of messages from my INBOX (and
expunging/purging trash), when i inspect
the /var/spool/imap/b/user/bryan directory i notice that the messages
are still there. they are also still in the trash folder as well. they
are no longer displayed in the client (squirrelmail or evolution),
however. this also happens when i copy a message from one folder to
another -- the message no longer shows up in the client but it doesn;t
get removed from the spool directory on the server.

is this a known problem with this release (2.3.3.6)?

bz



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: Auto-deleting messages (header date vs internal date)

2005-04-28 Thread Eddy Beliveau
Hi!
I'm using cyrus-imapd-2.2.8-6.3 with success.
but I noticed that the cyr_expire is based on the Date header instead of the Internal email's 
creation date

This cause me problem when I restored (from backup)+reconstruct  some student emails which then just 
get deleted again on next cyr_expire daily run,

How can I specify to cyr_expire to use the internal date instead of the header 
date ?
Am I the only one with that problem ?
Thanks,
Eddy
- Original Message - 
Subject: Re: Auto-deleting messages


Actually, if you just want to delete based on age, cyr_expire using the
/vendor/cmu/cyrus-imapd/expire annotation gives you better control. 
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Auto-deleting messages

2005-04-27 Thread Andreas Hasenack
On Wed, Apr 27, 2005 at 10:56:50AM -0400, Ken Murchison wrote:
> >man  ipurge
> >
> >It doesn't work as well as I'd like it to, but it's a start.
> 
> Actually, if you just want to delete based on age, cyr_expire using the 
> /vendor/cmu/cyrus-imapd/expire annotation gives you better control.

Which (for completeness of this thread) can be set using cyradm:

imap.server> mboxconfig Trash expire 5
imap.server> info Trash
{Trash}:
  expire: 5
  lastupdate: 27-Apr-2005 04:00:40 -0300
  partition: default
  size: 0
  squat: false
imap.server>

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


Re: Auto-deleting messages

2005-04-27 Thread Ken Murchison
Sebastian Hagedorn wrote:
Hi,
--On 27. April 2005 1:17:12 Uhr -0400 Michael Spicyn 
<[EMAIL PROTECTED]> wrote:

Can I somehow induce Cyrus to delete messages that are, lets say 3 month
old?

man  ipurge
It doesn't work as well as I'd like it to, but it's a start.
Actually, if you just want to delete based on age, cyr_expire using the 
/vendor/cmu/cyrus-imapd/expire annotation gives you better control.

--
Kenneth Murchison Oceana Matrix Ltd.
Software Engineer 21 Princeton Place
716-662-8973 x26  Orchard Park, NY 14127
--PGP Public Key--http://www.oceana.com/~ken/ksm.pgp
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Auto-deleting messages

2005-04-27 Thread Sebastian Hagedorn
Hi,
--On 27. April 2005 1:17:12 Uhr -0400 Michael Spicyn <[EMAIL PROTECTED]> 
wrote:

Can I somehow induce Cyrus to delete messages that are, lets say 3 month
old?
man  ipurge
It doesn't work as well as I'd like it to, but it's a start.
Cheers, Sebastian Hagedorn
--
Sebastian Hagedorn - RZKR-R1 (GebÃude 52), Zimmer 18
Zentrum fÃr angewandte Informatik - UniversitÃtsweiter Service RRZK
UniversitÃt zu KÃln / Cologne University - Tel. +49-221-478-5587

pgp2gtpt3uSZ7.pgp
Description: PGP signature


Auto-deleting messages

2005-04-26 Thread Michael Spicyn
I have unique problem. Due to office politics or whatever the main 
server used is M$exchange.
Since availability of email service is a key business issue to this 
company and since M$exchange was going down to often and since they 
cannot give up using M$exchange I was hired to come up with the solution.

Solution would require: protection of M$exchange servers to receive only 
prestine (clean) messages, and in case that is not enough and M$exchange 
goes down, provide users with alternative email server where they can 
login and have ALL previous messages there and while working there get 
the efforts of their work back on M$exchange when it up.

To make the long story short, I have provided them with 2 Linux servers, 
postfix, cyrus, squirrelsmail, calmav, amavis+new,  samba (winbind 
especially for authentication, thus no user administration on Linux 
servers) and ldap + my sh/perl sripts.

The reason for 2 Servers - if one goes down the other is a replica (kind 
of) of the other - thus email services are still operational.
So I am authenticating users login in only in SquirrelMail via winbind 
agains M$ ActiveDirectories Servers.

Every hour I am polling pertinent user data (emails, maildrops, group 
mambership, etc) from M$ ActiveDirectories and storing it in LDAP but I 
also add additional maildrops - which are my 2 servers - thus message 
will not only be delivers to M$exchange but also to my Linux servers via 
lmtp to Cyrus.

Here is the essence of my problem:
Cyrus will be recieving all messages while these messages will be hardly 
managed - ea users will login only in emergency and their attention is 
on reading and sending messages - not on proper management of messages.

Obviously sooner or later I will run out of disk space.
Can I somehow induce Cyrus to delete messages that are, lets say 3 month 
old?

If you have any solution to this please reply ASAP
If you would like to know more details about this project let me know 
and I will email my installation journal.



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


Re: deleting messages manually from the mailstore

2004-02-21 Thread Sebastian Hagedorn
Hi,

-- Joe Hrbek <[EMAIL PROTECTED]> is rumored to have mumbled on 
Freitag, 20. Februar 2004 18:44 Uhr -0600 regarding deleting messages 
manually from the mailstore:

Hi,  I had a bit of a bad morning today.  Long story short, our virus
scanner stopped working and about 150 virus emails were delivered to the
cyrus mailstore.
out of curiosity: which virus scanner and how did it happen? This happened 
to us once, you know ... I don't want to run the risk of having it happen 
again.

Cheers, Sebastian
--
Sebastian Hagedorn M.A. - RZKR-R1 (Flachbau), Zi. 18, Robert-Koch-Str. 10
Zentrum für angewandte Informatik - Universitätsweiter Service RRZK
Universität zu Köln / Cologne University - Tel. +49-221-478-5587

pgp0.pgp
Description: PGP signature


Re: deleting messages manually from the mailstore

2004-02-20 Thread Andrew Morgan


On Fri, 20 Feb 2004, Joe Hrbek wrote:

> Hi,  I had a bit of a bad morning today.  Long story short, our virus
> scanner stopped working and about 150 virus emails were delivered to the
> cyrus mailstore.  This was scattered through about 50 mailboxes.  I quickly
> realized what was happening and fixed the scanner, but the problem of the
> infected, delivered emails still remained.
>
> Not wanting anyone to download these, I deleted them using a command line
> virus scanner :)  That worked well.  Cyrus is running fine, it still works,
> but I have some weird problems now.  I expected that this would be the
> consequence of my decision, but I did it nonetheless, choosing this as the
> lesser evil.  Anyway, in the mailboxes that had messages deleted, the users
> get a weird message listing.  If they use IMAP, a headerless email shows up,
> or nearly headerless.  It's empty except for the size and this size is
> whatever the attachment size was.  Now I can delete these just fine through
> IMAP (pop3 just complains it couldn't download x number of messages, but
> still gets the rest), but even with an empty mailbox, the quota is still
> used up a bit.  An empty mailbox used to show zero utilization, but on the
> affected mailboxes, even after removal of the messages through the virus
> scanner and the imap protocol, the utilization is 1% or 2%.
>
> I thought well, the indexes are messed up, so I did a reconstruct -r on a
> few of the mailboxes suffering with this problem, and still no dice.
>
> My question:  What would cause cyrus to report an invalid quota utilization?
> (on an empty mailbox).
>
> There must be something I have missed

Did you run reconstruct and quota -f on the affected mailboxes?  Anytime
you mess with the files directly, you want to follow up with those two
program to fix the indexes and header files.

Andy

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


deleting messages manually from the mailstore

2004-02-20 Thread Joe Hrbek
Hi,  I had a bit of a bad morning today.  Long story short, our virus
scanner stopped working and about 150 virus emails were delivered to the
cyrus mailstore.  This was scattered through about 50 mailboxes.  I quickly
realized what was happening and fixed the scanner, but the problem of the
infected, delivered emails still remained.

Not wanting anyone to download these, I deleted them using a command line
virus scanner :)  That worked well.  Cyrus is running fine, it still works,
but I have some weird problems now.  I expected that this would be the
consequence of my decision, but I did it nonetheless, choosing this as the
lesser evil.  Anyway, in the mailboxes that had messages deleted, the users
get a weird message listing.  If they use IMAP, a headerless email shows up,
or nearly headerless.  It's empty except for the size and this size is
whatever the attachment size was.  Now I can delete these just fine through
IMAP (pop3 just complains it couldn't download x number of messages, but
still gets the rest), but even with an empty mailbox, the quota is still
used up a bit.  An empty mailbox used to show zero utilization, but on the
affected mailboxes, even after removal of the messages through the virus
scanner and the imap protocol, the utilization is 1% or 2%.

I thought well, the indexes are messed up, so I did a reconstruct -r on a
few of the mailboxes suffering with this problem, and still no dice.

My question:  What would cause cyrus to report an invalid quota utilization?
(on an empty mailbox).

There must be something I have missed

thanks,

-joe

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


Re: Deleting messages

2004-01-27 Thread Vernon A. Fort
Andrew Morgan wrote:

On Tue, 27 Jan 2004, Vernon A. Fort wrote:

 

I need to find a way, via a simple perl script, to pass delete a single
message from a email folder.
I have been just rm -f $file and then recontruct the mailbox but need a
more effecient method.  Can you use Cyrus::IMAP::Admin and use the
delete function on the message file?
Any pointers would greatly help!!!

Vernon
   

Have a look at the Mail::IMAPClient Perl module...

	Andy

 

Works like a champ!!  Exactly what I was looking for!!!

Thanks

Vernon



Re: Deleting messages

2004-01-27 Thread Andrew Morgan

On Tue, 27 Jan 2004, Vernon A. Fort wrote:

> I need to find a way, via a simple perl script, to pass delete a single
> message from a email folder.
>
> I have been just rm -f $file and then recontruct the mailbox but need a
> more effecient method.  Can you use Cyrus::IMAP::Admin and use the
> delete function on the message file?
>
> Any pointers would greatly help!!!
>
> Vernon

Have a look at the Mail::IMAPClient Perl module...

Andy



Deleting messages

2004-01-27 Thread Vernon A. Fort
I need to find a way, via a simple perl script, to pass delete a single 
message from a email folder.

I have been just rm -f $file and then recontruct the mailbox but need a 
more effecient method.  Can you use Cyrus::IMAP::Admin and use the 
delete function on the message file?

Any pointers would greatly help!!!

Vernon



Re: deleting messages

2003-06-24 Thread Patrick Morris
Just delete all the files in the inbox, then run recontruct to update 
the indexes.

Bartosz Jozwiak wrote:

Hello,
 
Is it possible for administrator to delete all messages from user 
e-mail box?
Can we use cyradm for that or is ther other tool to do it?
 
Regards,
Bartosz Jozwiak





deleting messages

2003-06-24 Thread Bartosz Jozwiak



Hello,
 
Is it possible for administrator to delete all 
messages from user e-mail box?
Can we use cyradm for that or is ther other tool to 
do it?
 
Regards,
Bartosz Jozwiak