[Mailman-Users] Cannot set digest mode via URL

Mark Sapiro mark at msapiro.net
Fri Sep 3 04:18:32 CEST 2010



----- Original Message ---------------

Subject: Re: [Mailman-Users] Cannot set digest mode via URL
   From: "W. Curtis Preston" <curtis at backupcentral.com>
   Date: Thu, 2 Sep 2010 00:06:55 -0700
     To: Mark Sapiro <mark at msapiro.net>
     Cc: Brad Knowles <brad at shub-internet.org>,
          mailman-users at python.org,
          Todd Zullinger <tmz at pobox.com>

>--0003255768ee9cfa06048f417582
>Content-Type: text/plain; charset=ISO-8859-1
>
>Mark,
>
>I did see that answer, and did use rawurlencode to encode the email strings,
>and it's still not working.
Go to the web admin Membership Management... -> Membership List page(s)
and view the page source. Each user's row should look like


    <tr>
      <td><center><INPUT name="username%40gmail.com_unsub"
type="CHECKBOX" value="off" ></center></td>
      <td><a
href="../../options/gpc-talk/username--at--gmail.com">username at gmail.com</a><br><INPUT
name="username%40gmail.com_realname" type="TEXT" value="Users Name"
size="20" ><INPUT name="user" type="HIDDEN"
value="username%40gmail.com" ></td>
      <td><center><INPUT name="username%40gmail.com_mod"
type="CHECKBOX" value="off" ></center></td>
      <td><center><INPUT name="username%40gmail.com_hide"
type="CHECKBOX" value="off" ></center></td>
      <td><center><INPUT name="username%40gmail.com_nomail"
type="CHECKBOX" value="off" ></center></td>

      <td><center><INPUT name="username%40gmail.com_ack"
type="CHECKBOX" value="off" ></center></td>
      <td><center><INPUT name="username%40gmail.com_notmetoo"
type="CHECKBOX" value="off" ></center></td>
      <td><center><INPUT name="username%40gmail.com_nodupes"
type="CHECKBOX" value="on" CHECKED ></center></td>
      <td><center><INPUT name="username%40gmail.com_digest"
type="CHECKBOX" value="off" ></center></td>
      <td><center><INPUT name="username%40gmail.com_plain"
type="CHECKBOX" value="on" CHECKED ></center></td>
      <td><center>
<Select name="username%40gmail.com_language">
 <option value="en" Selected> English (USA) </option>

</Select></center></td>
    </tr>

The only thing that changed on this page changed between Mailman 2.1.9
and 2.1.10 and that was the encoding of '@' as '%40' in the email
addresses, and also encoding of a few other characters, double-quote
in particular.

Ther chould be no differences between cPanel's page and the
corresponding upstream Mailman page.

I note in your original post, you said:

>First you have to subscribe them, then you would issue the following URL:
>
>http://<domain>/mailman/admin/<listname>/members?user=<email-address>&
><email-address>
>_digest=1&setmemberopts_btn=Submit%20Your%20Changes&allmodbit_val=0&
><email-address>_language=en&<email-address>_nodupes=1&adminpw=
><adminpassword>
>
>This has also worked for a few years, but I just found out that it isn't
>working.  I can set someone to digest mode by manually accessing that same
>page, but the URL no longer does the job.  When I issue the URL manually in
>my browser, instead of setting the user to digest mode and returning me to
>the screen with the user on it, it returns me to the /members page,
>displaying a list of users.


Which is exactly what I would expect. That URL is equivalent to
checking the user's 'digest box on the membership list and clicking
Submit Your Changes. It will normally return to the same page.

I have not looked to see if this is an issue, but there is one
potential glitch. If the number of list members exceeds
admin_member_chunksize, there will be an additional query fragment in
the URL like

 http://<domain>/mailman/admin/<listname>/members?letter="u"

for an email address beginning with "u". In fact it can be even more
complex if the number of users beginning with a single letter exceeds
admin_member_chunksize.

-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan



More information about the Mailman-Users mailing list