[Mailman-Developers] Re: No module named readme_renderer

2019-03-09 Thread Abhilash Raj
On Sat, Mar 9, 2019, at 9:44 PM, NAYAN KHANNA wrote:
> If anyone else is also facing this issue since today morning,
> `No module named readme_renderer`,

I added a new dependency today, which is why you are seeing this.

Just go to your project root and run:

$ python setup.py develop

This will update all your dependencies. 

> Please run
> $pip install readme_renderer
> 
> There is not much about this issue on the internet. That's why I just
> posted the solution.
> 
> 
> Regards,
> 
> *Nayan Khanna*
> *Second Year,*
> *MSc Mathematics + **BE Computer Science*
> *BITS Pilani*
> ***▄▄▄***
> 
> *Birla Institute of Technology & Science,* *Pilani*
> 
> Pilani Campus, Vidhya Vihar, Pilani, Rajasthan - 333 031, INDIA.
> ___
> 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,
  Abhilash Raj (maxking)
___
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] No module named readme_renderer

2019-03-09 Thread NAYAN KHANNA
If anyone else is also facing this issue since today morning,
`No module named readme_renderer`,
Please run
$pip install readme_renderer

There is not much about this issue on the internet. That's why I just
posted the solution.


Regards,

*Nayan Khanna*
*Second Year,*
*MSc Mathematics + **BE Computer Science*
*BITS Pilani*
***▄▄▄***

*Birla Institute of Technology & Science,* *Pilani*

Pilani Campus, Vidhya Vihar, Pilani, Rajasthan - 333 031, INDIA.
___
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: Facing problem in setting up environment

2019-03-09 Thread Abhilash Raj
On Sat, Mar 9, 2019, at 8:25 AM, Mark Sapiro wrote:
> On 3/8/19 9:12 PM, ARPIT sharma wrote:
> > Same problem anyone found fix for this?
> > 
> > On Thu, Mar 7, 2019 at 12:28 AM NAYAN KHANNA <
> > f20170...@pilani.bits-pilani.ac.in> wrote:
> > 
> >> I am also facing the same issue as KeyError 'file'.
> >> The complete traceback is shown below.
> >> Can someone please help me on this?
> >> KeyError at /postorius/lists/
> >>
> >> 'file'
> 
> 
> For all of you who *think* you have the same problem, you may all be
> having different issues. This KeyError is a secondary error that occurs
> in Django's processing of the original exception. When you look at the
> full traceback, you'll see in it something similar to the following:

To add to what Mark said, usually, KeyError is caused by missing log file
or bad settings in Django. Some exception is raised and Django tries to log
it to a "file" which is looks for in the LOGGING['loggers'] in 
exmaple_project/settings.py. 

Please make sure that you figure out which logger are you missing. From
looking at the traceback, I see that it is "django.template" logger. Which
should ideally not cause problems, but it looks like it is.

> 
> 
> ...
> >>  
> >> /home/nayankhanna/Code/GSoC19/mailman/postorius/src/postorius/views/list.py
> >> in _get_choosable_domains
> >>1.
> >>
> >>   domains = Domain.objects.all()
> >>
> >>   ...
> >>▶ Local vars 
> >>-
> >> /home/nayankhanna/Code/GSoC19/mailman/postorius/src/postorius/models.py
> >> in all
> >>1.
> >>
> >>   return getattr(get_mailman_client(),
> >> self.resource_name_plural)
> >>
> >>   ...
> >>▶ Local vars 
> >>-
> >>
> >>  
> >> /home/nayankhanna/Code/GSoC19/mailman/mailmanclient/src/mailmanclient/client.py
> >> in domains
> >>1.
> >>
> >>   response, content = self._connection.call('domains')
> >>
> >>   ...
> >>▶ Local vars 
> >>-
> >>
> >>  
> >> /home/nayankhanna/Code/GSoC19/mailman/mailmanclient/src/mailmanclient/restbase/connection.py
> >> in call
> >>1.
> >>
> >>   response.content, response, None)
> >>
> >>   ...
> >>▶ Local vars 
> >>- During handling of the above exception (HTTP Error 500: b'A server
> >>error occurred. Please contact the administrator.'), another exception
> >>occurred:
> ...
> 
> The line above and the traceback above that are the relevant things for
> your issue. Everything that follows is not relevant.
> 
> -- 
> 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,
  Abhilash Raj (maxking)
___
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: Subject tagging in Mailman 3

2019-03-09 Thread Mark Sapiro
On 3/9/19 11:34 AM, Andrew Hodgson wrote:
> 
> On Mailman 2 when the subject tagging was enabled, replies to the list had 
> the Re: in front of the tagging like so:
> 
> 
> Subject: Re: [Mailman-Developers] Facing problem in setting up environment


Actually, in MM 2.1.6 and newer that is called OLD_STYLE_PREFIXING and
is the default. See
.


> In Mailman 3 it seems to append the tag first:
> 
> 
> 
> Subject: [Mailman-Developers] Re: Facing problem in setting up environment

This is the new style and is required when the prefix contains a message
number as in [List %d]. This is because it makes no sense for message #
123 which is a reply to message # 121 to say 'Re: [List 123] ...

In MM 2.1 you could chose this style without numbering messages in the
prefix by setting OLD_STYLE_PREFIXING = No. In MM 3, there is no longer
any OLD_STYLE_PREFIXING.


> I have had some comments that this makes it difficult for screen
reader users to identify whether the message is a new message or a
reply.  Its not just one or two people either, though a lot of the
people just don't like change which is one factor.


This seems like an accessibility issue. There is an open issue on this
at . I just now tagged
that with 'accessibility' and added your note.

-- 
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


[Mailman-Developers] Subject tagging in Mailman 3

2019-03-09 Thread Andrew Hodgson
Hi,

Sorry I can't remember if I asked this before, I have been given feedback about 
this a few times on the lists I have migrated to Mailman 3.

On Mailman 2 when the subject tagging was enabled, replies to the list had the 
Re: in front of the tagging like so:


Subject: Re: [Mailman-Developers] Facing problem in setting up environment



In Mailman 3 it seems to append the tag first:



Subject: [Mailman-Developers] Re: Facing problem in setting up environment



I have had some comments that this makes it difficult for screen reader users 
to identify whether the message is a new message or a reply.  Its not just one 
or two people either, though a lot of the people just don't like change which 
is one factor.



Was this behavior change between versions intentional?



Thanks.

Andrew.



___
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: {Disarmed} Re: Regarding Sending messages/posts to the list

2019-03-09 Thread f20170636
Mark, I got the reason of error, and realise how dumb the question was.
Anyways, I have now made the necessary changes and the functionality is working 
now.
Also, now I have understood why you say the KeyError 'file' could be due to 
different issues for all of us.

Thanks a lot for the clarification
Nayan Khanna
___
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: {Disarmed} Re: Regarding Sending messages/posts to the list

2019-03-09 Thread NAYAN KHANNA
Mark, I just realised the cause behind it giving me a Http404.
The reason is it is trying to access http://localhost:8001/3.0/lists/2
where 2 is the List id of 'mailli...@example.com'
If it sends a request to
http://localhost:8001/3.0/lists/mailli...@example.com, then it would work
fine.
What could be the possible reason behind this?
(It sending a request to http://localhost:8001/3.0/lists/ and not
http://localhost:8001/3.0/lists/)


Regards,

*Nayan Khanna*
*Second Year,*
*MSc Mathematics + **BE Computer Science*
*BITS Pilani*
***▄▄▄***

*Birla Institute of Technology & Science,* *Pilani*

Pilani Campus, Vidhya Vihar, Pilani, Rajasthan - 333 031, INDIA.


On Sat, Mar 9, 2019 at 10:35 PM NAYAN KHANNA <
f20170...@pilani.bits-pilani.ac.in> wrote:

>  Is mailli...@example.com the listname part of the URL
> of the HyperKitty page from which you are trying to send.
>
> Yes it is, See the page in the attachment below.
>
>
> Regards,
>
> *Nayan Khanna*
> *Second Year,*
> *MSc Mathematics + **BE Computer Science*
> *BITS Pilani*
> ***▄▄▄***
>
> *Birla Institute of Technology & Science,* *Pilani*
>
> Pilani Campus, Vidhya Vihar, Pilani, Rajasthan - 333 031, INDIA.
>
>
> On Sat, Mar 9, 2019 at 10:31 PM Mark Sapiro  wrote:
>
>> On 3/9/19 12:06 AM, NAYAN KHANNA wrote:
>> > Sorry for the late reply, Mark.
>> > I just checked it.
>> > `mailman lists` shows mailli...@example.com
>> > as a component of the output.
>> > Also, localhost:8001/3.0/lists/mailli...@example.com/
>> > shows full JSON details about
>> > maillli...@example.com.
>> > {
>> >   "display_name": "Maillist2",
>> >   "fqdn_listname": "mailli...@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.
>>
>>
>> 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 mailli...@example.com the listname part of the URL
>> of the HyperKitty page from which you are trying to send.
>>
>> --
>> 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
>>
>
___
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: GSoC Intro and Project

2019-03-09 Thread Mark Sapiro
On 3/9/19 3:18 AM, Aaryan Bhagat wrote:
> 
> QUESTIONS
> 
> Q1--- What should be my implementation of processing bounces? Same as 
> previous Mailman or some new ideas.


The basic, high level overview should be similar, but the implementation
will probably be much different due to the architectual differences
between MM 2.1 and MM 3 core.

Also, a redesign of the parameters would be OK if it still makes sense.


> Q2--- Some crucial info I missed or overlooked please point out and guide me 
> in the right direction for this. If any imp doc I missed please share the 
> link.


Only  which I mentioned
in another thread.


> I believe implementation on this is not trivial and suitable amount of 
> discussion is required for making anything final.

Agreed.


> I hope to contribute to this org as long as possible(GSoC or No GSoC). It has 
> really sparked my interest.


We appreciate your interest and are happy for your contributions.

-- 
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


[Mailman-Developers] Re: Reason for file in mailman/src/mailman/model?

2019-03-09 Thread aaryan bhagat
Thanks mark basically I have summarized this in another thread please go
through that

Thread--- "
https://mail.python.org/archives/list/mailman-developers@python.org/thread/TN2XA2ABFZ6VCITFY5ENI34CVJPP3OTA/
"

On Sat, 9 Mar 2019, 23:09 Mark Sapiro,  wrote:

> On 3/9/19 1:12 AM, Aaryan Bhagat wrote:
> > A follow up question
> > I do not get what "bounces.py" in "mailman/src/mailman" is trying to
> achieve?
> >
> >>From what I understand we have a func to send the bounce back (this
> happens in MTA so nothing unusual)
> > Since Verp does not work effectively with every MTA so we parse the Verp
> message and send the Verp probes(send_probe func).
> >
> > I have referred to "
> https://wiki.list.org/DOC/So%20what%20is%20this%20VERP%20stuff"; so this
> has helped me in probe stuff.
> >
> > Q1--Is this right or some pointers I am missing?
>
>
> Basically, mailman sends outgoing messages with envelope sender
> 'listname-bounces@list.domain' or in the VERP case
> 'listname-bounces+recip=recip.domain@list.domain'. If such a message is
> undeliverable, a failure DSN is returned.
>
> Currently in Mailman 3, that results in a bounce event being recorded
> and nothing more.
>
> There should be lots more as in Mailman 2.1. See
>  for some info.
>
>
> > Q2--What exactly is the meaning of ProbeVerp class and _ProbePendable
> class?
>
>
> See
> <
> https://mail.python.org/archives/list/mailman-developers@python.org/message/AY4FPVYNHK2D25F67R5VL3E46XHQKSFK/
> >
> (the first 5 paragraphs) for some info on probes.
>
> Implementing all of this in Mailman 3 would make a good GSOC project and
> is in fact suggested at
> <
> https://wiki.list.org/DEV/Google%20Summer%20of%20Code%202019#Add_support_for_bounce_processing_in_Core
> >.
> I am personally interested in this, but I don't have availability to be
> a mentor for this project.
>
> --
> 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
>
___
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: Reason for file in mailman/src/mailman/model?

2019-03-09 Thread Mark Sapiro
On 3/9/19 1:12 AM, Aaryan Bhagat wrote:
> A follow up question
> I do not get what "bounces.py" in "mailman/src/mailman" is trying to achieve?
> 
>>From what I understand we have a func to send the bounce back (this happens 
>>in MTA so nothing unusual)
> Since Verp does not work effectively with every MTA so we parse the Verp 
> message and send the Verp probes(send_probe func).
> 
> I have referred to 
> "https://wiki.list.org/DOC/So%20what%20is%20this%20VERP%20stuff"; so this has 
> helped me in probe stuff.
> 
> Q1--Is this right or some pointers I am missing?


Basically, mailman sends outgoing messages with envelope sender
'listname-bounces@list.domain' or in the VERP case
'listname-bounces+recip=recip.domain@list.domain'. If such a message is
undeliverable, a failure DSN is returned.

Currently in Mailman 3, that results in a bounce event being recorded
and nothing more.

There should be lots more as in Mailman 2.1. See
 for some info.


> Q2--What exactly is the meaning of ProbeVerp class and _ProbePendable class?


See

(the first 5 paragraphs) for some info on probes.

Implementing all of this in Mailman 3 would make a good GSOC project and
is in fact suggested at
.
I am personally interested in this, but I don't have availability to be
a mentor for this project.

-- 
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


[Mailman-Developers] Re: {Disarmed} Re: Regarding Sending messages/posts to the list

2019-03-09 Thread Mark Sapiro
On 3/9/19 12:06 AM, NAYAN KHANNA wrote:
> Sorry for the late reply, Mark.
> I just checked it. 
> `mailman lists` shows mailli...@example.com
> as a component of the output.
> Also, localhost:8001/3.0/lists/mailli...@example.com/
> shows full JSON details about
> maillli...@example.com.
> {
>   "display_name": "Maillist2",
>   "fqdn_listname": "mailli...@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.


As I have tried to say a few times and explicitly said at
,
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 mailli...@example.com the listname part of the URL
of the HyperKitty page from which you are trying to send.

-- 
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


[Mailman-Developers] Re: Indentation Issue

2019-03-09 Thread Mark Sapiro
On 3/8/19 11:26 PM, Saswat Mishra wrote:
> Warning: This message has had one or more attachments removed
> Warning: (dpkg).
> Warning: Please read the "GPC-Attachment-Warning.txt" attachment(s) for more 
> information.
> 
> Hello all ,
> 
> Currently I have started getting an error :
> 
> File "/usr/lib/mailman/bin/update", line 50, in 
> from Mailman import Utils
>   File "/var/lib/mailman/Mailman/Utils.py", line 407
> return UserFriendly_MakeRandomPassword(length)
> ^
> IndentationError: unexpected indent
> dpkg: error processing package mailman (--configure):
>  installed mailman package post-installation script subprocess returned
> error exit status 1
> Errors were encountered while processing:
>  mailman
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> 
> 
> I don't know where I have messed up and  have been trying to get over this
> issue since yesterday.  So, please help. I am attaching both the files
> belolw.


You are installing Mailman 2.1 from a package. The package is broken.
You will need to contact the packager about that. See
.

The actual error is in this code in Utils.py

def MakeRandomPassword(length=mm_cfg.MEMBER_PASSWORD_LENGTH):
if mm_cfg.USER_FRIENDLY_PASSWORDS:10
return UserFriendly_MakeRandomPassword(length)
return Secure_MakeRandomPassword(length)

The line

if mm_cfg.USER_FRIENDLY_PASSWORDS:10

should not have anything following the ':'.

However, none of this is relevant. Based on your prior posts to this
list, you are interested in GSOC and Mailman 3 and HyperKitty. The
package you are trying to install is for an older Mailman. Start at
 to see how you should be
setting up your Mailman development environment.

-- 
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


[Mailman-Developers] Re: Facing problem in setting up environment

2019-03-09 Thread Mark Sapiro
On 3/8/19 9:12 PM, ARPIT sharma wrote:
> Same problem anyone found fix for this?
> 
> On Thu, Mar 7, 2019 at 12:28 AM NAYAN KHANNA <
> f20170...@pilani.bits-pilani.ac.in> wrote:
> 
>> I am also facing the same issue as KeyError 'file'.
>> The complete traceback is shown below.
>> Can someone please help me on this?
>> KeyError at /postorius/lists/
>>
>> 'file'


For all of you who *think* you have the same problem, you may all be
having different issues. This KeyError is a secondary error that occurs
in Django's processing of the original exception. When you look at the
full traceback, you'll see in it something similar to the following:


...
>>  /home/nayankhanna/Code/GSoC19/mailman/postorius/src/postorius/views/list.py
>> in _get_choosable_domains
>>1.
>>
>>   domains = Domain.objects.all()
>>
>>   ...
>>▶ Local vars 
>>-
>> /home/nayankhanna/Code/GSoC19/mailman/postorius/src/postorius/models.py
>> in all
>>1.
>>
>>   return getattr(get_mailman_client(),
>> self.resource_name_plural)
>>
>>   ...
>>▶ Local vars 
>>-
>>
>>  
>> /home/nayankhanna/Code/GSoC19/mailman/mailmanclient/src/mailmanclient/client.py
>> in domains
>>1.
>>
>>   response, content = self._connection.call('domains')
>>
>>   ...
>>▶ Local vars 
>>-
>>
>>  
>> /home/nayankhanna/Code/GSoC19/mailman/mailmanclient/src/mailmanclient/restbase/connection.py
>> in call
>>1.
>>
>>   response.content, response, None)
>>
>>   ...
>>▶ Local vars 
>>- During handling of the above exception (HTTP Error 500: b'A server
>>error occurred. Please contact the administrator.'), another exception
>>occurred:
...

The line above and the traceback above that are the relevant things for
your issue. Everything that follows is not relevant.

-- 
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


[Mailman-Developers] Re: Facing problem in setting up environment

2019-03-09 Thread ARPIT sharma
Same problem anyone found fix for this?

On Thu, Mar 7, 2019 at 12:28 AM NAYAN KHANNA <
f20170...@pilani.bits-pilani.ac.in> wrote:

> I am also facing the same issue as KeyError 'file'.
> The complete traceback is shown below.
> Can someone please help me on this?
> KeyError at /postorius/lists/
>
> 'file'
>
> Request Method: GET
> Request URL: http://127.0.0.1:8000/postorius/lists/
> Django Version: 2.1.7
> Exception Type: KeyError
> Exception Value:
>
> 'file'
>
> Exception Location:
> /home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/tempfile.py
> in __getattr__, line 616
> Python Executable: /home/nayankhanna/Code/GSoC19/mailman/venv3/bin/python3
> Python Version: 3.6.5
> Python Path:
>
>
> ['/home/nayankhanna/Code/GSoC19/mailman/mailman-suite/mailman-suite_project',
>  '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python36.zip',
>  '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6',
>  '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/lib-dynload',
>  '/usr/lib/python3.6',
>  '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages',
>  '/home/nayankhanna/Code/GSoC19/mailman/mailman/src',
>
>  
> '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/zope.interface-4.6.0-py3.6-linux-x86_64.egg',
>
>  
> '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/zope.event-4.4-py3.6.egg',
>
>  
> '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/zope.configuration-4.3.1-py3.6.egg',
>
>  
> '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/zope.component-4.5-py3.6.egg',
>
>  
> '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/SQLAlchemy-1.3.0-py3.6-linux-x86_64.egg',
>
>  
> '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/requests-2.21.0-py3.6.egg',
>
>  
> '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/passlib-1.7.1-py3.6.egg',
>
>  
> '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/lazr.config-2.2.1-py3.6.egg',
>
>  
> '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/importlib_resources-1.0.2-py3.6.egg',
>
>  
> '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/flufl.lock-3.2-py3.6.egg',
>
>  
> '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/flufl.i18n-2.0.1-py3.6.egg',
>
>  
> '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/flufl.bounce-3.0-py3.6.egg',
>
>  
> '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/falcon-2.0.0a1-py3.6.egg',
>
>  
> '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/dnspython-1.16.0-py3.6.egg',
>
>  
> '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/Click-7.0-py3.6.egg',
>
>  
> '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/atpublic-1.0-py3.6.egg',
>
>  
> '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/alembic-1.0.8-py3.6.egg',
>
>  
> '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/aiosmtpd-1.2-py3.6.egg',
>
>  
> '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/zope.schema-4.9.3-py3.6.egg',
>
>  
> '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/zope.i18nmessageid-4.3.1-py3.6-linux-x86_64.egg',
>
>  
> '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/zope.hookable-4.2.0-py3.6-linux-x86_64.egg',
>
>  
> '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/zope.deprecation-4.4.0-py3.6.egg',
>
>  
> '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/zope.deferredimport-4.3-py3.6.egg',
>
>  
> '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/urllib3-1.24.1-py3.6.egg',
>
>  
> '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/idna-2.8-py3.6.egg',
>
>  
> '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/chardet-3.0.4-py3.6.egg',
>
>  
> '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/certifi-2018.11.29-py3.6.egg',
>
>  
> '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/lazr.delegates-2.0.4-py3.6.egg',
>
>  
> '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/python_dateutil-2.8.0-py3.6.egg',
>
>  
> '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/python_editor-1.0.4-py3.6.egg',
>
>  
> '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/Mako-1.0.7-py3.6.egg',
>
>  
> '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/six-1.12.0-py3.6.egg',
>
>  
> '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/zope.proxy-4.3.1-py3.6-linux-x86_64.egg',
>
>  
> '/home/nayankhanna/Code/GSoC19/mailman/venv3/lib/python3.6/site-packages/nose-1.3.7-py3.6.egg',
>
>  
> '/home/nayankhanna/Code/GS

[Mailman-Developers] GSoC Intro and Project

2019-03-09 Thread Aaryan Bhagat
I have started contributing in GNU Mailman for quite some time now and a some 
Introduction is required so.
My name is Aaryan Bhagat a 2nd Year Computer Science Undergraduate studying in 
Indian Institute of Technology Kharagur.

github-link---"https://github.com/berserker1";
gitlab-link"https://gitlab.com/berserker1?nav_source=navbar";

I will be focusing on the project idea "Add support for bounce processing in 
Core". I feel comfortable in this area and have undertook some research in this 
also meanwhile.


DISCUSSION FOR THE IDEA--

Currently I have read the source code regarding bounce runner and various 
files. What I have gathered of all the bounce configuration files is this 
(Summary below if you want to skip) :

>File `bounce.py` in `mailman/src/mailman/interfaces` is an interface file 
>which defines various class of bounce functions.

>File `bounce.py` in `mailman/src/mailman/model` is a model file for various 
>functions.

>File `bounce.py` in `mailman/src/mailman/runners/bounce.py` runs the `bounce 
>runner` info read about the runners in the docs.

>File `bounces.rst` in `mailman/src/mailman/app/docs/bounces.rst` shows how a 
>bounce message is generated and send to the original sender , how you can also 
>send the error reasons in a dict and it will all be showed to the sender in an 
>organized way.

>File `bounce.rst` in `mailman/src/mailman/model/docs`  shows how a bounce 
>event is registered , it stores various info .  

>File `test_bounces.py` in `mailman/src/mailman/app/tests` tests the 
>`app.bounces` functions.

>File `test_bounce.py` in `mailman/src/mailman/model/tests` tests the `bounce 
>model objects` .

>File `test_bounce.py` in `mailman/src/mailman/runners/tests` tests the `bounce 
>runners`.

SUMMARY---
What I can summarize is the method of detecting bounces, registering events, 
sending mail bounce message to the sender and all other data gathering events 
are complete.(Also mentioned in the proposal but I had to go though to 
understand the code otherwise I could not move on).

I have also read the Mailman 2.1.xx method of processing bounce addresses. 
Important docs I have read -

Bounces in mailman3  
"https://mailman.readthedocs.io/en/latest/src/mailman/model/docs/bounce.html";

Bounce Processing of Mailman 2.1( Sub topic here ) -- 
"https://wiki.list.org/DOC/Mailman%202.1%20List%20Administrators%20Manual?highlight=%28Bounce%29";

Runners in Mailman3  
"https://mailman.readthedocs.io/en/latest/src/mailman/runners/docs/incoming.html";


QUESTIONS

Q1--- What should be my implementation of processing bounces? Same as previous 
Mailman or some new ideas.
 (I am researching this but also need pointers from other contributors!)

Q2--- Some crucial info I missed or overlooked please point out and guide me in 
the right direction for this. If any imp doc I missed please share the link.

I believe implementation on this is not trivial and suitable amount of 
discussion is required for making anything final.
I hope to contribute to this org as long as possible(GSoC or No GSoC). It has 
really sparked my interest.
___
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: Reason for file in mailman/src/mailman/model?

2019-03-09 Thread Aaryan Bhagat
A follow up question
I do not get what "bounces.py" in "mailman/src/mailman" is trying to achieve?

>From what I understand we have a func to send the bounce back (this happens in 
>MTA so nothing unusual)
Since Verp does not work effectively with every MTA so we parse the Verp 
message and send the Verp probes(send_probe func).

I have referred to 
"https://wiki.list.org/DOC/So%20what%20is%20this%20VERP%20stuff"; so this has 
helped me in probe stuff.

Q1--Is this right or some pointers I am missing?

Q2--What exactly is the meaning of ProbeVerp class and _ProbePendable class?
___
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: {Disarmed} Re: Regarding Sending messages/posts to the list

2019-03-09 Thread NAYAN KHANNA
Sorry for the late reply, Mark.
I just checked it.
`mailman lists` shows mailli...@example.com as a component of the output.
Also, localhost:8001/3.0/lists/mailli...@example.com/ shows full JSON
details about maillli...@example.com.
{
  "display_name": "Maillist2",
  "fqdn_listname": "mailli...@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  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 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