]> Sergey Matveev's repositories - public-inbox.git/log
public-inbox.git
10 years agodoc: various cleanups all around
Eric Wong [Tue, 8 Apr 2014 08:45:25 +0000 (08:45 +0000)]
doc: various cleanups all around

Most notably, the INSTALL is geared towards potential server admins,
whereas the README is also for interested "drive-by" readers.

10 years agocgi: cleanup dependencies
Eric Wong [Tue, 8 Apr 2014 08:43:18 +0000 (08:43 +0000)]
cgi: cleanup dependencies

We do not need to use CGI::Util internals here.

10 years agocgi: make internal interface more Plack-like
Eric Wong [Mon, 7 Apr 2014 22:59:10 +0000 (22:59 +0000)]
cgi: make internal interface more Plack-like

This should make it easier to support non-CGI uses,
as well as making it easier to generate static sites.

10 years agofeed: generate takes a hashref for args
Eric Wong [Mon, 7 Apr 2014 20:26:42 +0000 (20:26 +0000)]
feed: generate takes a hashref for args

Passing a giant argument list is to error prone and
hard-to-document.

10 years agodoc: design_www note /full/ namespace for messages
Eric Wong [Sun, 6 Apr 2014 07:06:15 +0000 (07:06 +0000)]
doc: design_www note /full/ namespace for messages

We serve the short, abridge-quote version by default since
it is (unfortunately) common practice to over-quote on mailing lists.

10 years agoview: use "original" rather than "raw"
Eric Wong [Sun, 6 Apr 2014 07:03:49 +0000 (07:03 +0000)]
view: use "original" rather than "raw"

This wording is probably clearer to everyone, and also used by at
least one other mailing list WWW interface.

10 years agoview: minor cleanups
Eric Wong [Sun, 6 Apr 2014 06:59:43 +0000 (06:59 +0000)]
view: minor cleanups

Avoid adding extraneous whitespace in HTML content, as it
increases bandwidth usage of network, disk and memory.

10 years agofeed: reuse view class to display message
Eric Wong [Sun, 6 Apr 2014 06:52:18 +0000 (06:52 +0000)]
feed: reuse view class to display message

This reduces duplicated/similar code and hopefully makes things more
consistent.

10 years agoview: all content is assumed to be displayable text
Eric Wong [Sun, 6 Apr 2014 06:50:08 +0000 (06:50 +0000)]
view: all content is assumed to be displayable text

Our Filter class now passes through application/octet-stream
if it looks like text (because some mailers suck); so we
cannot trust the specified Content-Type of a message.

10 years agoMakefile.PL: update dependencies
Eric Wong [Sat, 5 Apr 2014 10:55:44 +0000 (10:55 +0000)]
Makefile.PL: update dependencies

This is lightly tested.

10 years agoview: use URI::Escape to escape URIs
Eric Wong [Sat, 5 Apr 2014 10:54:24 +0000 (10:54 +0000)]
view: use URI::Escape to escape URIs

CGI::escape is not a documented subroutine, so the chances of
it going away are higher.

10 years agofeed: remove unnecessary use
Eric Wong [Sat, 5 Apr 2014 10:51:52 +0000 (10:51 +0000)]
feed: remove unnecessary use

We no longer use DateTime::Format::Mail.

10 years agofeed: use Date::Parse to parse dates
Eric Wong [Sat, 5 Apr 2014 07:02:19 +0000 (07:02 +0000)]
feed: use Date::Parse to parse dates

This is a smaller module dependency-wise and should be easier-to-install
for folks with limited packaging systems or network/disk capacity.
We do not need very powerful date parsing, as bad date formats are
likely the work of spammers.

10 years agoget a basic CGI feed sender running
Eric Wong [Sat, 5 Apr 2014 06:53:19 +0000 (06:53 +0000)]
get a basic CGI feed sender running

We should be able to wire up the rest, soon.

10 years agoremove failrepo config
Eric Wong [Sat, 5 Apr 2014 03:17:35 +0000 (03:17 +0000)]
remove failrepo config

We will just use the fallback in Email::Filter to
reduce configuration knobs.  Failed messages are failed
messages, do not classify them beyond that.

10 years agopublic-inbox-mda: preliminary manpage documentation
Eric Wong [Sat, 5 Apr 2014 01:33:46 +0000 (01:33 +0000)]
public-inbox-mda: preliminary manpage documentation

This still needs to be fleshed out.

10 years agoview: implement quote folding and flesh out tests
Eric Wong [Sat, 5 Apr 2014 01:11:08 +0000 (01:11 +0000)]
view: implement quote folding and flesh out tests

Unfortunately, quoting is often excessive, so hide multi-line quotes
by default and provide anchored links to full messages instead.

10 years agoconfig: add shortcut for retrieving elements
Eric Wong [Fri, 4 Apr 2014 23:31:46 +0000 (23:31 +0000)]
config: add shortcut for retrieving elements

Hopefully this makes for less ad-hoc hash access in case
our config format changes.

10 years agodoc: add design documentation for WWW interface
Eric Wong [Fri, 4 Apr 2014 23:28:53 +0000 (23:28 +0000)]
doc: add design documentation for WWW interface

Mainly, start with URL routes since that's what users usually
see, first.

10 years agoview: update IRP and MID links
Eric Wong [Fri, 4 Apr 2014 01:42:41 +0000 (01:42 +0000)]
view: update IRP and MID links

We'll go with .html and .txt suffixes on MIDs to benefit
static hosting setups.

10 years agoflesh out MDA and simplify config setup
Eric Wong [Tue, 1 Apr 2014 23:07:38 +0000 (23:07 +0000)]
flesh out MDA and simplify config setup

We will be reusing the config parsing code for the CGI
script, too.

10 years agoprecheck uses recipient argument
Eric Wong [Mon, 31 Mar 2014 20:16:19 +0000 (20:16 +0000)]
precheck uses recipient argument

We will also be using the RECIPIENT env in the future, since
that takes aliases into account.

Reducing the possible callsites to check ENV means we can more
easily update the code in the future.

10 years agoREADME: various updates
Eric Wong [Mon, 31 Mar 2014 20:15:27 +0000 (20:15 +0000)]
README: various updates

10 years agofilter: use regexp to check multipart bodies
Eric Wong [Fri, 4 Apr 2014 00:39:41 +0000 (00:39 +0000)]
filter: use regexp to check multipart bodies

This should be safer than running file(1), which has had its share
of vulnerabilities this year (early 2014) We really only care about
diffs and maybe short log files, here.

10 years agofilter: possibly keep PGP sigs only (not other types)
Eric Wong [Thu, 3 Apr 2014 20:28:30 +0000 (20:28 +0000)]
filter: possibly keep PGP sigs only (not other types)

We may keep PGP signatures for messages we do not modify.
However, we have no way of verifying them on the server-side.

10 years agodesign_notes: with philosophy
Eric Wong [Mon, 31 Mar 2014 19:58:24 +0000 (19:58 +0000)]
design_notes: with philosophy

10 years agofilter: use file(1) to detect mime type if octet-stream
Eric Wong [Fri, 28 Mar 2014 08:22:45 +0000 (08:22 +0000)]
filter: use file(1) to detect mime type if octet-stream

Some mailers do not correctly detect/set the Content-Type header; so
attempt to keep messages based on our server-detected MIME type if
application/octet-stream was specified.

10 years agoconfig: revamp API and implement lookup
Eric Wong [Thu, 27 Mar 2014 19:38:06 +0000 (19:38 +0000)]
config: revamp API and implement lookup

10 years agoinitial cut at Atom feed generation
Eric Wong [Mon, 24 Mar 2014 20:17:11 +0000 (20:17 +0000)]
initial cut at Atom feed generation

This should make it easier for non-ssoma users to follow.

10 years agoprecheck: require Message-ID to be set
Eric Wong [Tue, 25 Feb 2014 22:26:35 +0000 (22:26 +0000)]
precheck: require Message-ID to be set

Valid emails should not arrive without a Message-ID.

10 years agoview: add view module to be used for rendering HTML
Eric Wong [Tue, 25 Feb 2014 03:01:04 +0000 (03:01 +0000)]
view: add view module to be used for rendering HTML

This is to keep content accessible to search engines.

10 years agomove pre-spamc checks to PublicInbox->precheck
Eric Wong [Tue, 11 Feb 2014 00:36:06 +0000 (00:36 +0000)]
move pre-spamc checks to PublicInbox->precheck

We may add more checks before we go to spamc.

10 years agopublic-inbox-mda: reject messages without From header
Eric Wong [Tue, 11 Feb 2014 00:29:13 +0000 (00:29 +0000)]
public-inbox-mda: reject messages without From header

10 years agotrivial config module for dumping config
Eric Wong [Thu, 6 Feb 2014 22:19:20 +0000 (22:19 +0000)]
trivial config module for dumping config

We'll be using git config files after all...

10 years agodrop Mail-Followup-To, Mail-Reply-To, and Reply-To
Eric Wong [Tue, 14 Jan 2014 23:35:21 +0000 (23:35 +0000)]
drop Mail-Followup-To, Mail-Reply-To, and Reply-To

Due to the higher latency of a pull-based email, we want to
encourage the use of reply-to-all for public-inbox.

10 years agoreject messages if ORIGINAL_RECIPIENT is not specified
Eric Wong [Fri, 10 Jan 2014 23:50:16 +0000 (23:50 +0000)]
reject messages if ORIGINAL_RECIPIENT is not specified

SpamAssassin doesn't seem to have this heuristic, but the lack of
the intended email address in To:/Cc: headers cannot be a good
sign (especially when this is a _public_ inbox).

10 years agoscripts: add a link to GPLv3 license
Eric Wong [Fri, 10 Jan 2014 21:55:50 +0000 (21:55 +0000)]
scripts: add a link to GPLv3 license

10 years agopublic-inbox-mda: limit message size before spamc
Eric Wong [Fri, 10 Jan 2014 21:03:37 +0000 (21:03 +0000)]
public-inbox-mda: limit message size before spamc

Unfortunately we slurp, but expect our MTA to provide its own
limit on message sizes.

10 years agoscripts/import_gmane_spool: fix name in usage
Eric Wong [Fri, 10 Jan 2014 21:06:40 +0000 (21:06 +0000)]
scripts/import_gmane_spool: fix name in usage

Just use $0 for now, since I suck at naming things.

10 years agoignore all *.gz files
Eric Wong [Thu, 9 Jan 2014 23:24:07 +0000 (23:24 +0000)]
ignore all *.gz files

We generate them when publishing.

10 years agoadd preliminary INSTALL documentation
Eric Wong [Thu, 9 Jan 2014 22:46:39 +0000 (22:46 +0000)]
add preliminary INSTALL documentation

10 years agoadd MANIFEST for distribution
Eric Wong [Thu, 9 Jan 2014 22:41:09 +0000 (22:41 +0000)]
add MANIFEST for distribution

10 years agoinitial commit
Eric Wong [Thu, 9 Jan 2014 23:13:37 +0000 (23:13 +0000)]
initial commit