Stop Already Subscribed Message
![](https://secure.gravatar.com/avatar/d5756482864415f08c30fffa84a0a1c3.jpg?s=120&d=mm&r=g)
I recently installed mailman.
How do I stop mailman from sending a confirmation e-mail if the e-mail address is already subscribed to the list?
Right now, a message is sent stating that the e-mail address is already subscribed.
![](https://secure.gravatar.com/avatar/746f7519ba02fb0d815e59f305c53fa2.jpg?s=120&d=mm&r=g)
Ki Song wrote:
First, this only happens when the subscribe attempt is from the web. If it is by email, the email command results just say you are already subscribed.
That said, Mailman's behavior when an attempt is made to subscribe a member depends on the setting of Privacy options...->Subscription rules->private_roster.
If the roster can be viewed by anyone, the web subscribe interface will simply report that you are already a member.
If however, the roster can be viewed only by list members or the admin, we do not report that you are already a member because this may be an attempt by a third party to determine if you are a member, and we notify the member to alert the member that someone may be 'probing' for her list membership.
So the answer to your question is make the list roster viewable by anyone. If you don't want to do that (because of potential spam harvesting or other reasons), you'll have to hack the code in Mailman/Cgi/Subscribe.py.
-- Mark Sapiro <msapiro@value.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/d5756482864415f08c30fffa84a0a1c3.jpg?s=120&d=mm&r=g)
May I should have clarified: This is an announce-only list where we are sending out monthly newsletters to our customers. Therefore, they have no idea that there is a "webpage" that allows them to setup their account or to modify their subscription settings. Basically, they have no idea that it is mailman that they are using. I just setup an html form that automatically sends an e-mail to the list-subscribe@domain.com e-mail address to subscribe and sends an e-mail to list-leave@domain.com e-mail address to unsubscribe users. They have no interaction with the default mailman web interface.
Since I do not want the e-mail list to be viewable by potential spam harvesters, or even the other subscribers, for that matter, I do not want the list roster to be viewable by anyone other than myself.
![](https://secure.gravatar.com/avatar/746f7519ba02fb0d815e59f305c53fa2.jpg?s=120&d=mm&r=g)
Ki Song wrote:
And email commands send an email response to the 'sender'. So anyone who attempts to subscribe or unsubscribe via your web page gets some kind of email reply. Further, in the case of an unsubscribe (and maybe subscribe depending on list settings), they get a 'confirm' email that requires further action.
In the case of someone who is already a member, the email response says that.
If you want to change this behavior, you can
modify Mailman/Queue/CommandRunner.py and/or the appropriate Mailman/Commands/cmd-* scripts to do what you want, but you may need to do this in a list specific way if you have other lists, or
change your web page to post to your own CGI or to run the bin/add_members and bin/remove_members commands, although the latter will have permission problems unless you make the command files SETGID which you may not want depending on who has shell access to the server. To avoid this, you can access the commands through a SETGID wrapper.
-- Mark Sapiro <msapiro@value.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/d5756482864415f08c30fffa84a0a1c3.jpg?s=120&d=mm&r=g)
I'm using mailman as a newsletter program for our company. I have our order page setup so that a customer can choose to subscribe to our newsletter right from our order form. If they are a new customer, mailman sends them a confirmation message requesting that the customer reply to the message to confirm their subscription to our newsletter. That's fine.
However, I want mailman to stop sending an e-mail that says "You are already subscribed to the newsletter".
Basically, the script that runs on our order form sends a message to newsletter-join@domain.com with subscribe newsletter as the subject.
Is there a way for me to setup mailman so that if newsletter-join@domain.com gets a message from a subscriber to subscribe again to the newsletter, the mailman server doesn't send any message?
NOTE: I know I asked a similar question earlier in the list, but I would think there is an easier way to implement this task.
Thanks!
![](https://secure.gravatar.com/avatar/746f7519ba02fb0d815e59f305c53fa2.jpg?s=120&d=mm&r=g)
Ki Song wrote:
First, this only happens when the subscribe attempt is from the web. If it is by email, the email command results just say you are already subscribed.
That said, Mailman's behavior when an attempt is made to subscribe a member depends on the setting of Privacy options...->Subscription rules->private_roster.
If the roster can be viewed by anyone, the web subscribe interface will simply report that you are already a member.
If however, the roster can be viewed only by list members or the admin, we do not report that you are already a member because this may be an attempt by a third party to determine if you are a member, and we notify the member to alert the member that someone may be 'probing' for her list membership.
So the answer to your question is make the list roster viewable by anyone. If you don't want to do that (because of potential spam harvesting or other reasons), you'll have to hack the code in Mailman/Cgi/Subscribe.py.
-- Mark Sapiro <msapiro@value.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/d5756482864415f08c30fffa84a0a1c3.jpg?s=120&d=mm&r=g)
May I should have clarified: This is an announce-only list where we are sending out monthly newsletters to our customers. Therefore, they have no idea that there is a "webpage" that allows them to setup their account or to modify their subscription settings. Basically, they have no idea that it is mailman that they are using. I just setup an html form that automatically sends an e-mail to the list-subscribe@domain.com e-mail address to subscribe and sends an e-mail to list-leave@domain.com e-mail address to unsubscribe users. They have no interaction with the default mailman web interface.
Since I do not want the e-mail list to be viewable by potential spam harvesters, or even the other subscribers, for that matter, I do not want the list roster to be viewable by anyone other than myself.
![](https://secure.gravatar.com/avatar/746f7519ba02fb0d815e59f305c53fa2.jpg?s=120&d=mm&r=g)
Ki Song wrote:
And email commands send an email response to the 'sender'. So anyone who attempts to subscribe or unsubscribe via your web page gets some kind of email reply. Further, in the case of an unsubscribe (and maybe subscribe depending on list settings), they get a 'confirm' email that requires further action.
In the case of someone who is already a member, the email response says that.
If you want to change this behavior, you can
modify Mailman/Queue/CommandRunner.py and/or the appropriate Mailman/Commands/cmd-* scripts to do what you want, but you may need to do this in a list specific way if you have other lists, or
change your web page to post to your own CGI or to run the bin/add_members and bin/remove_members commands, although the latter will have permission problems unless you make the command files SETGID which you may not want depending on who has shell access to the server. To avoid this, you can access the commands through a SETGID wrapper.
-- Mark Sapiro <msapiro@value.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/d5756482864415f08c30fffa84a0a1c3.jpg?s=120&d=mm&r=g)
I'm using mailman as a newsletter program for our company. I have our order page setup so that a customer can choose to subscribe to our newsletter right from our order form. If they are a new customer, mailman sends them a confirmation message requesting that the customer reply to the message to confirm their subscription to our newsletter. That's fine.
However, I want mailman to stop sending an e-mail that says "You are already subscribed to the newsletter".
Basically, the script that runs on our order form sends a message to newsletter-join@domain.com with subscribe newsletter as the subject.
Is there a way for me to setup mailman so that if newsletter-join@domain.com gets a message from a subscriber to subscribe again to the newsletter, the mailman server doesn't send any message?
NOTE: I know I asked a similar question earlier in the list, but I would think there is an easier way to implement this task.
Thanks!
participants (2)
-
Ki Song
-
Mark Sapiro