[Mailman-Users] What does mailman do with a POST?
Richard at Damon-Family.org
Tue Jul 31 21:25:32 EDT 2018
On 7/31/18 9:15 PM, Bernie Cosell wrote:
> On 31 Jul 2018 at 15:53, Mark Sapiro wrote:
>> On 07/30/2018 05:08 AM, Bernie Cosell wrote:
>>> I'm trying to submit a form or two from a program and I can't quite
>>> understand Mailman's form handling, this with Mailman 2.1.23.
>>> What does Mailman do to when receiving a POST to decide if there's
>>> something to do or not? THANKS!
>> It looks at the POST data. In the case of the admin CGI just returning
>> the Mass Removals form with no errors and no changes, this means it
>> the right path to LISTNAME/members/remove and it got a good
> That's a start... :o)
>> Given that, the only way it would return the form with no message is
>> it got no non-blank values for unsubscribees or unsubscribees_upload.
>> You refer to csrf_token as csrf_object. If you are really submitting
>> value as csrf_object, that wouldn't work, but you should get an error.
> Right , I mistyped.. I still don't understand why I'm not getting anything.
> Here's the request I just sent:
> 'cookie2' => '$Version="1"',
> 'csrf-token' =>
> 'setmemberopts-btn' => 'Submit Your Changes',
> 'cookie' =>
> 'user-agent' => 'Mozilla/5.0',
> 'unsubscribees' => 'bernie'
> '_method' => 'POST',
> '_uri' =>
> s/remove')}, 'URI::http' ),
> And the page I got back was the remove page -- no error no success [it
> should be an error, since I'm not subscribed to the list I'm playing with..:o)]
> Do I have to do something special with the data for the 'unsubscribees' ? I
> know it is a TEXTAREA -- but I just assumed I could pass it a string and
> that'd be OK.
> Thanks for the help!
> Bernie Cosell
> bernie at fantasyfarm.com
> -- Too many people; too few sheep --
With Mailman2, submitting a non-subscribed email address to the
unsubscribe link doesn't give an error message. If you read the text
sent back, it says something like IF you were subscribed, and email will
be set to your email address to confirm the unsubscription. I presume
someone is subscribed to a list (assuming the list doesn't post the
More information about the Mailman-Users