Modification to Listhandler to add "anonauthor"
cyberchucktx - July 31, 2005 - 03:22
| Project: | Listhandler |
| Version: | HEAD |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | philipnet |
| Status: | active |
Jump to:
Description
I would like to propose the addition of an "anonymous user" option within listhandler.
My specific situation/configuration:
- We have several MAILMAN mailing lists which are moderated and which require
administrative approval to join - We have a Civicspace website set up and forums which correspond to the mailman lists.
- Only a small subset of the Mailman subscribers have userids on the Civicspace site.
Want we want:
- Users on the MAILMAN list post and will have their postings automagically submitted to the
correct Civicspace forum, thus effectively turning the CS forum into an archive within CS. - Users of the Civicspace forums can post and have their entries sent to the Mailman list.
What currently happens:
- When a Mailman subscriber sends to the Mailman mailing list, it gets propagated to the CS website.
- If the subscriber does NOT have a valid CS userid, it is automagically created; the admin
can specify whether the newly-created user will be blocked (meaning whether the user
is allowed to login and post).If the user IS blocked, then his/her posting will not be
done to the indicated forum.
My / our proposed solution: create a new option in listhandler of "anonymous user", i.e., a
valid CS userid which will post the EMAIL item as outlined above.
This has several benefits:
- A new CS user is not automatically created (in our case, beneficial, as we have > 500 on
one of our mailing list and most of them won't even WANT a CS userid). - We can set the privs of the anonymous user to only post to certain forums.
I have implemented this in a modified listhandler module; it appears to work just fine as follows:
- A listhandler option has been added ("listhandler_anonauthor"). A text area has been defined on the configuration screen and the value stored as per other values in the configuration process.
- If an anonymous posting (from the Mailman user) comes in:
- If the anonauthor has been specified in the listhandler configuration AND the user is valid,
then the posting is performed under that userid. - if the anonyauthor field has been left blank then the usual listhandler processing takes place.
- If the anonauthor has been specified in the listhandler configuration AND the user is valid,
As a new participant in this process (module submission) where should I post my version of the module?
Charlie (cyberchucktx)

#1
sounds interesting. Ideally, you should attach a patch to this issue. If you are new to generating patch files, you can attach the entire file.
#2