[Mailman-Developers] Daily Summary of pending requests are not being sent

2020-01-24 Thread Shashikanth Komandoor
Hi Sir/Team,

As per the URL <
https://docs.mailman3.org/en/latest/config-core.html#configuring-cron-jobs>,
I understood that the command "mailman notify" is responsible to send the
daily notifications to the owners of the list which of course should be as
part of the cron job list (but it is not in my case).

FYI, I am using mailman 3.2.3.

And in my case, when I run the command "mailman notify" I am getting an
error saying that the command "notify" is not present.





*(venv3) [root@mailman3 commands]# mailman notifyUsage: mailman [OPTIONS]
COMMAND [ARGS]...Try "mailman -h" for help.Error: No such command "notify".*

And I also saw the help menu of mailman where I don't find any command
displaying "notify" and its explanation.

Is it the problem with this version or had I done wrong? Could you please
help me in this regard?

If I need to add the cron jobs manually I will try to add but please
suggest what could be added?

-- 
Thanks & Regards,
Shashi Kanth.K
9052671936
___
Mailman-Developers mailing list -- mailman-developers@python.org
To unsubscribe send an email to mailman-developers-le...@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


[Mailman-Developers] Can I install Mailman 3.3 on RHEL 8 ?

2020-01-24 Thread Shashikanth Komandoor
Hi Team/Sir,

 Can Mailman 3.3 be installed on RHEL 8?

  I got this query because while I was trying to install the
prerequisites for Mailman 3.3 as per the website
http://docs.mailman3.org/en/latest/devsetup.html I found nodejs-less is
also to be installed.

  But I don't find the nodejs-less as part of BaseOS packages
or the AppStream modules.

  Please suggest how to go ahead.

-- 
Thanks & Regards,
Shashi Kanth.K
9052671936
___
Mailman-Developers mailing list -- mailman-developers@python.org
To unsubscribe send an email to mailman-developers-le...@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


[Mailman-Developers] Cron of Mailman notify is not working

2020-01-28 Thread Shashikanth Komandoor
Hello,

With your help, I was able to setup mailman 3.3 on my RHEL 7.5
machine and running well and good.

For daily notification I have added the below line in the crontab:

00 08 * * * /var/lib/mailman/venv3/bin/mailman notify

   But this cron job is not working while I was able to run the same
command manually at my CLI.

   Please help if there is any issue with mailman 3.3 or cronjob.

-- 
Thanks & Regards,
Shashi Kanth.K
9052671936
___
Mailman-Developers mailing list -- mailman-developers@python.org
To unsubscribe send an email to mailman-developers-le...@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


[Mailman-Developers] where to configure max_days_to_hold on MM3 GUI interface?

2020-01-29 Thread Shashikanth Komandoor
Hi Sir,

I came to know that the held messages can be restricted to be
processed after a specific no of days or can be discard after some days
using the parameter *max_days_to_hold*.

   But I could see that parameter value configurable on MM2 GUI
interface in General Options but I don't see the same on the MM3 GUI
interface.

  Could you please help me if I am missing something?

-- 
Thanks & Regards,
Shashi Kanth.K
9052671936
___
Mailman-Developers mailing list -- mailman-developers@python.org
To unsubscribe send an email to mailman-developers-le...@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


[Mailman-Developers] Periodically getting KeyError File in Mailman 3

2020-02-06 Thread Shashikanth Komandoor
Hi Team,

 I am able to successfully install and use the Mailman 3
product but even after the installation also while clicking on different
links, I am getting KeyError related to File.

 I tried to regenerate it but could not and not sure when it
happens, how frequently it happens, on clicking which link it happens.

 Please help me to get rid of it.

-- 
Thanks & Regards,
Shashi Kanth.K
9052671936
___
Mailman-Developers mailing list -- mailman-developers@python.org
To unsubscribe send an email to mailman-developers-le...@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


[Mailman-Developers] Re: Periodically getting KeyError File in Mailman 3

2020-02-24 Thread Shashikanth Komandoor
Hi Mark,

Sorry for not providing the proper information and putting you
trouble. And no more screen shots from my side now onwards.

The below is the exception and the traceback I have copied and
pasted:















































































































*Environment:Request Method: GETRequest URL:
http://localhost:8000/postorius/lists/msgteam-hyd.lsmgr.nic.in/
<http://localhost:8000/postorius/lists/msgteam-hyd.lsmgr.nic.in/>Django
Version: 2.2.9Python Version: 3.6.8Installed
Applications:('hyperkitty', 'postorius', 'django_mailman3',
'django.contrib.admin', 'django.contrib.auth',
'django.contrib.contenttypes', 'django.contrib.sessions',
'django.contrib.sites', 'django.contrib.messages',
'django.contrib.staticfiles', 'rest_framework', 'django_gravatar',
'compressor', 'haystack', 'django_extensions', 'django_q', 'allauth',
'allauth.account', 'allauth.socialaccount')Installed
Middleware:('django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'django.middleware.security.SecurityMiddleware',
'django_mailman3.middleware.TimezoneMiddleware',
'postorius.middleware.PostoriusMiddleware')Traceback:File
"/var/lib/mailman/venv3/lib64/python3.6/site-packages/Django-2.2.9-py3.6.egg/django/core/handlers/exception.py"
in inner  34. response = get_response(request)File
"/var/lib/mailman/venv3/lib64/python3.6/site-packages/Django-2.2.9-py3.6.egg/django/core/handlers/base.py"
in _get_response  115. response =
self.process_exception_by_middleware(e, request)File
"/var/lib/mailman/venv3/lib64/python3.6/site-packages/Django-2.2.9-py3.6.egg/django/core/handlers/base.py"
in _get_response  113. response = wrapped_callback(request,
*callback_args, **callback_kwargs)File
"/var/lib/mailman/venv3/lib64/python3.6/site-packages/Django-2.2.9-py3.6.egg/django/views/generic/base.py"
in view  71. return self.dispatch(request, *args, **kwargs)File
"/var/lib/mailman/postorius/src/postorius/views/generic.py" in dispatch
61.int(kwargs.get('page',
1)))File "/var/lib/mailman/postorius/src/postorius/views/generic.py" in
_get_list  55. return
List.objects.get_or_404(fqdn_listname=list_id)File
"/var/lib/mailman/postorius/src/postorius/models.py" in get_or_404  120.
  return self.get(*args, **kwargs)File
"/var/lib/mailman/postorius/src/postorius/models.py" in get  105.
  return method(*args, **kwargs)File
"/var/lib/mailman/mailmanclient/src/mailmanclient/client.py" in get_list
347. 'lists/{0}'.format(fqdn_listname))File
"/var/lib/mailman/mailmanclient/src/mailmanclient/restbase/connection.py"
in call  112. error_msg, response,
None)During handling of the above exception (HTTP Error 500: 
Internal Server Error
Internal Server Error  ), another
exception occurred:File
"/var/lib/mailman/venv3/lib64/python3.6/site-packages/Django-2.2.9-py3.6.egg/django/core/handlers/exception.py"
in inner  34. response = get_response(request)File
"/var/lib/mailman/postorius/src/postorius/middleware.py" in __call__  42.
  return self.get_response(request)File
"/var/lib/mailman/venv3/lib64/python3.6/site-packages/Django-2.2.9-py3.6.egg/django/core/handlers/exception.py"
in inner  36. response = response_for_exception(request,
exc)File
"/var/lib/mailman/venv3/lib64/python3.6/site-packages/Django-2.2.9-py3.6.egg/django/core/handlers/exception.py"
in response_for_exception  90. response =
handle_uncaught_exception(request, get_resolver(get_urlconf()),
sys.exc_info())File
"/var/lib/mailman/venv3/lib64/python3.6/site-packages/Django-2.2.9-py3.6.egg/django/core/handlers/exception.py"
in handle_uncaught_exception  125. return
debug.technical_500_response(request, *exc_info)File
"/var/lib/mailman/venv3/lib64/python3.6/site-packages/Django-2.2.9-py3.6.egg/django/views/debug.py"
in technical_500_response  89. reporter = ExceptionReporter(request,
exc_type, exc_value, tb)File
"/var/lib/mailman/venv3/lib64/python3.6/site-packages/Django-2.2.9-py3.6.egg/django/views/debug.py"
in __init__  254.     

[Mailman-Developers] Admin, Accounts and Hyperkitty Pages are not loading Properly on Setting DEBUG = False

2020-02-25 Thread Shashikanth Komandoor
Dear Team,

 If I set the DEBUG = False in
*/var/lib/mailman/mailman-suite/mailman-suite-project/settings.py* file, I
don't see the pages of the applications Accounts, Admin and Hyperkitty are
loaded properly. After browsing google, I came to know that the pages of
CSS, js and images are not loaded if DEBUG is set false. And my webserver
is RHEL 7.5 in built httpd.

Please do the needful. I am actually new to Python and doing the
risk of running customized Maliman 3 on Production.

-- 
Thanks & Regards,
Shashi Kanth.K
9052671936
___
Mailman-Developers mailing list -- mailman-developers@python.org
To unsubscribe send an email to mailman-developers-le...@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


[Mailman-Developers] Question about REST API for Mailman 3

2020-04-24 Thread Shashikanth Komandoor
Hi team,

  I am developing an application on which just clicking on submit
with some input values loaded should invoke the REST API of Mailman 3
running on another server and do some activities like adding of user(s) to
a list or removal of user(s) from a list or so.

  Is it possible to do so ? If so, how ?

-- 
Thanks & Regards,
Shashi Kanth.K
9052671936





Virus-free.
www.avast.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
___
Mailman-Developers mailing list -- mailman-developers@python.org
To unsubscribe send an email to mailman-developers-le...@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


[Mailman-Developers] Re: Question about REST API for Mailman 3

2020-04-24 Thread Shashikanth Komandoor
Is it possible through CURL command in combination with some other
parameters?

If possible please mention an example of adding a member to a mailman 2 DL.

I am really clueless.

<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virus-free.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Fri, Apr 24, 2020 at 8:19 PM Shashikanth Komandoor <
shashikanth.komand...@gmail.com> wrote:

> Hi team,
>
>   I am developing an application on which just clicking on submit
> with some input values loaded should invoke the REST API of Mailman 3
> running on another server and do some activities like adding of user(s) to
> a list or removal of user(s) from a list or so.
>
>   Is it possible to do so ? If so, how ?
>
> --
> Thanks & Regards,
> Shashi Kanth.K
> 9052671936
>
>
>
>
>
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
>  Virus-free.
> www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
> <#m_-7325779880407563152_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>


-- 
Thanks & Regards,
Shashi Kanth.K
9052671936
___
Mailman-Developers mailing list -- mailman-developers@python.org
To unsubscribe send an email to mailman-developers-le...@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


[Mailman-Developers] How to know the URLs for CURL while getting or modifying the data of mailman 3

2020-04-25 Thread Shashikanth Komandoor
Hi team,

 Somehow, I have enabled the REST API of mailman 3 accessible
from another machine. I am able to see some data using the command cURL and
by providing the REST API credentials.

 But I don't know the URLs to be used for the purpose I want to
do some thing like I want to add user to list or remove a user from the
list. These activities I can do it from the browser and also from the
python prompt (>>>) but how to do the same activities through the curl
command.

 As of now, if I want to see the lists or domains on Mailman 3
through cURL I am running the below commands


*1. curl -GET -u : http://:8001/3.1/domains | python -mjson.tool*
*2. curl -GET -u * *:* *http://:8001/3.1/lists
| python -mjson.tool*

But further to this, I don't know how to add users to the list,
how to create new lists and many other activities. How can I generate the
URLs as required.

-- 
Thanks & Regards,
Shashi Kanth.K
9052671936





Virus-free.
www.avast.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
___
Mailman-Developers mailing list -- mailman-developers@python.org
To unsubscribe send an email to mailman-developers-le...@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


[Mailman-Developers] Re: How to know the URLs for CURL while getting or modifying the data of mailman 3

2020-04-25 Thread Shashikanth Komandoor
Thank you for your response Stephen.

Thanks for giving the URL. I think you mean this one right

https://mailman.readthedocs.io/en/latest/src/mailman/rest/docs/rest.html

But that document contains the way to do through the python prompt (>>>)

I want through curl command. I tried from the time of your earlier mail but
unable to generate the URLs usable with curl command for different purposes
such as subscribing the member to a list or removing a member from a list.

If you still say the above URL is the one which helps me I am unable to
find out the logic to generate the URLs for curl from the content written
for python prompt

Please help with 2 or more examples with out feeling it as risk.

On Sat, Apr 25, 2020 at 6:39 PM Stephen J. Turnbull <
turnbull.stephen...@u.tsukuba.ac.jp> wrote:

> Shashikanth Komandoor writes:
>
>  >  But I don't know the URLs to be used for the purpose I
> want to
>  > do some thing like I want to add user to list or remove a user from the
>  > list.
>
> I gave you the URL to the relevant docs.  RT Free M.
>
> Steve
>


-- 
Thanks & Regards,
Shashi Kanth.K
9052671936
___
Mailman-Developers mailing list -- mailman-developers@python.org
To unsubscribe send an email to mailman-developers-le...@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


[Mailman-Developers] Re: How to know the URLs for CURL while getting or modifying the data of mailman 3

2020-04-25 Thread Shashikanth Komandoor
Stephen,

Thank you for your response. I am sorry for getting confused
between two lists mailman-users and mailman-developers. Developers may be
busy and my question may be basic but still there is a space for more
politeness at your end to advice me.

Apart from that, you have given a lot much of useful
information which is really and honestly helpful for me to the maximum
extent. Now I shall take the help of members of mailman-users only.

@mailman-us...@mailman3.org ,

   Team, I have installed Mailman Version 3.3 and running in
production. Our development team developed another application which
requires the access of the REST API and do changes over the MM3 DB
automatically without manual intervention. That application would be
connecting to REST API over http or https protocol

   To achieve this I have enabled the REST API to run at all the IP
addresses of my MM3 Server by editing the
mailman/src/mailman/config/schema.cfg file. I was able to run few commands
like creation of domains, lists, list configuration changes for testing
using the CURL (GET, POST, PATCH, DELTE) and got succeeded.

   But for every operation I need to write a different URL for CURL
command to work. Out of many operations I require, addition of members to a
list and removal of members from a list are most important tasks.

   So, I request herewith, from the URL
https://mailman.readthedocs.io/en/latest/src/mailman/rest/docs/rest.html, I
could see many URLs but they are executed at python prompt (>>>) only. I
require URLs usable at the CURL command. Is there any way I could generate
the URLs or any where documented regarding the URLs usable with CURL for
the addition and removal of subscribers ?

On Sat, Apr 25, 2020 at 8:04 PM Stephen J. Turnbull <
turnbull.stephen...@u.tsukuba.ac.jp> wrote:

> Shashi,
>
> This whole thread is off-topic for the developers list.  This list is
> for development of Mailman, not for teaching people to use it.  Read
> the whole recommended documentation before you ask busy developers to
> tutor you in very basic things.  There's a mailman-us...@mailman3.org
> list for users to help each other.  All of the Mailman developers who
> might be willing to answer your questions are there as well, but there
> are also many experienced users, some of whom have experimented with
> the REST API who will also help.  Please reply there for further
> help.  (Reply-To is set.)
>
> That said, there are plenty of URLs in the API documentation.  Here's
> a hint: search for "dump_json".  That function takes an URL.  You may
> want https: instead of http: in your URLs, and you may need to change
> the port from 9001, depending on the configuration of your REST
> server.  Try it with simple GET requests for information first, such
> as for domains or lists.  You can also do these requests with an
> ordinary web browser, though I don't know what it will do with the
> JSON-formatted reply.
>
> If you don't have domains and lists configured, I suppose the
> informational requests will come back as empty JSON objects.  It
> should be safe to make them.  You can either use Postorius to
> bootstrap a few example domains, lists, and users, or (the hard way)
> figure out how to POST appropriate requests.  I don't recommend trying
> to update the backend DBMS by hand; the schema is quite complicated.
> I don't know how to use curl to update Mailman's databases.  That
> requires a POST request which I have never done with curl.  The POST
> request needs to be valid JSON.
>
> The more I think about this, the less I think your idea of using curl
> is worthwhile, because formatting JSON requests by hand is going to be
> a real annoyance and a great way to mess up your database with
> spurious information.  You're really going to want programmatic
> support for this.  But that's already all available in Python in the
> Mailman system.
>
> It's up to you, but I feel a responsibility to warn you that using
> curl is not going to be simpler than learning enough Python to do
> these things.
>
> Regards,
>


-- 
Thanks & Regards,
Shashi Kanth.K
9052671936
___
Mailman-Developers mailing list -- mailman-developers@python.org
To unsubscribe send an email to mailman-developers-le...@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


[Mailman-Developers] Re: How to know the URLs for CURL while getting or modifying the data of mailman 3

2020-04-28 Thread Shashikanth Komandoor
Thank you Mark and Abhilash. Your guidance is much appreciated and helped
me a lot.




On Sat, Apr 25, 2020 at 9:42 PM Mark Sapiro  wrote:

> On 4/25/20 6:16 AM, Shashikanth Komandoor wrote:
> > Thank you for your response Stephen.
> >
> > Thanks for giving the URL. I think you mean this one right
> >
> > https://mailman.readthedocs.io/en/latest/src/mailman/rest/docs/rest.html
> >
> > But that document contains the way to do through the python prompt (>>>)
>
>
> Where you see something like, e.g.,
>
> >>> dump_json('http://localhost:9001/3.0/lists')
>
> in the docs, translate that URL into
>
> http://:8001/3.0/lists
>
> for your curl command.
>
> --
> Mark Sapiro The highway is for gamblers,
> San Francisco Bay Area, Californiabetter use your sense - B. Dylan
> ___
> Mailman-Developers mailing list -- mailman-developers@python.org
> To unsubscribe send an email to mailman-developers-le...@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
>


-- 
Thanks & Regards,
Shashi Kanth.K
9052671936
___
Mailman-Developers mailing list -- mailman-developers@python.org
To unsubscribe send an email to mailman-developers-le...@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