On Saturday, 02 February 2013 at 11:20, Cameron Simpson wrote:
> I have a bunch of local Maildir folders. I file multiple lists to common
> folders when they're similar enough (eg my "unix" folder has a bunch of
> unixy lists). I just changed my filing rules to divert "mercurial-devel"
> to its own folder ("hgdev") because it made the main folder too noisy.
> And of course I want to hand file all the existing messages likewise.
> 
> So:
>   ~C mercurial-devel
>   ;s+hgdev
> 
> This was slower than expected. An strace showed that mutt is reading
> each message and writing a copy to "hgdev". Surpising. I expected mutt
> to be making a hard link from the "hg" message to a file in "hgdev/tmp"
> and then rename()ing that into "hgdev/new" (or maybe "cur" - need to
> check on Maildir policies).
> 
> Given that they're both Maildirs on the same filesystem, why doesn't mutt
> take this more efficient (both in time and disc space) approach? Just naive
> use of an existing "save-message" library routine.

Probably. We already have a hook to do server-side copy for IMAP -- I
imagine maildir could do the same thing.

Reply via email to