all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Rob Browning <rlb@defaultvalue.org>
Cc: emacs-devel@gnu.org
Subject: Re: MAIL_USE_FLOCK and Debian.
Date: Mon, 17 Feb 2003 09:31:38 -0600	[thread overview]
Message-ID: <87ptpqhqjp.fsf@raven.i.defaultvalue.org> (raw)
In-Reply-To: <E18kfZi-0007eI-00@fencepost.gnu.org> (Richard Stallman's message of "Mon, 17 Feb 2003 02:20:26 -0500")

Richard Stallman <rms@gnu.org> writes:

> I think that is even more reason to control the decision at run time.
> Binaries are often moved from machine to machine, on a given platform.
> People will, for instance, install the Debian Emacs package on various
> Debian systems, some of which use liblockfile and some of which don't.

OK.  After thinking about it a bit more, I agree.  You're absolutely
right that a run-time setting would be better.  However, part of the
problem is that this policy is currently handled by the external
movemail program, so we'd have to figue out how to allow runtime
customization.  I would guess perhaps an /etc file, or command-line
arguments, though the latter probably wouldn't make it easy enough to
provide site-wide defaults...

> Do you agree?

I think so, but with regard to the implementation.  I think one of the
complicating factors is that the actual policies can be reasonably
complex, i.e. do you use flock and something else, flock first or
last, etc?

If the locking were handled by emacs rather than an external program,
then I would be tempted to suggest that we just publish the locking
primitives at the lisp level, and then provide a set of lisp functions
for various "standard" locking strategies along with a defvar
mail-locking-function.  Then you can pretty easily do whatever's
necessary, no matter how custom your requirements.

I guess if emacs' startup were lightweight enough, movemail could just
be turned in to an emacs script, but I suspect that might make some
contingencies unhappy, and might cause other complications I haven't
yet considered.

Two other related items for consideration.

  - I'm not sure if you know, but for Debian at least, the locking
    strategy embodied in liblockfile is also a well-defined algorithm,
    and policy doesn't actually require programs to use liblockfile
    (as far as I recall), but just requires them to follow the
    algorithm specified, so it would be possible to DTRT straight from
    emacs.  I believe there is already a native perl implementation,
    for example.

  - One thing that has been on my tentative to-do list for a while
    (and I may have mentioned before) is to consider the wisdom of
    installing movemail to /usr/bin so that everyone can use it.  This
    was originally suggested to me back when netscape (and others?)
    were installing their own movemail binaries to /usr/lib/....  I
    had originally considered suggesting movemail be a separate
    project (or part of something like coreutils), but realized that
    it probably wouldn't be acceptable for emacs to have the
    additional dependency.

> Would you like to implement it?

I'd certainly be willing to give it a try when we figure out what we
want.

-- 
Rob Browning
rlb @defaultvalue.org, @linuxdevel.com, and @debian.org
Previously @cs.utexas.edu
GPG starting 2002-11-03 = 14DD 432F AE39 534D B592  F9A0 25C8 D377 8C7E 73A4

  reply	other threads:[~2003-02-17 15:31 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-15  7:02 MAIL_USE_FLOCK and Debian Rob Browning
2003-02-15 19:11 ` Richard Stallman
2003-02-15 20:26   ` Rob Browning
2003-02-17  7:20     ` Richard Stallman
2003-02-17 15:31       ` Rob Browning [this message]
2003-02-17 21:20         ` Florian Weimer
2003-02-17 21:32           ` Rob Browning
2003-02-17 21:41             ` Florian Weimer
2003-02-17 21:56           ` Alan Shutko
2003-02-17 22:20             ` Rob Browning
2003-02-18 16:03           ` Rob Browning
2003-02-18 13:59         ` Richard Stallman
2003-02-18 15:58           ` Rob Browning
2003-02-19  7:16             ` Richard Stallman
2003-02-19 17:11               ` Rob Browning
2003-02-19 18:03                 ` David Masterson
2003-02-20 18:21                 ` Richard Stallman
2003-02-20 19:22                   ` Rob Browning
2003-02-21 21:44                     ` Richard Stallman
2003-02-24  2:58                       ` Rob Browning
2003-02-28  8:14                       ` Michael Sperber [Mr. Preprocessor]
2003-03-01 21:44                         ` Richard Stallman
2003-03-02 10:06                           ` Michael Sperber [Mr. Preprocessor]
2003-03-03 18:58                             ` Richard Stallman
2003-03-04  8:30                               ` Michael Sperber [Mr. Preprocessor]
2003-03-05 20:46                                 ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ptpqhqjp.fsf@raven.i.defaultvalue.org \
    --to=rlb@defaultvalue.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.