I apologize for the last message being sent incomplete.

Mark, I just checked all of the above files.
All of them have contents as expected. I meant that I am not able to
correctly recognize the syntax of `mailman inject` .
I tried using mailman inject -q digest TEXT
mailman inject -q TEXT
mailman inject -q --digest TEXT
None of these worked.
Please help me with the correct syntax to use this.

Also, I got the Hyperkitty procedure to send messages. My bad! I was on an
admin user and the test examples created were the ones causing the issue.
But still I didn't succeed in starting a new thread through Hyperkitty UI.
Once I click on the Send Button, I again get that KeyError named 'file'
which most of us faced while basic setup of mailman parts.
This being the traceback:
Environment:


Request Method: POST
Request URL:
http://127.0.0.1:8000/hyperkitty/list/mailli...@example.com/message/new

Django Version: 2.1.7
Python Version: 3.6.5
Installed 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',
 'django_mailman3.lib.auth.fedora',
 'allauth.socialaccount.providers.openid',
 'allauth.socialaccount.providers.github',
 'allauth.socialaccount.providers.gitlab',
 'allauth.socialaccount.providers.google',
 'allauth.socialaccount.providers.twitter',
 'allauth.socialaccount.providers.stackexchange')
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
"/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/core/handlers/exception.py"
in inner
  34.             response = get_response(request)

File
"/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/core/handlers/base.py"
in _get_response
  126.                 response = self.process_exception_by_middleware(e,
request)

File
"/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/core/handlers/base.py"
in _get_response
  124.                 response = wrapped_callback(request, *callback_args,
**callback_kwargs)

File
"/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/contrib/auth/decorators.py"
in _wrapped_view
  21.                 return view_func(request, *args, **kwargs)

File
"/home/nayankhanna/Code/GSoC19/mailman/hyperkitty/hyperkitty/lib/view_helpers.py"
in inner
  134.         return func(request, *args, **kwargs)

File
"/home/nayankhanna/Code/GSoC19/mailman/hyperkitty/hyperkitty/views/message.py"
in new_message
  216.                              form.cleaned_data["message"], headers)

File
"/home/nayankhanna/Code/GSoC19/mailman/hyperkitty/hyperkitty/lib/posting.py"
in post_to_list
  84.             mlist.list_id, request.user, sender, display_name)

File
"/home/nayankhanna/Code/GSoC19/mailman/hyperkitty/hyperkitty/lib/mailman.py"
in subscribe
  44.     rest_list = client.get_list(list_id)

File
"/home/nayankhanna/Code/GSoC19/mailman/mailmanclient/src/mailmanclient/client.py"
in get_list
  347.             'lists/{0}'.format(fqdn_listname))

File
"/home/nayankhanna/Code/GSoC19/mailman/mailmanclient/src/mailmanclient/restbase/connection.py"
in call
  102.                                 response.content, response, None)

During handling of the above exception (HTTP Error 404: b'404 Not Found'),
another exception occurred:

File
"/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/core/handlers/exception.py"
in inner
  34.             response = get_response(request)

File
"/home/nayankhanna/Code/GSoC19/mailman/postorius/src/postorius/middleware.py"
in __call__
  39.         return self.get_response(request)

File
"/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/core/handlers/exception.py"
in inner
  36.             response = response_for_exception(request, exc)

File
"/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-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
"/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/core/handlers/exception.py"
in handle_uncaught_exception
  125.         return debug.technical_500_response(request, *exc_info)

File
"/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/views/debug.py"
in technical_500_response
  89.     reporter = ExceptionReporter(request, exc_type, exc_value, tb)

File
"/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/views/debug.py"
in __init__
  254.         self.template_info = getattr(self.exc_value,
'template_debug', None)

File
"/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/tempfile.py" in
__getattr__
  616.         file = self.__dict__['file']

Thanks for your help.

Regards
Nayan Khanna



On Sat, Mar 9, 2019 at 12:59 AM NAYAN KHANNA <
f20170...@pilani.bits-pilani.ac.in> wrote:

> Mark, I just checked all of the above files.
> All of them have contents as expected. I meant that I am not able to
> correctly recognise the syntax of `maiman inject
>
> On Fri, Mar 8, 2019 at 10:01 PM Mark Sapiro <m...@msapiro.net> wrote:
>
>> On 3/8/19 4:59 AM, NAYAN KHANNA wrote:
>> > I am facing problems in sending messages to a list. I tried using
>> mailman
>> > inject but still couldn't succeed in sending a message. I am not able to
>> > understand how it works.
>>
>> Have you started Mailman core - 'mailman start'?
>>
>> What's the contents of the various directories in Mailman's var/queue?
>>
>> What's in Mailman's var/logs/mailman.log and var/logs/smtp.log?
>>
>> Do you have an MTA that can receive messages from localhost and deliver
>> them?
>>
>> > Also, is there an option to send posts to a list in the UI/Admin UI?
>>
>>
>> HyperKitty can post messages to a list.
>>
>> --
>> Mark Sapiro <m...@msapiro.net>        The highway is for gamblers,
>> San Francisco Bay Area, California    better 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
>>
>
_______________________________________________
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

Reply via email to