Integration of SMS alerts for moderator approval
Hi Team
We are using mailman 2 in our production and we are testing mailman 3 to use in production.
We have requirement in mailman 3 that is when a moderator receives email notification for a list posted he should also receive SMS alerts saying that so and so list is pending for approval.We have our SMS gateway setup and we are using this sending otp's,alerts etc.., now we want to integrate this service in sending moderator approval alerts
Please provide a path and your valuable inputs to achieve this. This would be useful in future releases of mailman also.
-- Regards Sandeep Kumar +91-7702033396
Hi Sandeep,
SMS alerts sound to be an interesting feature, while I don't think it is high priority though.
If you are willing to implement this feature, say you only want to send message when any email is pending for approval, you might look at mailman/src/mailman/chains/hold.py and insert the SMS logic in HoldChain. But you will need to find a way to store the phone numbers of the moderators. If the numbers are fixed, that's great. If not, you might also need to modify the database schema.
Let's see if other people have any ideas.
Sidenote: I think if we have a rest callback it will be beneficial to ideas like this as proposed in GSoC this year - if anyone wants to work on the feature, it will be great.
Yours truly, Xiaoxing Ye http://www.linkedin.com/in/yexiaoxing
On Mon, Jun 3, 2019 at 8:38 PM sandeep kumar <sandeep7790@gmail.com> wrote:
Hi Team
We are using mailman 2 in our production and we are testing mailman 3 to use in production.
We have requirement in mailman 3 that is when a moderator receives email notification for a list posted he should also receive SMS alerts saying that so and so list is pending for approval.We have our SMS gateway setup and we are using this sending otp's,alerts etc.., now we want to integrate this service in sending moderator approval alerts
Please provide a path and your valuable inputs to achieve this. This would be useful in future releases of mailman also.
-- Regards Sandeep Kumar +91-7702033396
Mailman-Developers mailing list -- mailman-developers@python.org To unsubscribe send an email to mailman-developers-leave@python.org https://mail.python.org/mailman3/lists/mailman-developers.python.org/ Mailman FAQ: https://wiki.list.org/x/AgA3
Security Policy: https://wiki.list.org/x/QIA9
Hi Xiaoxing
Thanks for your valuable reply.
For getting phone numbers of the moderators we are trying to query the LDAP service using the email ID of the moderator. Please suggest if there is any other way around for this feature.
Regards Sandeep
Sent from my iPhone
On 03-Jun-2019, at 10:13 PM, Xiaoxing Ye <ye@xiaoxing.us> wrote:
Hi Sandeep,
SMS alerts sound to be an interesting feature, while I don't think it is high priority though.
If you are willing to implement this feature, say you only want to send message when any email is pending for approval, you might look at mailman/src/mailman/chains/hold.py and insert the SMS logic in HoldChain. But you will need to find a way to store the phone numbers of the moderators. If the numbers are fixed, that's great. If not, you might also need to modify the database schema.
Let's see if other people have any ideas.
Sidenote: I think if we have a rest callback it will be beneficial to ideas like this as proposed in GSoC this year - if anyone wants to work on the feature, it will be great.
Yours truly, Xiaoxing Ye http://www.linkedin.com/in/yexiaoxing
On Mon, Jun 3, 2019 at 8:38 PM sandeep kumar <sandeep7790@gmail.com> wrote: Hi Team
We are using mailman 2 in our production and we are testing mailman 3 to use in production.
We have requirement in mailman 3 that is when a moderator receives email notification for a list posted he should also receive SMS alerts saying that so and so list is pending for approval.We have our SMS gateway setup and we are using this sending otp's,alerts etc.., now we want to integrate this service in sending moderator approval alerts
Please provide a path and your valuable inputs to achieve this. This would be useful in future releases of mailman also.
-- Regards Sandeep Kumar +91-7702033396
Mailman-Developers mailing list -- mailman-developers@python.org To unsubscribe send an email to mailman-developers-leave@python.org https://mail.python.org/mailman3/lists/mailman-developers.python.org/ Mailman FAQ: https://wiki.list.org/x/AgA3
Security Policy: https://wiki.list.org/x/QIA9
sandeep kumar writes:
We have requirement in mailman 3 that is when a moderator receives email notification for a list posted he should also receive SMS alerts saying that so and so list is pending for approval.
Anything related to SMS itself is way outside of our scope.
Your requirement is unclear. Is the notification to be sent every time a mail notification is to be sent? Do you want both email and SMS notifications? (I would think that would triple your employee turnover rate, but that's your call.)
I suppose that you want the content of the SMS alert to be different from the normal email (shortened).
We have our SMS gateway setup
What do you mean by "gateway"? An email-to-SMS gateway?
I don't think SMS notifications would be difficult to do, but you need to be more specific about the requirements and the capabilities of the gateway.
Steve
Hi Steve
For every mail notification that is sent to moderator for approval he should also receive the SMS on his mobile saying so and so list is pending for approval. This is the requirement of the customer.
For SMS the message will be shortened form say "mail to X list from Y person is pending for your approval".
When I mean by SMS gateway it is nothing but a SMS service that we are already using for other purposes. We give an input to the SMS server with phone number and message it will send the SMS to user.
I need to fetch the moderator email address of every list when an email is sent to list. I am facing some challenges here in getting the moderator email address. Can you please help where in the mailman code can I get the moderator email address when a mail is sent to the list.
Cheers...!! Sandeep
On Thu, Jun 6, 2019 at 10:36 PM Stephen J. Turnbull < turnbull.stephen.fw@u.tsukuba.ac.jp> wrote:
sandeep kumar writes:
We have requirement in mailman 3 that is when a moderator receives email notification for a list posted he should also receive SMS alerts saying that so and so list is pending for approval.
Anything related to SMS itself is way outside of our scope.
Your requirement is unclear. Is the notification to be sent every time a mail notification is to be sent? Do you want both email and SMS notifications? (I would think that would triple your employee turnover rate, but that's your call.)
I suppose that you want the content of the SMS alert to be different from the normal email (shortened).
We have our SMS gateway setup
What do you mean by "gateway"? An email-to-SMS gateway?
I don't think SMS notifications would be difficult to do, but you need to be more specific about the requirements and the capabilities of the gateway.
Steve
-- Regards Sandeep Kumar +91-9642669192
On 6/6/19 10:55 PM, sandeep kumar wrote:
I need to fetch the moderator email address of every list when an email is sent to list. I am facing some challenges here in getting the moderator email address. Can you please help where in the mailman code can I get the moderator email address when a mail is sent to the list.
The address LISTNAME-owner@LIST.DOMAIN will forward to all list owners and moderators.
If that won't work for you and you need actual individual addresses, the list has three attributes - owners, moderators and administrators. These are IRoster objects which are rosters of the owners, moderators and both respectively.
To get all the owner and moderator addresses for the list instantiated as mlist you could do something like
addresses = [] for member in mlist.administrators.members: addresses.append(member.address.email)
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
sandeep kumar writes:
For every mail notification that is sent to moderator for approval he should also receive the SMS on his mobile saying so and so list is pending for approval. This is the requirement of the customer.
For the future, you don't have to explain why you want a feature until we ask for it.
For SMS the message will be shortened form say "mail to X list from Y person is pending for your approval".
Yeah, of course this needs to be shorter. This could be parsed from the normal mail by the SMS gateway, or some kind of front end to the gateway.
When I mean by SMS gateway it is nothing but a SMS service that we are already using for other purposes. We give an input to the SMS server with phone number and message it will send the SMS to user.
My question is what form is this input, email or something else?
I need to fetch the moderator email address of every list when an email is sent to list. I am facing some challenges here in getting the moderator email address. Can you please help where in the mailman code can I get the moderator email address when a mail is sent to the list.
I guess you're trying write such a front-end yourself.
It depends on how you are going to access the database. Mark explained how to do this directly.
Alternatively, you can create the frontend client as an external process, using the mailmanclient library to access the REST API to get that information. I think this is what Mark suggested, and it's the preferred method because it means you do not have to maintain a vendored version of Mailman itself. The REST API is versioned, so you can be sure that your code either works right or it fails loudly. The internal API is not versioned and not going to be backward compatible, so you risk having your code break every time you upgrade.
You'd still need to have a small Handler to trigger the external frontend, but everything you need for the trigger is already in the message object (the mailing list's identity), and that part of the internal API is extremely unlikely to change.
Steve
Hi Team
We were able to integrate SMS successfully in to the mailman when there is a notification for the moderator for the approval.
Along with mail notification we are also able to send SMS notification to the moderator.
Regards Sandeep
On Mon, Jun 3, 2019 at 12:58 PM sandeep kumar <sandeep7790@gmail.com> wrote:
Hi Team
We are using mailman 2 in our production and we are testing mailman 3 to use in production.
We have requirement in mailman 3 that is when a moderator receives email notification for a list posted he should also receive SMS alerts saying that so and so list is pending for approval.We have our SMS gateway setup and we are using this sending otp's,alerts etc.., now we want to integrate this service in sending moderator approval alerts
Please provide a path and your valuable inputs to achieve this. This would be useful in future releases of mailman also.
-- Regards Sandeep Kumar +91-7702033396
-- Regards Sandeep Kumar +91-9642669192
participants (4)
-
Mark Sapiro
-
sandeep kumar
-
Stephen J. Turnbull
-
Xiaoxing Ye