Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eyenx/docker-taskwarriormail
TaskWarriorMail in a container
https://github.com/eyenx/docker-taskwarriormail
Last synced: 10 days ago
JSON representation
TaskWarriorMail in a container
- Host: GitHub
- URL: https://github.com/eyenx/docker-taskwarriormail
- Owner: eyenx
- License: gpl-3.0
- Created: 2020-04-29T16:33:54.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-04-27T06:50:23.000Z (over 1 year ago)
- Last Synced: 2023-04-27T07:34:07.776Z (over 1 year ago)
- Language: Shell
- Size: 53.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TaskWarriorMail as a Docker Container
![](https://github.com/eyenx/docker-taskwarriormail/workflows/build%20image/badge.svg)
This container includes:
* fetchmail to fetch mails
* taskwarrior using a predefined taskrc
* [TaskWarriorMail](https://github.com/nerab/TaskWarriorMail/) to get mails and add it to your tasks**This workflow only works if it can sync with a taskd server**
## Environment Variables
```
[email protected]
FETCHMAIL_PASSWORD=thisisasecret!
FETCHMAIL_SERVER=mail.example.org
INTERVAL=300 #interval in seconds before fetching mail again
```## Mail Settings
SSL is enforced by default in fetchmail.rc:
```
poll $FETCHMAIL_SERVER proto imap port 993
user $FETCHMAIL_USER password $FETCHMAIL_PASSWORD
ssl
mda twmail
```## Volumes used
* `/home/tw/.task` for data
* `/home/tw/.taskrc` for configuration (this is a file)## Example taskrc
```
data.location=~/.tasktaskd.server=task.example.org:1337
taskd.credentials=default/user/my-secret-uuid
taskd.certificate=~/.task/user.cert.pem
taskd.key=~/.task/user.key.pem
taskd.trust=ignore hostname
taskd.ca=~/.task/ca.cert.pem
```## Workflow
* sync tasks
* use TaskWarriorMail to fetch mail and add task
* sync task
* sleep `$INTERVAL`## Example usage:
```
docker run -e FETCHMAIL_SERVER=mail.example.org -e [email protected] -e FETCHMAIL_PASSWORD=mysecretpassword! -v $(pwd)/.task:/home/tw/.task -v $(pwd)/.taskrc:/home/tw/.taskrc ghcr.io/eyenx/taskwarriormail
$INTERVAL not set, defaulting to 300 seconds
Syncing with taskwarrior.example.org:1337
Sync successful. No changes.
1 message for [email protected] at mail.
Additional text must be provided.
reading message [email protected]@mail.example.org:1 of 1 (4132 header octets) (0 body octets) flushed
Syncing with taskwarrior.example.org:1337
Sync successful. 1 changes uploaded.
```