public inbox for mlmmj@mlmmj.org
 help / color / mirror / Atom feed
From: Yuri D'Elia <wavexx@thregr.org>
To: mlmmj@mlmmj.org
Subject: Re: [mlmmj] Export lists subscribers
Date: Fri, 17 Jan 2014 14:15:04 +0000	[thread overview]
Message-ID: <52D93AE8.5020002@thregr.org> (raw)
In-Reply-To: <CA+pf5NKFhJp2Uo7j-F5g=e+cJUt0PYSrML_4m4dSDqZNrv+19Q@mail.gmail.com>

On 01/17/2014 12:08 AM, Aníbal Pacheco wrote:
> Hello, in our organization all the time people are asking who are the
> subscribers of a list, which represent effort to our IT department. I want
> to export this data from the server frequently and present it on a wiki or
> plain HTML.
> Is there a tool or script that already does that?

Depends on the level of sophistication you need ;)

==

#!/bin/sh
list="$1"
echo '<html><body><ul>'
cat /var/spool/mlmmj/$list/subscribers.d/* \
  | sed -e 's/.*/<li><a href="mailto:\0">\0<\/a>/'
echo '</ul></body></html>'

==



  reply	other threads:[~2014-01-17 14:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-16 23:08 [mlmmj] Export lists subscribers Aníbal Pacheco
2014-01-17 14:15 ` Yuri D'Elia [this message]
2014-01-17 15:30 ` Aníbal Pacheco
2014-01-17 22:23 ` Ben Schmidt

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=52D93AE8.5020002@thregr.org \
    --to=wavexx@thregr.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox