HKsync
HKsync, short for Hyperkitty-Sync is a simple client to download archives for public mailing lists from Hyperkitty to a local Maildir to read with your favorite email client.
You don't have to be subscribed to the MailingList to download the archives. Since we just download public MailingLists, there is no need for any sort of authentication. We use Hyperkitty's export API to download emails as mbox and then populate a local Maildir.
WARNING: This is currently in alpha stage, although it has been tested by the author to work for simple situations.
Install
Right now, HKsync is in a alpha stage. To download and use, you need to download it from git repo. Here are the instructions:
# Clone the git repo.
$ git clone https://gitlab.com/mailman/hksync
# Create a virtualenv and install dependencies.
$ python3 -m venv hksync
# Download the dependencies.
$ source hksync/bin/activate
$ python setup.py install
Usage
HKsync let's you add various MailingLists and then sync from each of them using a single command, which can be used as a periodic cron job. It does not provide any mechanism to run periodically since there are several other tools already available to run commands periodically like Cron or Systemd.
To add a new MailingList:
$ hksync add --server https://myserver.com/hyperkitty --mlist mylist@myserver.com
You can list all the currently added MailingLists's using:
$ hksync list
You can remove a MailingList using:
$ hksync remove mylist@myserver.com
Finally, you can sync your emails using:
$ hksync sync
This will sync emails for past 1 day only. Optionally, you can provide a
--days n parameter to sync past n days of emails for each list.
You can also pass --mlist mylist@myserver.com to sync emails for only one
server instead of all.
Reading Emails
You can use your favorite Email client to read these emails since we use a standard Maildir format which most clients support.
mutt
This is a sample configuration to read emails in mutt, which is a popular
command line email client:
# ~/.muttrc
set mbox_type=Maildir
set folder="~/hksync"
set mbox="~/hksync"
set spoolfile="~/hksync"
After this, you can just run mutt in your terminal to read the Emails from
MailingLists that you downloaded.
If you don't want to alter the configuration, you can just run:
$ mutt -f ~/hksync
Release files for hksync 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hksync-0.2.1.tar.gz | 5.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hksync-0.2.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 8.3 kB
Release files / hksync-0.2.1.tar.gz
| Download URL | hksync-0.2.1.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4cc644d0243f07508c38767e0a03a9b3417631407bc6a61c0c3a7af1c5b3e2e8
|
|
BLAKE2b-256 checksum How to use checksums |
d737d6e18b95e21f9993d4d261664f9b95a3446ee7fea67976823eded5219f03
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.4
|
Release files / hksync-0.2.1-py2.py3-none-any.whl
| Download URL | hksync-0.2.1-py2.py3-none-any.whl |
|---|---|
| Size | 2.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
03abb11baa249c72b263cbc61170f09ba6a2af765e8d3affd68256db826a6ab6
|
|
BLAKE2b-256 checksum How to use checksums |
85a64ec6fddfb77262611ba0b13041f9de642498f6ce9e1aef81cc62ea7f356e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.4
|