From: Joel Aelwyn <joel@lightbearer.com>
To: mlmmj@mlmmj.org
Subject: Re: archive directory only has one message in it
Date: Fri, 09 Sep 2005 07:20:32 +0000 [thread overview]
Message-ID: <432137C0.60007@lightbearer.com> (raw)
In-Reply-To: <4320A09D.9060608@diamond.name>
[-- Attachment #1: Type: text/plain, Size: 2354 bytes --]
Jason Diamond wrote:
> Hi.
>
> I just created my first mailing list today using mlmmj. Everything seems
> to be working except for the archive. When I look in the archive
> directory, it contains one file called "0". The contents of that file
> are the most recent message posted to the list. The rest of the messages
> seem to have been lost. Is this normal or might I have something
> misconfigured?
>
> I'm using Exim 4 on a Debian Sarge machine. The version of mlmmj I'm
> running is 1.2.7 since that what was in Debian experimental. The
> ChangeLog didn't say any bug was fixed regarding archives for 1.2.8 so I
> haven't tried doing a manual upgrade to that version.
>
> Any ideas? Thanks.
My copy, from the same source but hand-built to handle a few other tweaks
(like my variant of "support characters other than + as a separator", which I
need to tweak slightly given something pointed out on the list), certainly
doesn't appear to have this issue. However, there is one thing you should
probably check, given the description of the problem: make sure the 'index'
file exists, and is writeable, since that appears to be what mlmmj uses to
keep track of the archive's last posting number (and thus, if it doesn't
exist, it probably thinks that it should write out '0', and does so... and if
it can't create the index file, well... lather, rinse, repeat). Did you check
your logfile to see if it reported anything?
Wishlist items:
*) Detect if the index file fails to write out, and if so, store the message
in a temporary area with a guaranteed-unique name (it might start with a hash
of the entire message, and then append '.1', '.2', etc, if there are other
copies...)
*) Detect a pre-existing file, and don't write to it if one exists (I think
O_EXCL is generally available these days?) This one is pretty crucial,
actually, if there is ever any intent of allowing 'mere mortals' to touch any
part of the queue system, but delivery runs as mlmmj; otherwise it's prone to
symlink attacks, etc. Very bad. If the file already exists, something has gone
horribly wrong in the first place, and the message should probably be handed
as above; assume this is for the humans to untangle, but throw lots of klaxons
about it (mail the list admin, log it, etc.) so that they know.
--
Joel Aelwyn <joel@lightbearer.com>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 187 bytes --]
next prev parent reply other threads:[~2005-09-09 7:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-08 20:35 archive directory only has one message in it Jason Diamond
2005-09-09 7:20 ` Joel Aelwyn [this message]
2005-09-09 14:50 ` Jason Diamond
2005-09-10 17:37 ` Søren Boll Overgaard
2005-09-10 19:25 ` Søren Boll Overgaard
2005-09-11 8:36 ` Mads Martin Joergensen
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=432137C0.60007@lightbearer.com \
--to=joel@lightbearer.com \
--cc=mlmmj@mlmmj.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.
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.