Re: automatically move old mail?
On Sat, Jan 06, 2001 at 07:20:13PM -0800 or so it is rumoured hereabouts, Mike E thought: * sVennieboy ([EMAIL PROTECTED]) wrote: I was wondering if it is possible to automatically move "old" mail (say, older than a month) from my inbox to a different folder (inbox.old for example). Pine does this, and I think it's usefull to prevent my HD filling up with old mail (and not having to delete every mail myself). I don't know of any way to do this w/ just mutt, but you could easly write a script to do it. Check out some of the many CPAN modules (for perl) that allow you to do complex operations on mailspools: http://cpan.valueclick.com/modules/by-category/19_Mail_and_Usenet_News/Mail/ Mike I can do it (assuming, that is, that a macro can pause for input though) macro index esc-A tag-pattern[pause for input here, looks like ~d -dd/mm]copy-message=Archive/mbox.oldenterdelete-messageresync Can a macro pause for input? I suspect not -- Conor Daly [EMAIL PROTECTED] Domestic Sysadmin :-) - 10:37am up 4 days, 17:45, 1 user, load average: 0.00, 0.00, 0.00
Re: automatically move old mail?
Hi. I was wondering if it is possible to automatically move "old" mail (say, older than a month) from my inbox to a different folder (inbox.old for example). Pine does this, and I think it's usefull to prevent my HD filling up with old mail (and not having to delete every mail myself). I have someting like this for removing old mail from some lists: folder-hook =from$ 'push D~r1d\n' # 2 days When I adopt it to your problem, the hook could be as follows: folder-hook "!" 'push T~r1m\n;s=inbox.old\n' This hook is applied on Inbox (aka "!") and it tags (T) all messages older the one month (~r1m) and saves all tagged messages (;s) to another folder (=inbox.old). All saved messages will be marked as deleted in your Inbox (and will be deleted on request or when leaving this folder). I haven't tested it, but I hope it works for you. But if you want to save disk space, then it's only useful if you store your mails to an compressed folder ore on another filesystem... Ciao for now, Dirk -- Dirk Ruediger, Rostock, Germany "A computer without COBOL and Fortran is like a piece of chocolate cake without ketchup and mustard." -- John Krueger
automatically move old mail?
Hi. I was wondering if it is possible to automatically move "old" mail (say, older than a month) from my inbox to a different folder (inbox.old for example). Pine does this, and I think it's usefull to prevent my HD filling up with old mail (and not having to delete every mail myself). I suspect that there must be some hook or something to accomplish this task, but since I'm rather new to mutt, I don't know yet where to start. Hope someone can help, Sven Putteneers -- GPG/PGP KeyID: DE611F23 Fingerprint: D934 AEF8 48A2 0987 5AFB EBF7 8F5A C91F DE61 1F23 Get it from http://www.keyserver.net
Re: automatically move old mail?
* sVennieboy ([EMAIL PROTECTED]) wrote: I was wondering if it is possible to automatically move "old" mail (say, older than a month) from my inbox to a different folder (inbox.old for example). Pine does this, and I think it's usefull to prevent my HD filling up with old mail (and not having to delete every mail myself). I don't know of any way to do this w/ just mutt, but you could easly write a script to do it. Check out some of the many CPAN modules (for perl) that allow you to do complex operations on mailspools: http://cpan.valueclick.com/modules/by-category/19_Mail_and_Usenet_News/Mail/ Mike -- Mike Erickson mee(at)quidquam.com http://www.quidquam.com/ "The more noise a man or a motor makes the less power there is available." - W. R. McGeary