Re: Running a mutt macro from crontab
On Thu, Feb 18, 2010 at 07:59:24PM -0500, Javier Rojas wrote: what do you mean by stale threads? threads that lack a parent message? A stale thread would be one that haven't had any activity for some time. I subscribe to a lot of lists that I only really use/read once a year or so. It's a bit a annoying to have to wait for mutt to open a mailbox with 3 messages in it, so I'd like a way to get rid of them automatically. anyway, you might want to run that macro as a folder-hook. Something like this: folder-hook lists/.* 'push your_macro_goes_here' Following your clue this is what I came up with. First you need a separate muttrc-file just for thread pruning. ~/mutt/muttrc_prune_stale_threads set spoolfile=/home/oivvio/imap set folder=/home/oivvio/imap alternates (oiv...@polite.se|myli...@polite.se|oivvioslis...@polite.se|oiv...@gmail.com) set delete=yes folder-hook . 'push delete-pattern!(~(~d 2m)) !(~(~P|~F))enterq' This hook will delete all threads that have not had any activity for 2 months and that do not have any messages that I've written or flagged. It will then quit. Then I can run the whole thing from cron every night against my folder of email lists. Notice that I use maildir and not mailbox. find /home/oivvio/imap/notmyprivateemail_gmail -maxdepth 1 -mindepth 1 -type d -exec mutt -F ~/mutt/muttrc_prune_stale_threads -f {} \; oivvio -- http://pipedreams.polite.se/about/
Re: How to browse Imap folders?
I've found mutts IMAP-support to be less than stellar. A good workaround is to use a IMAP-Maildir syncronizer like offlineimap. http://software.complete.org/offlineimap -- http://polite.se
Re: New mail to list.
On Tue, Sep 17, 2002 at 09:05:26PM -0600, Rob Park wrote: That's awfully restrictive. What if you were in another mbox and you wanted to mail mutt-users? I just use an alias, and send mail normally. Good for you! -- Alex Polite http://plusseven.com/gpg/
Re: Send off all postponed messages
On Tue, Sep 17, 2002 at 03:18:23PM +0200, René Clerc wrote: What about installing a simple SMTP daemon on your machine, which will relay your emails to your office's mailserver, once you're back online? As it turns out exim was already configured to do this. I just hadn't given it a chance to prove itself. alex -- Alex Polite http://plusseven.com/gpg/
Send off all postponed messages
I regularly deal with mail when I'm away from my DSL pipe. Right now I'm at the coffee shop and the postponed messages are piling up. When I get back to the office I'd like to be able to send-all-postponed-messages. -- Alex Polite http://plusseven.com/gpg/
Send off all postponed messages
I regularly deal with mail when I'm away from my DSL pipe. Right now I'm at the coffee shop and the postponed messages are piling up. When I get back to the office I'd like to be able to send-all-postponed-messages. -- Alex Polite http://plusseven.com/gpg/
Re: New mail to list.
On Tue, Sep 17, 2002 at 12:11:27PM -0400, darren chamberlain wrote: I have this in my config: subscribe mutt-users@ mailboxes =lists/mutt-users folder-hook =lists/mutt-users macro index m \mail[EMAIL PROTECTED]\ subscribe mutt-dev@ subscribe @bugs.guug.de mailboxes =lists/mutt-dev folder-hook =lists/mutt-dev macro index m \mail[EMAIL PROTECTED]\ When I hit m in my mutt folders, it executes the macro, with the appropriate stuff filled in. Thank you. Exactly what I was looking for. -- Alex Polite http://plusseven.com/gpg/