all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* modifying movemail
@ 2004-06-19 10:27 Florian von Savigny
  2004-06-19 17:39 ` Pascal Bourguignon
  0 siblings, 1 reply; 12+ messages in thread
From: Florian von Savigny @ 2004-06-19 10:27 UTC (permalink / raw)





Rmail mode uses a small C program, movemail (movemail.exe on Win32),
to move mail from a spool file in Unix mbox format to an rmail file.

The problem I've got with it is actually a feature: it uses some kind
of file locking mechanism to prevent the spool file being accessed by
the mail fetching program at the same time. As strace has told me,
this seems to use some kind of link, but I don't even know if symbolic
or hard. In any case, this seems to be the reason why the spool file
cannot be on a FAT32 partition: movemail will get into an endless
cycle, trying over and over again to create some link, which the
kernel refuses with never-ending patience.

The reason why this is a problem is that I use both Emacs versions on
a dual-boot system (GNU/Linux and Win32), making it desirable to have
the spool files accessible under both OSes, and this is only possible
on a FAT32 partition.

>From what I said above, it seems evident that movemail.exe cannot
possibly use the same kind of file locking system as movemail (it
might be Win32 never permits two processes to modify the same file at
the same time, making any further measures superfluous, but who
knows). Since both appear to be compiled from the same source, I have
had a look at them, hoping to "disable" the file locking mechanism in
some way.

This seems, however, no trivial task, as so much in the emacs sources
understandably has multiple dependencies, and I haven't been able to
sort out the crucial difference between compiling movemail.c for Win32
and for Linux.

Could anybody provide guidance for me here? Or is the very idea flawed
in some way? I am well aware disabling the file locking mechanism
means in fact creating an unsafe program (or crippling it, as some
would probably put it), but this would pose no danger to my system as
it is set up. But it would spare me numerous reboots.

-- 


Florian v. Savigny

If you are going to reply in private, please be patient, as I only
check for mail something like once a week. - Si vous allez répondre
personellement, patientez s.v.p., car je ne lis les courriels
qu'environ une fois par semaine.

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2004-07-01 10:17 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-19 10:27 modifying movemail Florian von Savigny
2004-06-19 17:39 ` Pascal Bourguignon
2004-06-19 21:54   ` Florian von Savigny
2004-06-19 22:10     ` Pascal Bourguignon
2004-06-19 22:45       ` Florian von Savigny
2004-06-20  5:32         ` Pascal Bourguignon
2004-06-19 22:28     ` Florian von Savigny
2004-06-20  5:42       ` Pascal Bourguignon
2004-06-20 10:13         ` Florian von Savigny
2004-06-20 10:46           ` poor man's movemail Florian von Savigny
2004-06-21 13:26     ` modifying movemail Thien-Thi Nguyen
2004-07-01 10:17     ` Kai Grossjohann

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.