[Evolution] archiving old mail?

2002-01-31 Thread John Klassa


I'd like to archive old mail, automatically.  When I used MH, it was
simple enough to write a script to use the relevant MH commands to find
mail older than a month and move it into an "archive" subfolder.

With Evolution, it ought to be reasonably straightforward, given that
the mail is stored in an mbox-style file.  My only fear is that if I
move mail out of a file (while Evolution is shut down, of course :-)),
I'll confuse its indexing mechanism.

So, my questions:

1.  Anybody done this already and care to share?

2.  Need I fear the indexing, or will Evolution notice the difference in
the mtimes and reindex on its own?

3.  Is there some nifty, hidden API that'll help me do this, so that I
don't have to munge the files directly?

Thanks!

John

-- 
John Klassa / Cisco Systems / RTP, NC / USA / [EMAIL PROTECTED] / <><
[ Save bits!  Don't quote entire threads in your reply. ]


___
evolution maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/evolution



Re: [Evolution] archiving old mail?

2002-01-31 Thread Richard Bellavance

On Thu, 2002-01-31 at 08:01, John Klassa wrote:
> 
> I'd like to archive old mail, automatically.  When I used MH, it was
> simple enough to write a script to use the relevant MH commands to find
> mail older than a month and move it into an "archive" subfolder.
> 
> With Evolution, it ought to be reasonably straightforward, given that
> the mail is stored in an mbox-style file.

Just use MH storage for your folders !  mbox is the default, but MH and
Maildir are also supported.

Richard.
-- 
Richard Bellavance   COGNICASE inc.
Analyste-programmeur principal   Hébergement, sécurité et réseaux
T.: 514-732-8000 #4153   20, Place du Commerce
F.: 514-732-8021 Verdun, Qc, H3E 1Z6, CANADA


___
evolution maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/evolution



Re: [Evolution] archiving old mail?

2002-01-31 Thread Ross Burton

On Thu, 2002-01-31 at 13:01, John Klassa wrote:
> 2.  Need I fear the indexing, or will Evolution notice the difference in
> the mtimes and reindex on its own?

I've seen the developers state several times that the index will be
regenerated if the mbox is newer.

> 3.  Is there some nifty, hidden API that'll help me do this, so that I
> don't have to munge the files directly?

No, but there is an exported mail API called Camel.  I have no idea how
it works, but the people on [EMAIL PROTECTED] do.

Ross
-- 
Ross Burton Software Engineer
OneEighty Software Ltd  Tel: +44 20 8680 8712
Cygnet HouseFax: +44 20 8680 8453
12-14 Sydenham Road [EMAIL PROTECTED]
Croydon, Surrey CR9 2ET, UK http://www.180sw.com./

Under the Regulation of Investigatory Powers (RIP) Act 2000 together
with any and all Regulations in force pursuant to the Act OneEighty
Software Ltd reserves the right to monitor any or all incoming or
outgoing communications as provided for under the Act



signature.asc
Description: This is a digitally signed message part


Re: [Evolution] archiving old mail?

2002-01-31 Thread Jeffrey Stedfast

As long as you delete the mbox.ev-summary files that correspond to any
mbox files that you change, Evolution will be okay.

Jeff


On Thu, 2002-01-31 at 08:01, John Klassa wrote:
> 
> I'd like to archive old mail, automatically.  When I used MH, it was
> simple enough to write a script to use the relevant MH commands to find
> mail older than a month and move it into an "archive" subfolder.
> 
> With Evolution, it ought to be reasonably straightforward, given that
> the mail is stored in an mbox-style file.  My only fear is that if I
> move mail out of a file (while Evolution is shut down, of course :-)),
> I'll confuse its indexing mechanism.
> 
> So, my questions:
> 
> 1.  Anybody done this already and care to share?
> 
> 2.  Need I fear the indexing, or will Evolution notice the difference in
> the mtimes and reindex on its own?
> 
> 3.  Is there some nifty, hidden API that'll help me do this, so that I
> don't have to munge the files directly?
> 
> Thanks!
> 
> John
> 
> -- 
> John Klassa / Cisco Systems / RTP, NC / USA / [EMAIL PROTECTED] / <><
> [ Save bits!  Don't quote entire threads in your reply. ]
> 
> 
> ___
> evolution maillist  -  [EMAIL PROTECTED]
> http://lists.ximian.com/mailman/listinfo/evolution
-- 
Jeffrey Stedfast
Evolution Hacker - Ximian, Inc.
[EMAIL PROTECTED]  - www.ximian.com


___
evolution maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/evolution