nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] nmh over sshfs?

2008-10-20 10:09:15
    Date:        Sun, 19 Oct 2008 16:03:59 -0500
    From:        rader(_at_)chive(_dot_)hep(_dot_)wisc(_dot_)edu
    Message-ID:  
<200810192103(_dot_)m9JL3xMo008432(_at_)chive(_dot_)hep(_dot_)wisc(_dot_)edu>

  | The enclosed patch does copy instead of link

That might be OK, but you really don't want to use creat() to
make the output file, that gives no locking protection at all,
not even poor protection.

Instead, use (assuming it is available)
        open(curlock, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, (int) st1.st_mode & 0777)

That should fail if the output file exists, which is almost as good as
the link version.

  | Can anyone tell me what's going on (how to excerise the code) on line
  | 720 of uip/whatnowsbr.c?

If I have that right, that's what adds the "Replied" (etc) "header" to
messages after you have sent a reply (the annotation).

So, to make it happen, you need the -annotate -noinplace options to repl
(or dist or forw) (and there's a chance it might be -annotate -inplace
that causes that link() call).   Then after you have edited and sent the
message, the annotation should be added, causing that link() to stick
the file back after it has been updated.

kre



_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
http://lists.nongnu.org/mailman/listinfo/nmh-workers

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