On Sun, Tue, 05 Dec 2000 17:09:37 -0800, Nikolai Prokoschenko wrote:
> Hi to all!
>
> I've been experimenting for a while to archieve the automatical
> purging of mailing-lists' folders and found an unusual
> (bug|feature):
> I'm using the following:
>
> folder-hook =mutt 'push T~d>14d!~T\nd'
>
> It works also, BUT: when I enter the folder "mutt", all the old
> messages are "marked for death" _including_ the most recent one.
> That means, if I have just received a message from John Doe, then
> it would be marked with D also... :((( Can anybody confirm this?
> Maybe someone knows a workaround? TIA
>
> Nikolai.
I'm not sure but it seems that I had the same problem. I wanted to
automatically save messages with a score greather that 2 in another
folder. So I've used a push like:
folder-hook =send 'push T~F\n;s=archive/sent\n'
It tags all flagged messages (score_threshold_flagged is equal to
2). And it saves tagged messages (;s) to archive/sent.
The problem is that if there is no tagged messages, the tag-prefix
command (;) fails and mutt simply save (s) the current message. In
taht case it is always the last one in the folder (so the most recent
one).
It is not exactly what you describe but I don't understand exactly
what your push does. For me ! is a shell-escape.
I didn't find a work-around for my (and perhaps your) problem. It is
impossible to stop the push sequence on failure. It seems that mutt
just push characters on the input and it can't make a difference
between pushed chars and chars entered by hand.
--
Laurent Pelecq <[EMAIL PROTECTED]>