Maintains maildir archives synced with current maildirs
git clone https://git.8pit.net/archive-mail.git
1# archive-mail 2 3Maintains maildir archives synced with current maildirs. 4 5## Motivation 6 7I only store the last `N` messages in the maildir on my mail server, I 8maintain a local archive which contains all mails I ever received. This 9tool helps propagating new and modified messages from the maildir on my10server to my archive.1112## Usage1314Sample usage for archiving the `INBOX` and `GitHub` maildir:1516 $ archive-mail mail/INBOX→/srv/nfs/archive/mail/INBOX \17 mail/GitHub→/srv/nfs/archive/mail/GitHub1819This will propagate the following changes to the archive:20211. New messages from the current maildir, which were previously22 not tracked in the archive.232. Changed flags, or file names in general, of messages already24 tracked in the maildir archive.253. Location changes of messages in the archive. For example, messages26 moved between `new/` and `cur/` and messages moved between different27 maildirs. For example, between `INBOX` and `GitHub` in the example28 above.2930The current maildir will never be modified. Messages deleted from the31current maildir will also not be deleted from the archive.3233## Installation3435After cloning this repository compile the software as follows:3637 $ go build3839Afterwards copy the binary to your `$PATH` or use `go install`.4041## Tests4243A minimal test suite is provided it can be invoked as follows:4445 $ ./tests/run_tests.sh4647## License4849This program is free software: you can redistribute it and/or modify it50under the terms of the GNU General Public License as published by the51Free Software Foundation, either version 3 of the License, or (at your52option) any later version.5354This program is distributed in the hope that it will be useful, but55WITHOUT ANY WARRANTY; without even the implied warranty of56MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General57Public License for more details.5859You should have received a copy of the GNU General Public License along60with this program. If not, see <http://www.gnu.org/licenses/>.