Regarding Sending messages/posts to the list
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. I could run mailman inject -s and see the correct output but when i tried using the -q option, I havent got success using it after trying multiple options.
I was reading the docs at mailman/docs and I wanted to try out the pieces of code given in them. But most of operations in moderator.rst started with a create_list function whose definition I was unable to find and hence i wasn't able to test the actual stuff. Someone, please help me in doing the same.
I want to get started with posting messages to a list and try out the functionalities of list settings options and the powers which a moderator, owner etc have.
Also, is there an option to send posts to a list in the UI/Admin UI?
Thanks in Advance.
Regards Nayan Khanna
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 <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
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 <mark@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 <mark@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-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
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/maillist1@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 < f20170636@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 <mark@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 <mark@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-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
On 3/8/19 11:35 AM, NAYAN KHANNA wrote:
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.
See my prior reply, but that is incorrect because I left off the LISTSPEC argument
Assuming TEXT is a file name, you need to precede it with -f. To inject to incoming
mailman inject -f TEXT list.example.com
To inject to digest, you'd use
mailman inject -q digest -f TEXT list.example.com
except that wouldn't work because the digest runner expects an empty message and things in the metadata pointing to a digest mailbox file.
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.
And that is not the issue in those cases. The KeyError is thrown in the Django process that is trying to report the original error.
This being the traceback: Environment: ... 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:
The above is the underlying issue. This code in mailmanclient/restbase/connection.py
try:
response = request(
url=url,
auth=self.auth,
method=method,
data=data_str,
headers=headers)
# content = response.content
# If we did not get a 2xx status code, make this look like a
# urllib2 exception, for backward compatibility.
if response.status_code // 100 != 2:
raise HTTPError(url, response.status_code,
response.content, response, None)
has received a '404' and is raising HTTPError. When you are looking at all this as presented to you by Django, I think there is a way to see the arguments to the various calls in the traceback, but the argument to call() is a path which is concatenated with 'baseurl' This is convoluted, but baseurl comes from MAILMAN_REST_API_URL in your settings.
The bottom line is connection to the contents of MAILMAN_REST_API_URL concatenated with /3.0/ concatenated with lists/ and the fqdn_listname is returning a 404.
Is the HyperKitty list you are trying to post to known to Mailman core?
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Thanks a lot Mark for the clarification. I am now successfully able to inject messages to a maillist using mailman inject.
Is the HyperKitty list you are trying to post to known to Mailman core? I didn't quite understand this? List known to Mailman core as in? Please elaborate a bit.
Thanks again Nayan Khanna
On Sat, Mar 9, 2019 at 2:06 AM Mark Sapiro <mark@msapiro.net> wrote:
On 3/8/19 11:35 AM, NAYAN KHANNA wrote:
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.See my prior reply, but that is incorrect because I left off the LISTSPEC argument
Assuming TEXT is a file name, you need to precede it with -f. To inject to incoming
mailman inject -f TEXT list.example.com
To inject to digest, you'd use
mailman inject -q digest -f TEXT list.example.com
except that wouldn't work because the digest runner expects an empty message and things in the metadata pointing to a digest mailbox file.
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.
And that is not the issue in those cases. The KeyError is thrown in the Django process that is trying to report the original error.
This being the traceback: Environment: ... 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
in new_message 216. form.cleaned_data["message"],
"/home/nayankhanna/Code/GSoC19/mailman/hyperkitty/hyperkitty/views/message.py" 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:
The above is the underlying issue. This code in mailmanclient/restbase/connection.py
try: response = request( url=url, auth=self.auth, method=method, data=data_str, headers=headers) # content = response.content # If we did not get a 2xx status code, make this look like a # urllib2 exception, for backward compatibility. if response.status_code // 100 != 2: raise HTTPError(url, response.status_code, response.content, response, None)
has received a '404' and is raising HTTPError. When you are looking at all this as presented to you by Django, I think there is a way to see the arguments to the various calls in the traceback, but the argument to call() is a path which is concatenated with 'baseurl' This is convoluted, but baseurl comes from MAILMAN_REST_API_URL in your settings.
The bottom line is connection to the contents of MAILMAN_REST_API_URL concatenated with /3.0/ concatenated with lists/ and the fqdn_listname is returning a 404.
Is the HyperKitty list you are trying to post to known to Mailman core?
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On 3/8/19 8:18 PM, NAYAN KHANNA wrote:
Is the HyperKitty list you are trying to post to known to Mailman core? I didn't quite understand this? List known to Mailman core as in? Please elaborate a bit.
Known to mailman core as in appears in the output of 'mailman lists'.
I ask because it appears the error you posted was due to HyperKitty getting the url 'http://localhost:8001/3.0/lists/LIST-NAME' and getting a 404 response which should only happen if the REST api doesn't know a list named LIST-NAME.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Sorry for the late reply, Mark.
I just checked it.
mailman lists
shows maillist2@example.com as a component of the output.
Also, localhost:8001/3.0/lists/maillist2@example.com/ shows full JSON
details about mailllist2@example.com.
{
"display_name": "Maillist2",
"fqdn_listname": "maillist2@example.com",
"list_id": "maillist2.example.com",
"list_name": "maillist2",
"mail_host": "example.com",
"member_count": 3,
"volume": 1,
"description": "NA",
"self_link": "http://localhost:8001/3.0/lists/maillist2.example.com",
"http_etag": "\"d4966cd892c82a3dbbe663fe41e321ff166a4c5b\""
}
But the hyperkitty send button is still showing the KeyError named 'file'. Its traceback being the one I sent before.
On Sat, Mar 9, 2019 at 10:03 AM Mark Sapiro <mark@msapiro.net> wrote:
On 3/8/19 8:18 PM, NAYAN KHANNA wrote:
Is the HyperKitty list you are trying to post to known to Mailman core? I didn't quite understand this? List known to Mailman core as in? Please elaborate a bit.
Known to mailman core as in appears in the output of 'mailman lists'.
I ask because it appears the error you posted was due to HyperKitty getting the url 'http://localhost:8001/3.0/lists/LIST-NAME' and getting a 404 response which should only happen if the REST api doesn't know a list named LIST-NAME.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On 3/9/19 12:06 AM, NAYAN KHANNA wrote:
Sorry for the late reply, Mark. I just checked it.
mailman lists
shows maillist2@example.com as a component of the output. Also, localhost:8001/3.0/lists/maillist2@example.com/ shows full JSON details about mailllist2@example.com. { "display_name": "Maillist2", "fqdn_listname": "maillist2@example.com <mailto:maillist2@example.com>", "list_id": "maillist2.example.com <http://maillist2.example.com>", "list_name": "maillist2", "mail_host": "example.com <http://example.com>", "member_count": 3, "volume": 1, "description": "NA", "self_link": "http://localhost:8001/3.0/lists/maillist2.example.com", "http_etag": "\"d4966cd892c82a3dbbe663fe41e321ff166a4c5b\"" }But the hyperkitty send button is still showing the KeyError named 'file'. Its traceback being the one I sent before.
As I have tried to say a few times and explicitly said at <https://mail.python.org/archives/list/mailman-developers@python.org/message/4HTSGNRHVM6K2MPXUMTNGRJA2I2ZZMIX/>, KeyError named 'file' is not the issue.
The issue is the part of the traceback leading up to and including (in your case)
During handling of the above exception (HTTP Error 404: b'404 Not Found'), another exception occurred:
which appears to say that localhost:8001/3.0/lists/some_list_name/ is returning a 404. Is maillist2@example.com the listname part of the URL of the HyperKitty page from which you are trying to send.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On 3/8/19 11:29 AM, NAYAN KHANNA 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
What do you mean by "contents as expected". Do you know what to expect?
To use 'mailman inject', you must have a RFC 822/2822/5322 compliant message in a file. Then you can do either
mailman inject -f FILE_NAME
or
cat FILE_NAME|mailman inject
where FILE_NAME is the name of the file containing the message. You can also do
mailman inject
and then type the message, but this is normally to tedious.
Note that at a minimum, the message should have From:, To:, Date:, Subject: and Message-ID: headers and To: should be an existing list.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
What's the contents of the various directories in Mailman's var/queue? All of them are empty yet.
What's in Mailman's var/logs/mailman.log and var/logs/smtp.log? var/logs/mailman.log Mar 07 02:59:44 2019 (21651) Master started Mar 07 02:59:53 2019 (21660) command runner started. Mar 07 02:59:53 2019 (21661) in runner started. Mar 07 02:59:53 2019 (21662) lmtp runner started. Mar 07 02:59:53 2019 (21668) virgin runner started. Mar 07 02:59:54 2019 (21663) nntp runner started. Mar 07 02:59:55 2019 (21659) bounces runner started. Mar 07 02:59:55 2019 (21665) pipeline runner started. Mar 07 02:59:55 2019 (21669) digest runner started. Mar 07 02:59:55 2019 (21658) archive runner started. Mar 07 02:59:55 2019 (21667) retry runner started. Mar 07 02:59:57 2019 (21664) out runner started.
var/logs/smtp.log is empty
I tried all the above solutions which you gave. But in every case, I am greeted with a message 'Error: Missing argument "LISTSPEC".' Please let me know what am I missing.
Also, about the hyperkitty KeyError while sending a message, please help me on that.
Thanks
On Sat, Mar 9, 2019 at 1:16 AM Mark Sapiro <mark@msapiro.net> wrote:
On 3/8/19 11:29 AM, NAYAN KHANNA 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
What do you mean by "contents as expected". Do you know what to expect?
To use 'mailman inject', you must have a RFC 822/2822/5322 compliant message in a file. Then you can do either
mailman inject -f FILE_NAME
or
cat FILE_NAME|mailman inject
where FILE_NAME is the name of the file containing the message. You can also do
mailman inject
and then type the message, but this is normally to tedious.
Note that at a minimum, the message should have From:, To:, Date:, Subject: and Message-ID: headers and To: should be an existing list.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On 3/8/19 11:58 AM, NAYAN KHANNA wrote:
I tried all the above solutions which you gave. But in every case, I am greeted with a message 'Error: Missing argument "LISTSPEC".' Please let me know what am I missing.
My error. Answered in my next reply.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Mark Sapiro
-
NAYAN KHANNA