<<< Date Index >>>     <<< Thread Index >>>

Re: [PATCH] Following symlinks when deleting mail



On Wed, Mar 02, 2005 at 09:14:13AM +0100, Bardur Arantsson wrote:
> I've created a patch which adds an option
> 
>       unlink_follow (bool, default=false)
> 
> to mutt. If set, the option makes the MH/Maildir code follow symlinks
> when unlinking a message. This can be very handy in combination with 
> e.g. mairix to allow deletion of messages through complex searches on 
> multiple mailboxes (or, most usefully *subsets* of complex searches, 
> tagged using the mutt index of the search folder).
> 
> The patch should apply cleanly to 1.5.8 (and CVS). Comments and 
> suggestions welcome.

It sounds useful, but I'm afraid it will result in a number
of feature requests:
        "Why not make it a quad-option?"
        "I want to delete only realpath messages, leaving
        links untouched."
        "Similar options for <copy> and <save> functions?"
        "What about directories?"
(No, I don't request such features, at least for now. They
are only a possibility.)

All the requests above can be solved with my flexible
pass-to-command patch
(http://marc.theaimsgroup.com/?l=mutt-dev&m=110947815600780&w=2
'Re: wish: file/directory funtions for maildir etc').

For example, you can delete the realpaths of tagged links with:
        :bind index '!' pass-to-command
        ;!for i in "%s"; do rm -f `realpath $i`; done

-- 
tamo