~labrat

Recent activity

[PATCH v2] Notmuch: use adhoc write connection. 21 hours ago

From Reto Brunner to ~sircmpwn/aerc

Notmuch only allows a single write connection, all other clients trying to
modify the db block. Hence we should only open one when we actually need it.

Apparently we also need to refresh the RO DB connection upon modification,
else we get stale message tag results
---

v1 --> v2:
* fix the segfault which occured sometimes


 worker/notmuch/message.go | 91 +++++++++++++++++++++++++++++++++------
 worker/notmuch/worker.go  | 86 ++++++++++++++++++++++++++++--------
 2 files changed, 147 insertions(+), 30 deletions(-)
[message trimmed]

Re: MacPorts 2 days ago

From Reto to ~sircmpwn/aerc

You wrote the exact same mail on the 10th of August.

Don't spam the mailing list.

There's an archive available for a reason and people using ports will be savvy enough to look for it in the usual places.

[PATCH] Notmuch: use adhoc write connection. 4 days ago

From Reto Brunner to ~sircmpwn/aerc

Notmuch only allows a single write connection, all other clients trying to
modify the db block. Hence we should only open one when we actually need it.

Apparently we also need to refresh the RO DB connection upon modification,
else we get stale message tag results
---
 worker/notmuch/message.go | 91 +++++++++++++++++++++++++++++++++------
 worker/notmuch/worker.go  | 79 +++++++++++++++++++++++++--------
 2 files changed, 140 insertions(+), 30 deletions(-)

diff --git a/worker/notmuch/message.go b/worker/notmuch/message.go
index 077fb92..aa16cee 100644
--- a/worker/notmuch/message.go
+++ b/worker/notmuch/message.go
[message trimmed]

[PATCH] upgrade go-message 5 days ago

From Reto Brunner to ~sircmpwn/aerc

Fixes date parsing bug in the maildir / notmuch workers.
---
 go.mod | 4 +---
 go.sum | 4 ++--
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/go.mod b/go.mod
index b02cac9..1e30e3d 100644
--- a/go.mod
+++ b/go.mod
@@ -6,12 +6,11 @@ require (
 	git.sr.ht/~sircmpwn/getopt v0.0.0-20190621174457-292febf82fd0
 	git.sr.ht/~sircmpwn/pty v0.0.0-20190330154901-3a43678975a9
 	github.com/danwakefield/fnmatch v0.0.0-20160403171240-cbb64ac3d964
[message trimmed]

Re: [PATCH] notmuch: cache tag modifications 5 days ago

From Reto to ~sircmpwn/aerc

Sure, I can do that.

What do you dislike about caching?

The issue I am seeing is that, as soon as we can modify multiple messages at the same time, that's going to be very inefficient.
One would be doing the connect / commit cycle for every message instead of only once

[PATCH] notmuch: cache tag modifications 6 days ago

From Reto Brunner to ~sircmpwn/aerc

Notmuch only allows a single writer to be connected at a time.
Any other client, which tries to write to the db, will block.
Hence we can't keep a RW connection open all the time.

This commit caches modifications to a message and writes them either upon
folder switch or quitting aerc.
---
 worker/notmuch/database.go | 112 +++++++++++++++++++++++++++++++++++++
 worker/notmuch/message.go  |  86 +++++++++++++++++-----------
 worker/notmuch/worker.go   |  41 ++++++++------
 3 files changed, 190 insertions(+), 49 deletions(-)
 create mode 100644 worker/notmuch/database.go

diff --git a/worker/notmuch/database.go b/worker/notmuch/database.go
[message trimmed]

[PATCH] bump go-message, fixes address list parsing failure 11 days ago

From Reto Brunner to ~sircmpwn/aerc

---
Emmersions mail.Header.AddressList didn't decode, it assumed things to be utf8.
This issue was fixed upstream, I'd like to pull that in

 go.mod |  6 +++---
 go.sum | 14 ++++++--------
 2 files changed, 9 insertions(+), 11 deletions(-)

diff --git a/go.mod b/go.mod
index 3ae47e0..b02cac9 100644
--- a/go.mod
+++ b/go.mod
@@ -11,7 +11,7 @@ require (
 	github.com/emersion/go-imap v1.0.0
[message trimmed]

[PATCH] worker/lib/parse: decode address headers 17 days ago

From Reto Brunner to ~sircmpwn/aerc

from,cc,bcc etc are sometimes send encoded in an uncommon charset.
We first need to decode the header before we try to parse it.
---
Emmersions mail.Header.AddressList doesn't decode, it assumes things to be
utf8.

The function isn't complicated however so we can simply manually do the exercise

 worker/lib/parse.go | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/worker/lib/parse.go b/worker/lib/parse.go
index 9f9fa62..9e3b877 100644
--- a/worker/lib/parse.go
[message trimmed]

[PATCH v2] Close backends prior to shutdown 18 days ago

From Reto Brunner to ~sircmpwn/aerc

We need some way to signal the backends that we are about to shutdown,
allowing them to clean up (for example in notmuch committing the db changes).
This commit implements a hook which gets called upon shutdown, providing
backends implement the io.Closer interface.
---
v1 --> v2:
 * use io.Closer instead of the finalizer interface

 aerc.go         |  1 +
 widgets/aerc.go | 19 +++++++++++++++++++
 2 files changed, 20 insertions(+)

diff --git a/aerc.go b/aerc.go
index c71c384..c5d93ac 100644
[message trimmed]

[PATCH v5 4/4] Add notmuch docs 19 days ago

From Reto Brunner to ~sircmpwn/aerc

---
 Makefile               |  3 +++
 README.md              |  7 +++++
 doc/aerc-config.5.scd  |  2 ++
 doc/aerc-maildir.5.scd |  2 +-
 doc/aerc-notmuch.5.scd | 61 ++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 74 insertions(+), 1 deletion(-)
 create mode 100644 doc/aerc-notmuch.5.scd

diff --git a/Makefile b/Makefile
index d3072d3..a9b5c85 100644
--- a/Makefile
+++ b/Makefile
@@ -32,6 +32,7 @@ DOCS := \
[message trimmed]