Commit 3b50373b authored by Gaute Hope's avatar Gaute Hope

gmi

parent b564d756
......@@ -27,9 +27,9 @@ should be run from the `gmailieer` storage unless otherwise specified.
1. make a directory for the gmailieer storage and state files
```sh
$ cd ~/.mail
$ mkdir gmailieer
$ cd gmailieer/
$ cd ~/.mail
$ mkdir account.gmail
$ cd account.gmail/
```
1. make sure this directory is ignored by `notmuch new` as the messages will be
......@@ -37,17 +37,18 @@ $ cd gmailieer/
```
[new]
ignore=gmailieer;
ignore=account.gmail;
```
1. initialize the mail storage:
```sh
$ gmailieer init
$ gmi auth -c path/to/client_secrets.json
$ gmi init
```
if you haven't done `gmailieer auth` already, your browser will open and you have to
give gmailieer access to the necessary permissions.
if you haven't done `gmi auth` already, your browser will open and you have to
give gmailieer some access to your e-mail.
you're now set up, and you can do the initial pull.
......@@ -57,7 +58,7 @@ will pull down all remote changes since last time, overwriting any local tag
changes of the affected messages.
```sh
$ gmailieer pull
$ gmi pull
```
# push
......@@ -66,6 +67,16 @@ will push up all changes since last push, overwriting any remote changes since
the previous pull of the affected messages.
```sh
$ gmailieer push
$ gmi push
```
# regular synchronization routine
```sh
$ cd ~/.mail/account.gmail
$ gmi push
$ gmi pull
```
any conflicts detected in `gmi push` should be synced on the next iteration.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment