Matt Okeson-Harlow | 1 Aug 02:44

Re: Automatically Deleting old Messages

On Tue, Jul 31, 2007 at 03:27:42PM +0200, Louis-David Mitterrand wrote:
> On Fri, Jun 15, 2007 at 11:56:41PM +0300, tyler.roach <at> bluebottle.com wrote:
> > Hi,
> >    Is there any way I can make mutt (or another application)
> >    automatically delete messages in _certain_ folders (such as mailing
> >    lists) that are over a certain number of days old?
> 
> If you have a unix account on your mail server then you can enter these 
> crontab jobs:
> 
> ## remove all list mails older than 60 days in folders matching 
> ## ~/Maildir/.[a-z]* and ~/Maildir/.Admin.*
> 0 2 * * * find /home/ldm/Maildir -mindepth 3 -maxdepth 3 -type f -mtime +60 \( -path
'/home/ldm/Maildir/.[a-z]*' -o -path '/home/ldm/Maildir/.Admin.*' \) -exec rm -f {} \;
> 
> ## remove all empty maildirs
> 0 3 * * * for i in ~/Maildir/.*; do if [ -d "$i" ] && [ ! "$(find "$i" -mindepth 2 -type f)" ]; then rm -rf "$i" ; fi ; done
> 
> (thanks to greycat on #bash for help on these)

Another option would be to use the 'archivemail' utility.

    http://archivemail.sourceforge.net/

It even works over IMAP.

For instance:

    /usr/bin/archivemail -q -d 15 ~/Maildir/.Trash

(Continue reading)

Jukka Salmi | 1 Aug 11:53
Picon

Mutt ignoring Reply-To

Hi,

I'm using Mutt 1.5.16. When replying to a mail which has a Reply-To
header while reply_to is set, the address from the From header instead
of the one from the Reply-To header ends up as the recipient address.
I'd expect this behaviour only if reply_to is unset.

Any hints? Starting Mutt with -d whatever didn't show (me) what's going
wrong. IIRC this used to work, but I can't remember which version this
was...

TIA, Jukka

--

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~

Gerry Rucker | 1 Aug 14:31
Picon
Favicon

Re: Automatically Deleting old Messages

On or about Tue, Jul 31, 2007 at 07:44 -0500, Matt Okeson-Harlow had this to say:
> On Tue, Jul 31, 2007 at 03:27:42PM +0200, Louis-David Mitterrand wrote:
> > On Fri, Jun 15, 2007 at 11:56:41PM +0300, tyler.roach <at> bluebottle.com wrote:
> > > Hi,
> > >    Is there any way I can make mutt (or another application)
> > >    automatically delete messages in _certain_ folders (such as mailing
> > >    lists) that are over a certain number of days old?
> > 
> > If you have a unix account on your mail server then you can enter these 
> > crontab jobs:
> > 
> > ## remove all list mails older than 60 days in folders matching 
> > ## ~/Maildir/.[a-z]* and ~/Maildir/.Admin.*
> > 0 2 * * * find /home/ldm/Maildir -mindepth 3 -maxdepth 3 -type f -mtime +60 \( -path
'/home/ldm/Maildir/.[a-z]*' -o -path '/home/ldm/Maildir/.Admin.*' \) -exec rm -f {} \;
> > 
> > ## remove all empty maildirs
> > 0 3 * * * for i in ~/Maildir/.*; do if [ -d "$i" ] && [ ! "$(find "$i" -mindepth 2 -type f)" ]; then rm -rf "$i" ; fi ; done
> > 
> > (thanks to greycat on #bash for help on these)
> 
> Another option would be to use the 'archivemail' utility.
> 
>     http://archivemail.sourceforge.net/
> 
> It even works over IMAP.
> 
> For instance:
> 
>     /usr/bin/archivemail -q -d 15 ~/Maildir/.Trash
(Continue reading)

Chris G | 1 Aug 13:34

Is there an addon or plugin for removing empty maildir mailboxes?

I am mostly happy now using maildir instead of mbox, the advantages
just about outweigh the disadvantages for me.

However one thing is still annoying me and it feels as if there should
be a way to fix it or work around it.  With mbox when a mailbox has no
more messages in it and you have the save_empty unset then the mailbox
disappears.  Is there no way to get the same effect with maildir?

It's a real nuisance if it's not possible as I create quite a few
mailboxes which I want to disappear after use.  E.g. I have a
'pending' folder where I store threads I want to be able to refer to
for a few days (or check on action, etc.) however when the mailbox is
finished with I want to be able to delete the messages and get rid of
the mailbox otherwise my 'pending' folder gets cluttered with dozens
of old mailboxes.  Deleting them manually is messy and awkward.

I have a similar problem with my 'freecycle' folder where I keep
threads relating to stuff I give away on freecycle, when the stuff has
gone I want to delete the messages and get rid of the mailbox.

I know I could run an overnight script to remove empty maildirs
(though it's not totally trivial to do) but it seems such a obvious
thing that an MUA could/should do that it surprises me it's missing
from mutt.  Well, it's half missing, it does it for mbox so it's
obviously seen as useful.

--

-- 
Chris Green

(Continue reading)

Rado S | 1 Aug 19:34
Picon
Picon

Re: Mutt ignoring Reply-To

=- Jukka Salmi wrote on Wed  1.Aug'07 at 11:53:41 +0200 -=

> I'm using Mutt 1.5.16. When replying to a mail which has a
> Reply-To header while reply_to is set, the address from the From
> header instead of the one from the Reply-To header ends up as the
> recipient address. I'd expect this behaviour only if reply_to is
> unset.

Have a look at mutt-dev archives, reply-to behaviour has been
discussed there in more detail.

--

-- 
© Rado S. -- You must provide YOUR effort for your goal!
EVERY effort counts: at least to show your attitude.
You're responsible for ALL you do: you get what you give.

Rado S | 1 Aug 19:46
Picon
Picon

Re: [solved] Wildcard pattern matching issue - bug or workaround?

=- D. North wrote on Tue 24.Jul'07 at 17:42:31 -0500 -=

> Matt Okeson-Harlow wrote:
>   >I think you need to wrap your regexp in ' '
>   >ie
>   >    color index brightyellow black "~b '\ name.{0,9}\=.{2,30}\.zip'"
> 
> Thanks Matt! --- That's what I was looking for.

Ah good, I was worried you had to wait for me to answer. ;)

On the wiki see "PatternQuoting" page to better understand how it
works, see also "DebugConfig" for quoting in general.
 Also have another go at rtfm, the new version has new "=" patterns
in addition to "~", that's why "=" is special now (quoting required)
while it wasn't before (extra quoting optional).

> { quoted space }
> Older versions of mutt were simply dropping that part of the
> pattern. With the new quoting, that part now became significant
> and the pattern didn't match anything -- easily fixed now.

Ouhm?!
 PatternQuoting processing hasn't changed for spaces among mutt
versions, you've just been lucky the space was ignored previously
with the less quoted variant, i.e. it was sufficient for the special
chars but irrelevant for the space on that quoting level.

--

-- 
© Rado S. -- You must provide YOUR effort for your goal!
(Continue reading)

Stefano Sabatini | 1 Aug 20:08
X-Face
Picon
Favicon

Re: Is there an addon or plugin for removing empty maildir

On date Wednesday 2007-08-01 12:34:33 +0100, Chris G muttered:
> I am mostly happy now using maildir instead of mbox, the advantages
> just about outweigh the disadvantages for me.
> 
> However one thing is still annoying me and it feels as if there should
> be a way to fix it or work around it.  With mbox when a mailbox has no
> more messages in it and you have the save_empty unset then the mailbox
> disappears.  Is there no way to get the same effect with maildir?
> 
> It's a real nuisance if it's not possible as I create quite a few
> mailboxes which I want to disappear after use.  E.g. I have a
> 'pending' folder where I store threads I want to be able to refer to
> for a few days (or check on action, etc.) however when the mailbox is
> finished with I want to be able to delete the messages and get rid of
> the mailbox otherwise my 'pending' folder gets cluttered with dozens
> of old mailboxes.  Deleting them manually is messy and awkward.
> 
> I have a similar problem with my 'freecycle' folder where I keep
> threads relating to stuff I give away on freecycle, when the stuff has
> gone I want to delete the messages and get rid of the mailbox.
> 
> I know I could run an overnight script to remove empty maildirs
> (though it's not totally trivial to do) but it seems such a obvious
> thing that an MUA could/should do that it surprises me it's missing
> from mutt.  Well, it's half missing, it does it for mbox so it's
> obviously seen as useful.

Hi Chris, I faced the same problem some time ago, this is one of the
features I mostly miss in mutt.

(Continue reading)

Patrick Shanahan | 1 Aug 20:31
Picon

Re: Is there an addon or plugin for removing empty maildir

* Stefano Sabatini <stefano.sabatini-lala <at> poste.it> [08-01-07 14:29]:
> * How do I link to a specific article if I just know the Message-ID?
> http://mid.gmane.org/1234567890.1234567890 <at> example.com
> 
> I think I'll try to hack up a macro to do it automatically...

And you *will* publish it, yes?   :^)

tks,
--

-- 
Patrick Shanahan         Plainfield, Indiana, USA        HOG # US1244711
http://wahoo.no-ip.org     Photo Album:  http://wahoo.no-ip.org/gallery2
Registered Linux User #207535                    @ http://counter.li.org

Stefano Sabatini | 2 Aug 01:01
X-Face
Picon
Favicon

G-mane finder script and macro

Hi mutters,

here it is a bash script which fetches the message id from a mail
message, assemblates a corresponding G-mane address and eventually
launches a browser on it.

Try:
gmane-find -h 
to see how it works.

The browser command has to be defined at the beginning of the script.

Possible use with mutt:

macro index,pager G "<pipe-message>gmane-find -tb<return>" "launch the browser to the corresponding
G-mane archive page"

Hope you'll find it useful :-).

Cheers.
--

-- 
mutt random tip #4
You can improve the modularity of your mutt configuration using the source command.
Usage:
source <filename>
#!/bin/bash  

E_BADARGS=65
(Continue reading)

Andre Haupt | 2 Aug 12:35
Picon

[OT] buffy like tool for the console

Hi all,

I wonder if there is a tool like buffy for the command line. That tool
checks my mboxes periodically and displays, how many new messages have
arrived. It can also start mutt and jump to the mbox which contains new
messages.
I found the newmail command, but that just prints out a message when
new mail arrives. It can not start mutt with the appropriate mbox. 

regards,

Andre


Gmane