All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Goirand <thomas@goirand.fr>
To: mlmmj@mlmmj.org
Subject: Re: Web based moderation system for MLMMJ
Date: Sat, 07 Feb 2009 09:17:07 +0000	[thread overview]
Message-ID: <498D5193.2030502@goirand.fr> (raw)
In-Reply-To: <498C406B.9070200@goirand.fr>

Mads Martin Joergensen wrote:
> Thinking really quickly about it, here's the route I would have a look
> at:
> 
>   i) tunable 'cmdlinemoderation' which makes mlmmj not send mails,
>      but just leave it in the directory. Maybe even put a path to a
>      directory in the moderation file where mlmmj then would put the
>      same files as it would in LISTDIR/moderation. That could be the
>      directory where your web code would look and reflect upon
>  ii) when someone in the web moderation page clicks to moderate a mail
>      you would invoke the same code path from the commandline (see
>      listcontrol.c) as when a mail arrives accepting a moderation. You
>      might do this by just sending a mail to listname+moderate-KEY or
>      what the precise address should be.
> 
> Comments from Morten, etc. wrt. security would of course be welcome :)

I have read a bit listcontrol.c, and the way I understand it, is that
the web interface should:

- rename moderated with:
mv hash hash.sending

- call the following:
mlmmjsend -L listdir -m hash.sending

Just one thing: what is in execlp() that is not in the system exec()
function?

If it's THAT simple, then I guess I can write a very tiny (single file)
php script to do that job... Of course, php should have enough access
right to be able to read/write in the list dir, but I guess this is more
an administrator's job than mine in this case.

The only real issue that I can forecast here, is how to display nicely
the list of message to be moderated. I guess it would be best to use
something that already exists. Maybe there's a lib to do that in PEAR?
Anybody has an idea how to do this with not too much programming work?

Thomas

  parent reply	other threads:[~2009-02-07  9:17 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-06 13:51 Web based moderation system for MLMMJ Thomas Goirand
2009-02-07  8:30 ` Mads Martin Joergensen
2009-02-07  9:17 ` Thomas Goirand [this message]
2009-02-07 10:46 ` Mads Martin Joergensen
2009-02-07 13:10 ` Thomas Goirand
2009-02-07 13:34 ` Mads Martin Joergensen
2009-02-07 13:43 ` Christian Laursen
2009-02-08 12:54 ` Thomas Goirand
2009-03-01  6:54 ` Thomas Goirand
2009-03-01 23:53 ` James Scott
2009-03-02  6:27 ` Thomas Goirand
2009-03-04 20:20 ` Morten K. Poulsen
2009-03-04 20:37 ` Morten K. Poulsen
2009-03-04 23:38 ` Thomas Goirand
2009-03-06 16:43 ` Morten K. Poulsen
2009-03-06 19:36 ` Thomas Goirand
2009-03-06 20:40 ` Morten K. Poulsen

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=498D5193.2030502@goirand.fr \
    --to=thomas@goirand.fr \
    --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.