[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: modifying movemail
From: |
Pascal Bourguignon |
Subject: |
Re: modifying movemail |
Date: |
20 Jun 2004 00:10:37 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
Florian von Savigny <florian265@uboot.com> writes:
> Thanks for this quick and simple poor man's file-locking mechanism,
> Pascal, which I find quite charming (and couldn't have thought of) and
> hadn't hoped for at all.
>
> I fear, however, that the following is a bit less than what movemail
> is expected to do:
>
> > mv "$1" "$2"
>
> as it does not overwrite the target Rmail file, but append to it while
> emptying the spool file. So I suppose s.th like
>
> cat "$1" >> "$2"
> echo "" > "$1"
>
> should do it. But movemail also converts Unix mbox format to Babyl
> format on the fly (or have they switched to mbox as internal Rmail
> format in the meantime? I read they were planning it.). How to achieve
> that?
>
> [BTW, I seem to have been less than clear about one thing: the movemail
> I need to modify is the one to run under Linux, not the one that runs
> under Windows. That has to deal with FAT32 anyway, thus should be able
> to do the trick (though I haven't yet tested it--brrr...). But this
> does not interfere with the usefulness of your solution.]
>
>
> So thanks a lot - but is anybody able to help with the conversion (or
> supply a pointer to the right information)?
In emacs: C-h i m emacs RET m rmail RET m movemail RET
--
__Pascal Bourguignon__ http://www.informatimago.com/
There is no worse tyranny than to force a man to pay for what he does not
want merely because you think it would be good for him. -- Robert Heinlein