Page 1 of 1
New plugin: Mailinglist (Majordomo)
Posted: Thu Nov 02, 2006 8:11 pm
by Davy
I built this plugin for my own site, but I think it may be usable for others too.
This plugin lets people subscribe and unsubscribe to a mailinglist based on Majordomo. Because of that, it won't work properly with other lists (e.g. Yahoo! Groups).
Well, actually the plugin works well with all mailinglists that use the body of an email message for the commands.
As anyone can see this is just a tweaked Contact Form, so thanks Garvin for building that!
Download is available at:
http://www.davykager.nl/dump/serendipit ... nglist.zip
Re: New plugin: Mailinglist (Majordomo)
Posted: Fri Nov 03, 2006 11:35 am
by garvinhicking
Hi Davy!
Thanks for contributing to serendipity! I had a look at your plugin and I like the intent.
I'd really like to add your functionality, but the problem is that it includes a lot of redundant code (only about 5 lines of code are really changed in comparison to the contactform plugin, plus a new template). So maybe you'd like to instead modify the current contactform plugin and add an option to say "Enable mailinglist-format?" which one can enable. If that option is set, you could use the other mailinglist.tpl file and change the format of the mail; if it is off, it operates as the usual contactform plugin.
Then you also need to modify the language constants to add that the plugin supports majordomo-subscriptions...
How about that, would you like to have a go at it? You have modified your own plugin pretty well, so I am very sure you're capable of it!
Best regards,
Garvin
Posted: Fri Nov 03, 2006 1:02 pm
by Davy
Well, I'm thinking about modifying the plugin more. It should have support for both Yahoo! and Majordomo-lists.
So in the configuration area, you will be able to selct your type of list (using radio buttons).
But maybe it is a good idea to build this in the Contact Form. Or maybe it is useful to include the Mail Entry plugin, so an often discussed problem on this forum is solved.

Posted: Tue Nov 07, 2006 9:38 pm
by judebert
Count one vote for the Mail Entry plugin! Although, of course, it's really Garvin's vote that counts, since he's the one who has to maintain all this stuff.
One man, one vote. Garvin is the man, and he gets the vote.
Posted: Wed Nov 08, 2006 9:39 am
by garvinhicking
Hi!
Hm, what I really would feel bad about is duplicate code; if we merge the plugin with the 'Mail Entry' plugin, we would have 80% duplicate code in that plugin and the contact form.
So instead I'd really more like to merge it with the contact form, and then add a notice in the mail entry plugin that tells people that if they have a majordomo running somewhere, they should use the contact form plugin to let people sign up there?
Best regards,
Garvin
Posted: Wed Nov 08, 2006 12:19 pm
by Davy
In a few weeks I'll extend the plugin a bit. So please wait...
(However, it sounds good to make a notice in the Mail Entry plugin!)