ci: Add .travis.yml for continuous integration
Merge pull request #28 from gpoo/master

ci: Add .travis.yml for continuous integration
ci: Add current Travis status on README file
utils: Accept gzip enconding downloading files. Fix #11

In addition, files with compressed extensions, but not compressed,
are now correctly analyzed.
Merge pull request #27 from sduenas/gzip-mboxes
Use a custom mailbox class with a file object. Fix #24

Introduced a code deprecated in Python 2.7 (and removed from
3.x) that handles the mailbox as a file object (file pointer). This
should allow us to parse streams, and avoid uncompressing and
storing files.

It was removed from Python because it does not allow to modify
a mbox. However, we don't modify a mbox. So, this fits with the
purpose of mlstats.

As a consequence, this patch also solves the issue of not
processing the 'received' header (Fix #24).
Refactor remote url retrieval files

Make available only one method to retrieve a web resource,
instead of one for parsing the html index and another one
for the mbox.

In addition, added magic numbers to detect the file type
by content, which is better than guessing by the subtype
given by the web server (not always available).

Signed-off-by: Santiago Dueñas <sduenas@bitergia.com>
Merge pull request #31 from gpoo/custom-mbox

Use a custom mailbox class with a file object. Fix #24
Make url and list name consistent. Fix #12

Make the url stored always be the same regardless if the user
entered with or without trailing slash.  Also takes care or giving
the list alias (or name) a meaningful text (non-empty) as much
as possible.

Add testcases for the class MailingList, which handles the
location, mailing list name, etc.

Signed-off-by: Santiago Dueñas <sduenas@bitergia.com>
htmlparser: Fetch mboxes from FTP servers

FTP servers return a plain page that contains the list
of files on the directory. Each line has the next pattern

  -rw-r--r--  1  500  500  1799055  Sep 30  2013  mbox

where 'mbox' is the file name. This commit adds the code for
parsing those lines.

Fixes issue #33
htmlparser: Use urlparse to get URL scheme
htmlparser: Fix error sorting MBox links

Using sort() method caused that MBox files with format '%Y-%B'
(i.e 2014-May) were not analyzed from oldest to newest.
In Mailman, files (or links) are list from newest to oldest so
we needed to invert the order.