public inbox for mlmmj@mlmmj.org
 help / color / mirror / Atom feed
* [mlmmj] Export lists subscribers
@ 2014-01-16 23:08 Aníbal Pacheco
  2014-01-17 14:15 ` Yuri D'Elia
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Aníbal Pacheco @ 2014-01-16 23:08 UTC (permalink / raw)
  To: mlmmj

[-- Attachment #1: Type: text/plain, Size: 290 bytes --]

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?

thanks

[-- Attachment #2: Type: text/html, Size: 336 bytes --]

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

* Re: [mlmmj] Export lists subscribers
  2014-01-16 23:08 [mlmmj] Export lists subscribers Aníbal Pacheco
@ 2014-01-17 14:15 ` Yuri D'Elia
  2014-01-17 15:30 ` Aníbal Pacheco
  2014-01-17 22:23 ` Ben Schmidt
  2 siblings, 0 replies; 4+ messages in thread
From: Yuri D'Elia @ 2014-01-17 14:15 UTC (permalink / raw)
  To: mlmmj

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>'

==



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

* Re: [mlmmj] Export lists subscribers
  2014-01-16 23:08 [mlmmj] Export lists subscribers Aníbal Pacheco
  2014-01-17 14:15 ` Yuri D'Elia
@ 2014-01-17 15:30 ` Aníbal Pacheco
  2014-01-17 22:23 ` Ben Schmidt
  2 siblings, 0 replies; 4+ messages in thread
From: Aníbal Pacheco @ 2014-01-17 15:30 UTC (permalink / raw)
  To: mlmmj

[-- Attachment #1: Type: text/plain, Size: 740 bytes --]

Good start :) thank you


On Fri, Jan 17, 2014 at 12:15 PM, Yuri D'Elia <wavexx@thregr.org> wrote:

> 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>'
>
> ====
>
>

[-- Attachment #2: Type: text/html, Size: 1237 bytes --]

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

* Re: [mlmmj] Export lists subscribers
  2014-01-16 23:08 [mlmmj] Export lists subscribers Aníbal Pacheco
  2014-01-17 14:15 ` Yuri D'Elia
  2014-01-17 15:30 ` Aníbal Pacheco
@ 2014-01-17 22:23 ` Ben Schmidt
  2 siblings, 0 replies; 4+ messages in thread
From: Ben Schmidt @ 2014-01-17 22:23 UTC (permalink / raw)
  To: mlmmj

On 18/01/14 1:15 AM, Yuri D'Elia wrote:
> 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>'
>
> ==

You may prefer mlmmj-list to cat.

/usr/local/bin/mlmmj-list -L /var/spool/mlmmj/$list

Ben.






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

end of thread, other threads:[~2014-01-17 22:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-16 23:08 [mlmmj] Export lists subscribers Aníbal Pacheco
2014-01-17 14:15 ` Yuri D'Elia
2014-01-17 15:30 ` Aníbal Pacheco
2014-01-17 22:23 ` Ben Schmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox