[Mailman-Developers] (no subject)

2019-03-28 Thread Stephen J. Turnbull
aaryan bhagat writes:

 > It is obvious that posts will not be deleted even if the user
 > unsubscribed.  But there is a "Discussion you have commented"
 > section. It is linked with each user.

[Addressed to all students, not a personal criticism]

One should study the Mailman architecture closely, especially the
database schema.  It's unnecessary to know all details of each entity,
but it's absolutely crucial that you understand the relationships
among sites, domains, lists, roles, users, addresses, memberships, and
subscriptions.  (The last two are actually relationships, of course,
but they are concrete entities == rows in the database.)

If somebody would like to make an entity-relationship diagram or a
UML/SysML description, I'd be happy to ensure it gets into the
documentation in an appropriate place!

For example, it's confusing to say "the user [Mailman entity]
unsubscribed."  It is accurate to say "the user [human] unsubscribed
the address" or "the address [Mailman entity] unsubscribed" (of
course, this is awkward English, normally we'd use a passive voice).
Sorry about the overloaded words, but that's the way any language
works, whether natural or for programming.  We deliberately overload
"user" in this way so you know that the Mailman entity represents a
human.

Note that one cannot assume that the mentors grasp all of Mailman.
Mailman is a huge project already.  The advantages we have over you
are (1) we know who to ask, (2) we know some parts well enough to say
"I don't know where to find that", (3) we have more experience in
finding stuff in general and in particular in Mailman.  (NB "Mentors
have more experience" is true in Mailman, at least to my knowledge,
but there are 10-year-olds contributing to other projects in GSoC who
are sad that it's limited to college students!)

[Specific to answering Aaryan]

If you are correct that this "Commented" section is linked with users,
not addresses, that's your answer: it's linked with users, not
addresses.  Users don't get deleted just because all addresses are
unsubscribed for all lists -- they might want to subscribe again, or
to different lists.  (Note that this would be horrible for academic
users, who frequently destroy and reconstitute thousands of lists
every year.)

Note that (IMO) if a user has an associated address that does not
appear in this section, we're doing the database wrong.  Users
associate addresses so that Mailman will know about them, and they
will expect anything they wrote under any of their addresses to appear
here.  (Note: GDPR "right to be forgotten" implications.)

 > If a user resubscribes will this section appear or it will start
 > fresh?

I don't know, I'm not a HyperKitty expert.  My guess is that this
section is populated by a database query on author when the page is
refreshed.  Therefore it will appear, including all past posts, even
if the address was not subscribed at the time of posting.

Regards,
Steve


-- 
Associate Professor  Division of Policy and Planning Science
http://turnbull.sk.tsukuba.ac.jp/ Faculty of Systems and Information
Email: turnb...@sk.tsukuba.ac.jp   University of Tsukuba
Tel: 029-853-5175 Tennodai 1-1-1, Tsukuba 305-8573 JAPAN
___
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: Mailman Core start error

2019-03-28 Thread Abhilash Raj
On Thu, Mar 28, 2019, at 12:29 PM, Arun H wrote:
> I am facing an error while starting mailman core, it shows the following 
> error:
> 
> $ mailman start
> Traceback (most recent call last):
>   File "/usr/bin/mailman", line 11, in 
> load_entry_point('mailman==3.1.1', 'console_scripts', 'mailman')()
>   File "/usr/lib/python3/dist-packages/mailman/bin/mailman.py", line 
> 94, in main
> initialize(config_path)
>   File "/usr/lib/python3/dist-packages/mailman/core/initialize.py", 
> line 188, in initialize
> initialize_1(config_path)
>   File "/usr/lib/python3/dist-packages/mailman/core/initialize.py", 
> line 123, in initialize_1
> mailman.config.config.load(config_path)
>   File "/usr/lib/python3/dist-packages/mailman/config/config.py", line 
> 106, in load
> with open(filename, 'r', encoding='utf-8') as user_config:
> PermissionError: [Errno 13] Permission denied: 
> '/etc/mailman3/mailman.cfg'
> 
> Could anyone tell me how to I correct this error? Thanks.

Where did you install it from? 

You might need to run this as `mailman` user instead of your user.

> ___
> 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] Mailman Core start error

2019-03-28 Thread Arun H
I am facing an error while starting mailman core, it shows the following error:

$ mailman start
Traceback (most recent call last):
  File "/usr/bin/mailman", line 11, in 
load_entry_point('mailman==3.1.1', 'console_scripts', 'mailman')()
  File "/usr/lib/python3/dist-packages/mailman/bin/mailman.py", line 94, in main
initialize(config_path)
  File "/usr/lib/python3/dist-packages/mailman/core/initialize.py", line 188, 
in initialize
initialize_1(config_path)
  File "/usr/lib/python3/dist-packages/mailman/core/initialize.py", line 123, 
in initialize_1
mailman.config.config.load(config_path)
  File "/usr/lib/python3/dist-packages/mailman/config/config.py", line 106, in 
load
with open(filename, 'r', encoding='utf-8') as user_config:
PermissionError: [Errno 13] Permission denied: '/etc/mailman3/mailman.cfg'

Could anyone tell me how to I correct this error? Thanks.
___
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: Loss of data when unsubscribed?

2019-03-28 Thread Mark Sapiro
On 3/28/19 4:39 AM, Aaryan Bhagat wrote:
> Thanks for the reply, Steve!
> 
> What I am trying to ask is hyperkitty preserves the archives even if the user 
> unsubscribed or not since the data is important for the discussion in the 
> thread. But there is a field there "Discussions you have posted to". If a 
> user resubscribes, will the field contain its posts before unsubscribing or 
> will it start afresh?


I answered this in another thread, but to elaborate just a bit,
HyperKitty's concept of user is the Django user that you are logged in
as. Even if that address is no longer subscribed to the archived list,
when logged in to HyperKitty as the user with that address, you will
still see the "Discussions you have posted to" (assuming the archive is
public so you can access it at all).

-- 
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: Loss of data when unsubscribed?

2019-03-28 Thread aaryan bhagat
Oh.. great Mark!. The scope of bounce processing was worrying me all the
time!
Got it now will send the whole proposal at most by tomorrow.
Meanwhile you can look at my current methodology here:

https://mail.python.org/archives/list/mailman-developers@python.org/thread/YVNHTVAZEMRZ4EKBBVGMB25SPWX7Y63C/

On Thu, 28 Mar 2019, 21:58 Mark Sapiro,  wrote:

> On 3/27/19 11:01 PM, aaryan bhagat wrote:
> > I understand you point Steve.
> > What I want to ask mainly is that--
> > It is obvious that posts will not be deleted even if the user
> unsubscribed.
> > But there is a "Discussion you have commented" section. It is linked with
> > each user.
> >
> > If a user resubscribes will this section appear or it will start fresh?
>
>
> You are talking here about HyperKitty. Under various circumstances such
> as accessing a private list archive and posting to a list, Hyperkitty
> checks if the user is subscribed, but Hyperkitty does not remove or lose
> any information just because a user unsubscribes from an archived list.
>
> Further, bounce processing and the actions related thereto only involve
> Mailman core. What some arbitrary archiver may or may not do if an
> address is unsubscribed from a list for whatever reason is outside the
> scope of bounce processing.
>
> --
> 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: Loss of data when unsubscribed?

2019-03-28 Thread Mark Sapiro
On 3/27/19 11:01 PM, aaryan bhagat wrote:
> I understand you point Steve.
> What I want to ask mainly is that--
> It is obvious that posts will not be deleted even if the user unsubscribed.
> But there is a "Discussion you have commented" section. It is linked with
> each user.
> 
> If a user resubscribes will this section appear or it will start fresh?


You are talking here about HyperKitty. Under various circumstances such
as accessing a private list archive and posting to a list, Hyperkitty
checks if the user is subscribed, but Hyperkitty does not remove or lose
any information just because a user unsubscribes from an archived list.

Further, bounce processing and the actions related thereto only involve
Mailman core. What some arbitrary archiver may or may not do if an
address is unsubscribed from a list for whatever reason is outside the
scope of bounce processing.

-- 
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] (no subject)

2019-03-28 Thread aaryan bhagat
I understand you point Steve.
What I want to ask mainly is that--
It is obvious that posts will not be deleted even if the user unsubscribed.
But there is a "Discussion you have commented" section. It is linked with
each user.

If a user resubscribes will this section appear or it will start fresh?
___
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: Loss of data when unsubscribed?

2019-03-28 Thread Aaryan Bhagat
Thanks for the reply, Steve!

What I am trying to ask is hyperkitty preserves the archives even if the user 
unsubscribed or not since the data is important for the discussion in the 
thread. But there is a field there "Discussions you have posted to". If a user 
resubscribes, will the field contain its posts before unsubscribing or will it 
start afresh?
___
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