nmh-workers
[Top] [All Lists]

Re: Default file processing for refile -- mv or ln?

2020-05-08 07:56:38
Hi Bob,

What might make refile(1mh) apply the non-default ln(1) to
refiled message files -- as if the -link switch had been
specified -- instead of the default mv(1) -- as if -nolink had
been specified?  And only sometimes; not always.

refile(1)'s -nolink doesn't stop link(2) being used IIRC.  link() is
always attempted, falling back on copying if source and destination
folders are on different filesystems.  strace(1) should confirm this.

-link/-nolink alters whether the inode which is the source is left alone
afterwards or removed.  And removing is the normal method of renaming or
rmmproc.

-unlink actually removes the source inode rather than ‘rmm’ it.

Perhaps that will allow you to spot a pattern.

-- 
Cheers, Ralph.

<Prev in Thread] Current Thread [Next in Thread>