Push a sieve script to your mailserver and have it applied automatically.
Project description
# Sieve git push deployment
[![Build Status](https://travis-ci.org/mheistermann/sieve-git-pushdeploy.svg?branch=master)](https://travis-ci.org/mheistermann/sieve-git-pushdeploy)
## Introduction
Keep your sieve scripts in a git repos (e.g. on your mailserver), push
to them to deploy a new version.
Warning: experimental, use at your own risk. Probably quite buggy, just hacked
this together quickly.
## Installation
### Installation with pip
```pip3 install sieve-git-pushdeploy```
### Installation without pip
```
virtualenv -p python2 .venv
source .venv/bin/activate
pip install -r requirements.txt
```
Copy the provided example copy to `~/.config/sieve-git-pushdeploy/sieve.conf`
and adjust the values.
Somewhere,
```
HOOK=path/to/sieve-git-pushdeploy/.venv/bin/sieve-git-pushdeploy
git init --bare sieve.git
cd sieve.git/hooks
ln -s $HOOK post-receive
ln -s $HOOK update
```
You can also opt to only use a subset of the hooks.
Now if you clone that repo and push your configs to it, they will be checked
and uploaded automatically.
## License
sieve-git-pushdeploy was written by Martin Heistermann <github()mheistermann.de>
and is available under the terms of the GPL v3.
## Ideas
* when checkscript() fails, report the error - need to improve sievelib
* Proper installation with pip?
* Option to reject pushes with invalid syntax?
* Colored output that stands out from the rest of the git output
* Update sievelib to Python3, use Python3
## Contributing
Send me a pull request on github or [email me a patch](mailto:github[]mheistermann.de).
[![Build Status](https://travis-ci.org/mheistermann/sieve-git-pushdeploy.svg?branch=master)](https://travis-ci.org/mheistermann/sieve-git-pushdeploy)
## Introduction
Keep your sieve scripts in a git repos (e.g. on your mailserver), push
to them to deploy a new version.
Warning: experimental, use at your own risk. Probably quite buggy, just hacked
this together quickly.
## Installation
### Installation with pip
```pip3 install sieve-git-pushdeploy```
### Installation without pip
```
virtualenv -p python2 .venv
source .venv/bin/activate
pip install -r requirements.txt
```
Copy the provided example copy to `~/.config/sieve-git-pushdeploy/sieve.conf`
and adjust the values.
Somewhere,
```
HOOK=path/to/sieve-git-pushdeploy/.venv/bin/sieve-git-pushdeploy
git init --bare sieve.git
cd sieve.git/hooks
ln -s $HOOK post-receive
ln -s $HOOK update
```
You can also opt to only use a subset of the hooks.
Now if you clone that repo and push your configs to it, they will be checked
and uploaded automatically.
## License
sieve-git-pushdeploy was written by Martin Heistermann <github()mheistermann.de>
and is available under the terms of the GPL v3.
## Ideas
* when checkscript() fails, report the error - need to improve sievelib
* Proper installation with pip?
* Option to reject pushes with invalid syntax?
* Colored output that stands out from the rest of the git output
* Update sievelib to Python3, use Python3
## Contributing
Send me a pull request on github or [email me a patch](mailto:github[]mheistermann.de).
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for sieve-git-pushdeploy-0.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fa8e1e04159f1a13543fcdfe210af49954689ae4c406b2410f4f5428d435530 |
|
MD5 | eafa9bbcd06e4d24009e031c0961ebd4 |
|
BLAKE2b-256 | 6abb5217d799811f3f4a3f1a3fa85690304aec841288c15652cac54576f4b73b |