Ideas for injecting test messages

I want to inject some test messages into Mailman to test moderation functions via the REST API.
Any ideas on a simple way to do that?
Ideally I need to be able to clear them out somehow too.
thanks
as

Please disregard. Apparently there’s websites that let you search the Internet, through which I found:
https://pythonhosted.org/mailman/src/mailman/commands/docs/inject.html
On 25 Feb 2015, at 10:04 am, Andrew Stuart <andrew.stuart@supercoders.com.au> wrote:
I want to inject some test messages into Mailman to test moderation functions via the REST API.
Any ideas on a simple way to do that?
Ideally I need to be able to clear them out somehow too.
thanks
as
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/andrew.stuart%40s...
Security Policy: http://wiki.list.org/x/QIA9

Hi Andrew,
I am not sure how do I put this, but I think you should spend little more time investigating about the questions you send in to this list. Questions and answers seperated by a 3 hour window makes me feel like its not even a question, but a personel log. I agree mailman-devs can answer your queries more quickly, but if you can find answers from documentation then there is no point in sending in these queries. It would be easier if you collated your queries and send-in one email in a day or two?
Also, I really appriciate the authentication proxy that you are trying to build for mailman, please don't take this as any form of discouragement. These are my personel thoughts and in no way the opinion of the whole mailman community.
If anyone feels this was totally unnecessary, please correct me.
On 25 February 2015 at 07:57, Andrew Stuart <andrew.stuart@supercoders.com.au> wrote:
-- thanks, Abhilash Raj

On Feb 25, 2015, at 10:04 AM, Andrew Stuart wrote:
I think you found the command line interface for injecting messages, but you can also do it via the REST API. Do a POST to <api>/queues/<queuename> providing a list_id for the mailing list the message is targeting, and the text of the message you want to inject.
Ideally I need to be able to clear them out somehow too.
Do a GET on <api>/queues/<queuename> to get a list of all files in that
particular queue. The files
key will contain a list of "filebases" and you
can delete that file from the queue by DELETEing
<api>/queues/<queuename>/<filebase>.
You also get the filebase back in the Location header of the POST response.
Currently you cannot get the text or other information for a queue file through the REST API. I would welcome contributions for a GET on <api>/queues/<queuename>/<filebase>.
Cheers, -Barry

Please disregard. Apparently there’s websites that let you search the Internet, through which I found:
https://pythonhosted.org/mailman/src/mailman/commands/docs/inject.html
On 25 Feb 2015, at 10:04 am, Andrew Stuart <andrew.stuart@supercoders.com.au> wrote:
I want to inject some test messages into Mailman to test moderation functions via the REST API.
Any ideas on a simple way to do that?
Ideally I need to be able to clear them out somehow too.
thanks
as
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/andrew.stuart%40s...
Security Policy: http://wiki.list.org/x/QIA9

Hi Andrew,
I am not sure how do I put this, but I think you should spend little more time investigating about the questions you send in to this list. Questions and answers seperated by a 3 hour window makes me feel like its not even a question, but a personel log. I agree mailman-devs can answer your queries more quickly, but if you can find answers from documentation then there is no point in sending in these queries. It would be easier if you collated your queries and send-in one email in a day or two?
Also, I really appriciate the authentication proxy that you are trying to build for mailman, please don't take this as any form of discouragement. These are my personel thoughts and in no way the opinion of the whole mailman community.
If anyone feels this was totally unnecessary, please correct me.
On 25 February 2015 at 07:57, Andrew Stuart <andrew.stuart@supercoders.com.au> wrote:
-- thanks, Abhilash Raj

On Feb 25, 2015, at 10:04 AM, Andrew Stuart wrote:
I think you found the command line interface for injecting messages, but you can also do it via the REST API. Do a POST to <api>/queues/<queuename> providing a list_id for the mailing list the message is targeting, and the text of the message you want to inject.
Ideally I need to be able to clear them out somehow too.
Do a GET on <api>/queues/<queuename> to get a list of all files in that
particular queue. The files
key will contain a list of "filebases" and you
can delete that file from the queue by DELETEing
<api>/queues/<queuename>/<filebase>.
You also get the filebase back in the Location header of the POST response.
Currently you cannot get the text or other information for a queue file through the REST API. I would welcome contributions for a GET on <api>/queues/<queuename>/<filebase>.
Cheers, -Barry
participants (3)
-
Abhilash Raj
-
Andrew Stuart
-
Barry Warsaw