[Mailman-Developers] Message acceptance options not working?

2014-07-28 Thread ML mail
Hi,

I am testing the two following list config parameters:

default_nonmember_action
default_member_action


and actually the following options do not work: Reject (with notification) and 
Discard (no notification)


It looks like currently only the hold for moderator and accept options are 
working. Is it possible that these two are not ready yet in the beta4 version 
of mailman?

Furthermore the approval mail to the moderator contains in its body as reason 
XXX:

  Reason:  XXX

I guess this also needs adapting.

Let me know if I should open a bug for this.

Regards
ML
___
Mailman-Developers mailing list
Mailman-Developers@python.org
https://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: 
http://www.mail-archive.com/mailman-developers%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-developers/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Developers] Add moderators from the command line

2014-07-28 Thread ML mail
Cheers Rajeev!



On Monday, July 28, 2014 8:44 AM, Rajeev S  wrote:
 


Hi,



On Sun, Jul 27, 2014 at 4:29 PM, ML mail  
wrote:

Yes, I guess something like a "-m" option would be good to specify that the 
e-mails being added with the "-a" option are moderators. Right now I have 
switched to using the REST API as it has all features I need, great work btw!
>
>
>
>On Saturday, July 26, 2014 12:20 AM, Barry Warsaw  wrote:
>
>
>
>On Jul 24, 2014, at 02:03 PM, 'ML mail' via barry wrote:
>
>
>>In Mailman3 it would be nice to be able to add moderators to a mailing list
>>from the command line using the mailman command. Currently I can only see the
>>possibility to add new members to a mailing list, or did I miss something
>>here?
>
>You're not missing anything.  The CLI for adding members isn't fantastic - you
>have to provide a file with one member per line.  The way to extend this would
>be to be able to specify the members' role when adding them.  I haven't
>thought of an elegant way to do this via the CLI, especially when multiple
>members can be added.  Once a good interface is designed, it would be pretty
>easy to write the code to do it.
>
>
The CLI I built as part of GSoC 2014 supports the above features

http://bazaar.launchpad.net/~rajeevs1992/mailman.client/mailmancli


It is based on the REST API.

To Add moderators you can do

./mmclient add-moderator list l...@domain.org --user a...@b.com b...@c.com ...
Similarly to add owners do
./mmclient add-owner list l...@domain.org --user a...@b.com b...@c.com
 
To add normal members

./mmclient subscribe user us...@bar.com us...@bar.com --list l...@domain.org
You might want to install the PLY library 
[https://pypi.python.org/pypi/ply/3.4] to test the CLI fully.
___
Mailman-Developers mailing list
Mailman-Developers@python.org
https://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: 
http://www.mail-archive.com/mailman-developers%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-developers/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Developers] Add moderators from the command line

2014-07-27 Thread ML mail
Yes, I guess something like a "-m" option would be good to specify that the 
e-mails being added with the "-a" option are moderators. Right now I have 
switched to using the REST API as it has all features I need, great work btw!



On Saturday, July 26, 2014 12:20 AM, Barry Warsaw  wrote:
 


On Jul 24, 2014, at 02:03 PM, 'ML mail' via barry wrote:


>In Mailman3 it would be nice to be able to add moderators to a mailing list
>from the command line using the mailman command. Currently I can only see the
>possibility to add new members to a mailing list, or did I miss something
>here?

You're not missing anything.  The CLI for adding members isn't fantastic - you
have to provide a file with one member per line.  The way to extend this would
be to be able to specify the members' role when adding them.  I haven't
thought of an elegant way to do this via the CLI, especially when multiple
members can be added.  Once a good interface is designed, it would be pretty
easy to write the code to do it.

Cheers,
-Barry
___
Mailman-Developers mailing list
Mailman-Developers@python.org
https://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: 
http://www.mail-archive.com/mailman-developers%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-developers/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Developers] REST API documentation (list of all possible parameters)

2014-07-25 Thread ML mail
Thanks for the pointers...

Now in my specific case where I would like to add an owner to my newly created 
mailing list via the API: if I understand correctly I will have to "PATCH" the 
configuration of my mailing list using the URL 
http://localhost:8001/3.0/lists/mailingl...@example.com/config and pass it the 
owner's e-mail addres in the  "owner_address" parameter?



On Saturday, July 26, 2014 12:07 AM, Barry Warsaw  wrote:
 


On Jul 25, 2014, at 01:37 PM, 'ML mail' via barry wrote:


>I am trying to find out all possible REST API parameters but can't find any
>documentation listing them all. For example I want to create a new mailing
>list using the following REST API URL:
>
>http://localhost:8001/3.0/list
>
>in the documentation I could only find the "fqdn_listname" parameter but
>there must definitely be more possible parameters such as one for the
>description, etc. Where can I find a list of these parameters?

The list creation options are limited, but you can reconfigure the mailing
list after its been created.  This page describes how to create, delete, and
otherwise manage mailing list life cycles:

http://pythonhosted.org//mailman/src/mailman/rest/docs/lists.html

This page describes how to configure a list once it's created:

http://pythonhosted.org//mailman/src/mailman/rest/docs/configuration.html

When in doubt, UTSL:

http://bazaar.launchpad.net/~mailman-coders/mailman/3.0/view/head:/src/mailman/rest/lists.py#L205

Cheers,
-Barry
___
Mailman-Developers mailing list
Mailman-Developers@python.org
https://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: 
http://www.mail-archive.com/mailman-developers%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-developers/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


[Mailman-Developers] REST API documentation (list of all possible parameters)

2014-07-25 Thread ML mail
Hello,

I am trying to find out all possible REST API parameters but can't find any 
documentation listing them all. For example I want to create a new mailing list 
using the following REST API URL:

http://localhost:8001/3.0/list

in the documentation I could only find the "fqdn_listname" parameter but there 
must definitely be more possible parameters such as one for the description, 
etc. Where can I find a list of these parameters?

Regards
ML
___
Mailman-Developers mailing list
Mailman-Developers@python.org
https://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: 
http://www.mail-archive.com/mailman-developers%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-developers/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


[Mailman-Developers] Add moderators from the command line

2014-07-24 Thread ML mail
Hi,

In Mailman3 it would be nice to be able to add moderators to a mailing list 
from the command line using the mailman command. Currently I can only see the 
possibility to add new members to a mailing list, or did I miss something here?

Regards
ML
___
Mailman-Developers mailing list
Mailman-Developers@python.org
https://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: 
http://www.mail-archive.com/mailman-developers%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-developers/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Developers] listarchiver table missing from postgresql schema

2014-07-22 Thread ML mail
Hi Aurélien,

You might then also be interested to follow the bug I submitted for this 
purpose:
Bug #1343137 “listarchiver table missing from postgresql schema” : Bugs : GNU 
Mailman

  
             
Bug #1343137 “listarchiver table missing from postgresql...
I am currently testing Mailman3 with PostgreSQL and found out that the 
listarchiver table is missing from the PostgreSQL schema 
(database/schema/postgres.sql). It i...  
View on bugs.launchpad.net Preview by Yahoo  
  
 


On Friday, July 18, 2014 10:28 AM, Aurelien Bompard  
wrote:
 


Got hit by that too, I just created a merge request with the missing file : 
https://code.launchpad.net/~abompard/mailman/pgsql_upgrade/+merge/227289

Could anyone have a quick look at this?

Aurélien
___
Mailman-Developers mailing list
Mailman-Developers@python.org
https://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: 
http://www.mail-archive.com/mailman-developers%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-developers/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9

Re: [Mailman-Developers] OT: Re: user table in Mailman3 with PostgreSQL

2014-07-16 Thread ML mail
Thanks, it all makes sense now!




On Wednesday, July 16, 2014 7:20 PM, Barry Warsaw  wrote:
On Jul 16, 2014, at 08:20 AM, 'ML mail' via barry wrote:




>Thanks for the details but actually I was now only asking in which table are
>stored the e-mail addresses of a mailing's list subscribers? I thought they
>would be stored in the "user" table but I can't see any e-mail addresses
>there, neither in the member table.

Correct.  It's useful to understand the model.

http://pythonhosted.org//mailman/src/mailman/docs/8-miles-high.html#user-model

Users have an id and a display name.  Addresses are separate objects linked to
at most one user.  A user can be linked to many addresses.  Members associate
an address/user with a mailing list[*] under a specific role.  Rosters are
"magical" objects which perform queries to answer questions like "all the
regular delivery members of a mailing list" or "all of the list's moderators".

So the information you're looking for isn't captured in a single table.
You'll have to do a query to get the email addresses of a mailing list's
subscribers.  Take a look at the roster implementations for details.

Cheers,
-Barry

[*] A member links a user only if that user has a preferred address.

___
Mailman-Developers mailing list
Mailman-Developers@python.org
https://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: 
http://www.mail-archive.com/mailman-developers%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-developers/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Developers] OT: Re: user table in Mailman3 with PostgreSQL

2014-07-16 Thread ML mail
Thanks, it all makes sense now!




On Wednesday, July 16, 2014 7:20 PM, Barry Warsaw  wrote:
On Jul 16, 2014, at 08:20 AM, 'ML mail' via barry wrote:




>Thanks for the details but actually I was now only asking in which table are
>stored the e-mail addresses of a mailing's list subscribers? I thought they
>would be stored in the "user" table but I can't see any e-mail addresses
>there, neither in the member table.

Correct.  It's useful to understand the model.

http://pythonhosted.org//mailman/src/mailman/docs/8-miles-high.html#user-model

Users have an id and a display name.  Addresses are separate objects linked to
at most one user.  A user can be linked to many addresses.  Members associate
an address/user with a mailing list[*] under a specific role.  Rosters are
"magical" objects which perform queries to answer questions like "all the
regular delivery members of a mailing list" or "all of the list's moderators".

So the information you're looking for isn't captured in a single table.
You'll have to do a query to get the email addresses of a mailing list's
subscribers.  Take a look at the roster implementations for details.

Cheers,
-Barry

[*] A member links a user only if that user has a preferred address.

___
Mailman-Developers mailing list
Mailman-Developers@python.org
https://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: 
http://www.mail-archive.com/mailman-developers%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-developers/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


[Mailman-Developers] listarchiver table missing from postgresql schema

2014-07-16 Thread ML mail
Hi,

I am currently testing Mailman3 with PostgreSQL and found out that the 
listarchiver table is missing from the PostgreSQL schema 
(database/schema/postgres.sql). It is correctly included in SQLite migration 
schema though (database/schema/sqlite_2013040600_01.sql).

Regards
ML
___
Mailman-Developers mailing list
Mailman-Developers@python.org
https://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: 
http://www.mail-archive.com/mailman-developers%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-developers/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Developers] OT: Re: user table in Mailman3 with PostgreSQL

2014-07-16 Thread ML mail
Thanks for the details but actually I was now only asking in which table are 
stored the e-mail addresses of a mailing's list subscribers? I thought they 
would be stored in the "user" table but I can't see any e-mail addresses there, 
neither in the member table.





On Wednesday, July 16, 2014 4:58 PM, Daniel Kahn Gillmor 
 wrote:
On 07/16/2014 10:34 AM, ML mail wrote:
> Thanks for the trick with the double quotes to escape reserved keywords.

It's probably worth reading the PostgreSQL documentation for this sort
of thing:

http://www.postgresql.org/docs/9.3/static/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS


> Actually I wanted to display the content of the user table to find out in 
> which table are the subscribers of any mailing list recorded. Do you have any 
> idea? 

You already know how to find the content of the table:

  select * from "tablename"

If you're asking about inspecting the table structure from the psql
command line, you probably want \d "tablename" or one of its variants.
If you're not familiar with the psql command line, you probably want to
know about the two main help commands: \? and \h.

For further questions about postgresql, you should ask on a
psql-specific mailing list.  The current list is for discussing mailman,
so we are increasingly off-topic.

You can find a good set of postgresql mailing lists here:

http://www.postgresql.org/list/

Regards,




    --dkg

___
Mailman-Developers mailing list
Mailman-Developers@python.org
https://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: 
http://www.mail-archive.com/mailman-developers%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-developers/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Developers] user table in Mailman3 with PostgreSQL

2014-07-16 Thread ML mail
Thanks for the trick with the double quotes to escape reserved keywords.

Actually I wanted to display the content of the user table to find out in which 
table are the subscribers of any mailing list recorded. Do you have any idea? 




On Tuesday, July 15, 2014 3:25 PM, Daniel Kahn Gillmor  
wrote:
On 07/15/2014 06:16 AM, ML mail wrote:
> Hello,
> 
> I am not sure it is a good idea to name the user table "user". As you can see 
> in PostgreSQL "user" is a reserved word:
> 
> \c mailman
> 
> select * from user;
>  current_user
> --
>  postgres
> 
> (1 row)
> 
> Any ideas how I can still list the content of the mailman3 user table in 
> PostgreSQL?

You should wrap the name of the table in double quotation marks:

dkg=> create table "user" ( foo int );
CREATE TABLE
dkg=> insert into "user" (foo) VALUES (1);
INSERT 0 1
dkg=> select * from "user";
foo



-
   1
(1 row)

dkg=>

This is generally good practice for all table names, if you want to
treat them consistently in your code.

hth,

    --dkg

___
Mailman-Developers mailing list
Mailman-Developers@python.org
https://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: 
http://www.mail-archive.com/mailman-developers%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-developers/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


[Mailman-Developers] user table in Mailman3 with PostgreSQL

2014-07-15 Thread ML mail
Hello,

I am not sure it is a good idea to name the user table "user". As you can see 
in PostgreSQL "user" is a reserved word:

\c mailman

select * from user;
 current_user
--
 postgres

(1 row)

Any ideas how I can still list the content of the mailman3 user table in 
PostgreSQL?

Regards
ML

___
Mailman-Developers mailing list
Mailman-Developers@python.org
https://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: 
http://www.mail-archive.com/mailman-developers%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-developers/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


[Mailman-Developers] Mailman3 user management

2014-07-08 Thread ML mail
Hi,

I installed Mailman 3 and Postorius all working fine so far but I have a 
question regarding user management. I got one admin user created while running 
the "syncdb" command in Django, but how do I now create additional users?

Ideally I would like one "domain admin" user (multi-domain hosting environment) 
who can manage mailing lists for a specific domain, is this possible?

Regards,
ML

___
Mailman-Developers mailing list
Mailman-Developers@python.org
https://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: 
http://www.mail-archive.com/mailman-developers%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-developers/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9