Age | Commit message (Collapse) | Author |
|
Add the required authentication backend configuration and include an
example for how to set up the pgauth plugin.
|
|
Search forms currently point to the hardcoded address of www.postgresql.org.
Add a parameter in the settings to make it possible to configure the domain
hosting the /search/ function.
Originally from Célestin Matte, but in the end not his patch
|
|
|
|
|
|
Per-user limit that says how many seconds must go between each email.
Outgoing emails are also delayed by this much (or we'd miss it)
|
|
|
|
For hidden archives, it makes sense to require a subscription in order
to be allowed to log in. But for public archives, any user should be
able to log in to request a re-send of a message.
|
|
This allows a logged-in user to get an email delivered to their mailbox,
thereby making it easy to reply to even if they haven't got it already
(and don't have a MUA capable of handling mbox files).
The email body will go out unmodified (including any list headers that
are stored in the archives, but this does not include for example the
unsubscribe link). Envelope sender is set to one configured in the ini
file, and envelope recipient is set to the email address of the user.
|
|
|
|
Per pep8 warnings, adjust indentation for consistency
|
|
pep8 standard for indentation
|
|
|
|
This adapts the code for the "gitrev" variable that can be used
in templates. This will enable cache busting for self hosted
asset files.
The path for where the archive app is stored differs from pgweb,
so the relative directory is changed in this implementation.
|
|
Seems django 1.11 automatically enables caching template loader, which
of course breaks the ability to make any changes to the pages of a
website without restarting it. And there is no way to turn it off other
than to explicitly configure individual loders (the logic to turn it on
in non-debug configurations is hardcoded and cannot be changed).
|
|
Can't use render_to_response the old way -- that would put the output of
NavContext into the Content-Type header which is clearly very wrong.
|
|
|
|
This assumes we sync subscribers over from the list server (using
pglister), getting their community authentication usernames. Then, by
requesting a community auth login, it's possible to restrict the session
to view only those lists the user is subscribed to.
To view emails, the user must be subscribed to *all* the lists that the
thread the message belongs to has shown up. This means that messages can
dissappear from a listing if somebody CCs in a higher security level
list.
NOTE! After installing this code, the PUBLIC_ARCHIVES setting must be
set to True to retain previous behaviour!
Reviewed by Stephen Frost
|
|
Previously we only did this for thread-mbox downloads, but since the
move to pglister we need to do it for the main mbox downloads as well.
In order to make this more efficient, ensure that we use a server-side
cursor when getting the messages. We already sent them back to the
webserver in streaming mode, but not between the database and django.
|
|
Ability to view latest messages on a list, and the contents of a thread
|
|
This can happen because some emails are in the wrong mbox file based
on their date, so just generating the mbox linked based on which dates
are present in the database can generate extra links.
|
|
|
|
|
|
|
|
Might want to move this to a local_settings.py sometime in the future
|
|
|
|
|
|
|
|
|