My solution to this problem is to have only one notmuch instance
run on a remote VPS and connect to it via "thin" notmuch-emacs
front-ends, very similar to [1]. It has been working very well for
the last few years.
[1] https://notmuchmail.org/remoteusage/
On Mon, 17 Dec 2018, Dan Čermák wrot
On Tue, 23 May 2017, Jani Nikula wrote:
> On Fri, 19 May 2017, Ioan-Adrian Ratiu wrote:
>> I'd like to add a feature to quickly work with mail file sizes
>> because using custom scripts / external programs which parse
>> maildir contents is slow, and non-intuitive, e
On Fri, 19 May 2017, Tomi Ollila wrote:
> On Fri, May 19 2017, Ioan-Adrian Ratiu wrote:
>
>> With this it now becomes possible to order the search results by
>> filesize using the --sort=biggest-first/smallest-first args.
>
> Quick drive-by comment (for now): In man
By default this is off because it's tiresome to look at all those
numbers in every search view. It's much more pleasant to have it
enabled by default in notmuch-show even if you apply searches and sort
results based on file size.
Signed-off-by: Ioan-Adrian Ratiu
---
emacs/notmu
Signed-off-by: Ioan-Adrian Ratiu
---
notmuch-show.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/notmuch-show.c b/notmuch-show.c
index 7021008e..8229c85c 100644
--- a/notmuch-show.c
+++ b/notmuch-show.c
@@ -91,6 +91,7 @@ format_message_sprinter (sprinter_t *sp, notmuch_message_t
This works for all the search output formats (sexp, json, text).
Signed-off-by: Ioan-Adrian Ratiu
---
devel/schemata | 1 +
notmuch-search.c | 6 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/devel/schemata b/devel/schemata
index 00ebb7a6..c9e05623 100644
--- a/devel
Signed-off-by: Ioan-Adrian Ratiu
---
emacs/notmuch-show.el | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
index c670160d..f2cb09d2 100644
--- a/emacs/notmuch-show.el
+++ b/emacs/notmuch-show.el
@@ -446,7 +446,7 @@ unchanged
Given a thread object this function computes the total disk space used
by all messages contained in the thread.
Signed-off-by: Ioan-Adrian Ratiu
---
lib/notmuch.h | 7 +++
lib/thread.cc | 12
2 files changed, 19 insertions(+)
diff --git a/lib/notmuch.h b/lib/notmuch.h
index
With this it now becomes possible to order the search results by
filesize using the --sort=biggest-first/smallest-first args.
Signed-off-by: Ioan-Adrian Ratiu
---
lib/notmuch.h| 8
lib/query.cc | 6 ++
notmuch-search.c | 2 ++
3 files changed, 16 insertions(+)
diff --git a
We need to output unsigned long values for message and thread
(sum of all message's) file sizes.
Signed-off-by: Ioan-Adrian Ratiu
---
sprinter-json.c | 9 +
sprinter-sexp.c | 9 +
sprinter-text.c | 9 +
sprinter.h | 1 +
4 files changed, 28 insertions(+)
diff
saved search (via the :sort-order property).
Signed-off-by: Ioan-Adrian Ratiu
---
emacs/notmuch-hello.el | 9 ++---
emacs/notmuch-lib.el | 4 +++-
emacs/notmuch.el | 12 ++--
3 files changed, 19 insertions(+), 6 deletions(-)
diff --git a/emacs/notmuch-hello.el b/emacs
lt sorting logic.
Signed-off-by: Ioan-Adrian Ratiu
---
doc/notmuch-emacs.rst | 4 ++--
emacs/notmuch-hello.el | 15 +++
emacs/notmuch-jump.el | 11 +--
emacs/notmuch-lib.el | 7 ---
emacs/notmuch-tree.el | 2 +-
emacs/notmuch.el | 29 +++-
Parse & store the file sizes inside notmuch_message_t objects
while indexing. This is a useful foundation to build upon to
provide per message and per thread size statistics, sorting
and filtering mesages based on their sizes, etc.
Signed-off-by: Ioan-Adrian Ratiu
---
lib/index.cc
I'd like to add a feature to quickly work with mail file sizes
because using custom scripts / external programs which parse
maildir contents is slow, and non-intuitive, especially since
notmuch does incremental parsing and has such a nice emacs UI.
Ioan-Adrian Ratiu (11):
lib: message:
new xapian filesize value, I did
not have the time to test a "hybrid" database where just some of the
messages have the value.
Signed-off-by: Ioan-Adrian Ratiu
---
lib/database-private.h | 1 +
lib/database.cc| 6 ++
2 files changed, 7 insertions(+)
diff --git a/lib/dat
versa, but you can't toggle
from oldest-first to biggest-first. I've found this kind of toggling
confusing so I've prohibited it, but enabling it is trivial if need be.
Signed-off-by: Ioan-Adrian Ratiu
---
emacs/notmuch-hello.el | 9 ++---
emacs/notmuch-lib.el | 4 +++-
em
lt sorting logic.
Signed-off-by: Ioan-Adrian Ratiu
---
doc/notmuch-emacs.rst | 4 ++--
emacs/notmuch-hello.el | 15 +++
emacs/notmuch-jump.el | 11 +--
emacs/notmuch-lib.el | 7 ---
emacs/notmuch-tree.el | 2 +-
emacs/notmuch.el | 29 +++-
een somewhere in the results/show buffer.
Another interesting idea would be to offer some optional statistics
in the UI buffers like we do for saved searches `query-count` to show
stuff like disk space occupied by mail files maching a search, etc.
Signed-off-by: Ioan-Adrian Ratiu
---
lib/database-p
licate files
for a message ID (only the MsgID determines whether files are
"duplicates", right?). Any ideas how best to store/handle duplicates?
Signed-off-by: Ioan-Adrian Ratiu
---
lib/database-private.h | 1 +
lib/database.cc| 6 ++
lib/index.cc | 10
Changes since v5 (based on Tomi's feedback):
* Return the same error message when config file is not found to
avoid breaking test T040-setup.1.
Ioan-Adrian Ratiu (1):
notmuch-config: replace config reading function
Jani Nikula (1):
cli: abstract config file reading to a sep
From: Jani Nikula
Simplify and fix the coding style while at it.
---
notmuch-config.c | 65 ++--
1 file changed, 35 insertions(+), 30 deletions(-)
diff --git a/notmuch-config.c b/notmuch-config.c
index e5d42a0..bd52790 100644
--- a/notmuch-con
e more security sensitive users: If someone has private
information in the config file, it can be encrypted on disk, then decrypted
in RAM and passed through a pipe directly to notmuch without the use of
intermediate plain text files.
Signed-off-by: Ioan-Adria
From: Jani Nikula
Simplify and fix the coding style while at it.
---
notmuch-config.c | 65 ++--
1 file changed, 35 insertions(+), 30 deletions(-)
diff --git a/notmuch-config.c b/notmuch-config.c
index e5d42a0..bd52790 100644
--- a/notmuch-con
e more security sensitive users: If someone has private
information in the config file, it can be encrypted on disk, then decrypted
in RAM and passed through a pipe directly to notmuch without the use of
intermediate plain text files.
Signed-off-by: Ioan-Adria
Changes since v4: (based on Tomi's feedback):
* Replaced strlen with config_len in the call to g_key_file_load_from_data()
* Added a null pointer check and minor whitespace fixes before exiting
get_config_from_file
Ioan-Adrian Ratiu (1):
notmuch-config: replace config re
From: Jani Nikula
Simplify and fix the coding style while at it.
---
notmuch-config.c | 65 ++--
1 file changed, 35 insertions(+), 30 deletions(-)
diff --git a/notmuch-config.c b/notmuch-config.c
index e5d42a0..bd52790 100644
--- a/notmuch-con
e more security sensitive users: If someone has private
information in the config file, it can be encrypted on disk, then decrypted
in RAM and passed through a pipe directly to notmuch without the use of
intermediate plain text files.
Signed-off-by: Ioan-Adria
Changes since v3: (thanks Tomi for the awesome feedback):
* Rewrote the config-reading function's exit logic to use a 'linux kernel'
style & cleanup based on goto's.
* Minor variable NULL initialization change, comment removal.
Ioan-Adrian Ratiu (1):
notmuc
From: Jani Nikula
Simplify and fix the coding style while at it.
---
notmuch-config.c | 65 ++--
1 file changed, 35 insertions(+), 30 deletions(-)
diff --git a/notmuch-config.c b/notmuch-config.c
index e5d42a0..bd52790 100644
--- a/notmuch-con
e more security sensitive users: If someone has private
information in the config file, it can be encrypted on disk, then decrypted
in RAM and passed through a pipe directly to notmuch without the use of
intermediate plain text files.
Signed-off-by: Ioan-Adria
Changes since v2 (based on Tomi's feedback):
* Rewrote config reading loop to use fread instead of fgets (behaves
the same but the code looks much better now).
Ioan-Adrian Ratiu (1):
notmuch-config: replace config reading function
Jani Nikula (1):
cli: abstract config file readi
e more security sensitive users: If someone has private
information in the config file, it can be encrypted on disk, then decrypted
in RAM and passed through a pipe directly to notmuch without the use of
intermediate plain text files.
Signed-off-by: Ioan-Adria
From: Jani Nikula
Simplify and fix the coding style while at it.
---
notmuch-config.c | 65 ++--
1 file changed, 35 insertions(+), 30 deletions(-)
diff --git a/notmuch-config.c b/notmuch-config.c
index e5d42a0..bd52790 100644
--- a/notmuch-con
Changes since v1 (Based on Jani's feedback):
* Incorporated Jani's patch into this series and rebased my changes on top
Ioan-Adrian Ratiu (1):
notmuch-config: replace config reading function
Jani Nikula (1):
cli: abstract config file reading to a separate function
notmuch-con
e more security sensitive users: If someone has private
information in the config file, it can be encrypted on disk, then decrypted
in RAM and passed through a pipe directly to notmuch without the use of
intermediate plain text files.
Signed-off-by: Ioan-Adria
o wants to force display can just call notmuch-hello.
>
> Once this change is made Ionel's changes become very clean.
LGTM. I had a few minutes to apply and test this series and all my
use-cases work perfectly. Thank you for helping with this.
>
> Best wishes
>
> Mark
>
&
refreshing.
Signed-off-by: Ioan-Adrian Ratiu
---
emacs/notmuch-lib.el | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el
index 2d27e56..e1b5066 100644
--- a/emacs/notmuch-lib.el
+++ b/emacs/notmuch-lib.el
@@ -418,17 +418,17 @@ int
also makes it possible to do things like
refreshing a buffer which is not focused or even not shown in any
window - this will be used in the next commits to add auto-refresh
capabilities to all existing notmuch buffers + a function to call
after syncing mail to refresh everything.
Signed-off-by: I
If no-display is non-nil when updating a notmuch-search buffer, do not
force bring to foreground in a window said search results buffer.
Signed-off-by: Ioan-Adrian Ratiu
---
emacs/notmuch.el | 13 +
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/emacs/notmuch.el b
y a buffer, (point) returns each window's specific value.
What we are storing in this changeset is the window values not the
buffer point values. The buffer's point is returned only if no window
is displaying the buffer, a case we do not care about here.
Signed-off-by: Ioan-Adrian Ratiu
From: Mark Walters
The current refresh code is a little haphazard with some of the
refresh functions called interactively, and some not. Some of the
refresh functions take arguments and they aren't consistent.
This makes all the functions have the same form.
---
emacs/notmuch-hello.el | 2 +-
tells the buffer-specific refresh functions to work in the background
and not bring forward the refreshed buffer in a window. This again is very
useful for silent async background updating the emacs display when new
mail is fetched.
Signed-off-by: Ioan-Adrian Ratiu
---
emacs/notmuch-lib.el
ps://github.com/10ne1/emacs-config/blob/master/lisp/my-notmuch.el
Ioan-Adrian Ratiu (5):
emacs: notmuch-search-refresh-view: reuse buffer
emacs: notmuch-search: add no-display functionality
emacs: notmuch-show: refresh all windows displaying buffer
emacs: add no-display arg to generic re
On Thu, 06 Oct 2016, Mark Walters wrote:
> The current refresh code is a little haphazard with some of the
> refresh functions called interactively, and some not. Some of the
> refresh functions take arguments and they aren't consistent.
>
> This makes all the functions have the same form.
> ---
>
On Thu, 06 Oct 2016, Mark Walters wrote:
> On Thu, 06 Oct 2016, Ioan-Adrian Ratiu wrote:
>> Add an optional no-display arg to the generic buffer refresh function,
>> notmuch-refresh-this-buffer, which works the same way as notmuch-hello
>> mode's notmuch-hello-update
On Thu, 06 Oct 2016, Daniel Kahn Gillmor wrote:
>
>
> On Sun 2016-09-25 03:32:08 -0400, Tomi Ollila wrote:
>> 2) then, minor commit message related comment: if there is going to be v3,
>> in id:20160924200735.25425-2-...@adirat.com adi mentioned 'next patches'
>> -- those are not patches (anymore
ssapeared since the
last search refresh and have this information updated in real time
even when switching buffers. The ultimate goal of this is to have all
notmuch buffers auto-refresh when the email client syncs (this function
is added in the next commit).
Signed-off-by: Ioan-Adrian Ratiu
---
also makes it possible to do things like
refreshing a buffer which is not focused or even not shown in any
window - this will be used in the next commits to add auto-refresh
capabilities to all existing notmuch buffers + a function to call
after syncing mail to refresh everything.
Signed-off-by: I
and
re-apply the current shown message for all windows.
Signed-off-by: Ioan-Adrian Ratiu
---
emacs/notmuch-show.el | 19 +--
1 file changed, 13 insertions(+), 6 deletions(-)
diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
index f2487ab..ac7eb77 100644
--- a/emacs
hould go in another patch series.
Ioan-Adrian Ratiu (4):
emacs: reuse buffer when refreshing searches
emacs: notmuch-show: refresh all windows showing a buffer
emacs: add refresh buffer optional no-display arg
emacs: notmuch-lib: add refresh all buffers function
emacs/n
this again is very useful when doing periodic timer-based mail syncing.
Signed-off-by: Ioan-Adrian Ratiu
---
emacs/notmuch-lib.el | 15 +++
1 file changed, 15 insertions(+)
diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el
index af6a8f4..01733a2 100644
--- a/emacs/notmuch-lib.el
On Sun, 25 Sep 2016, Mark Walters wrote:
> On Sat, 24 Sep 2016, Ioan-Adrian Ratiu wrote:
>> Add an optional no-display arg to the generic buffer refresh function,
>> notmuch-refresh-this-buffer, which works the same way as notmuch-hello
>> mode's notmuch-hello-update
Hi Mark and thank you again for the great feedback.
On Sun, 25 Sep 2016, Mark Walters wrote:
> On Sat, 24 Sep 2016, Ioan-Adrian Ratiu wrote:
>> This updates all windows displaying a notmuch-show buffer when the
>> buffer refresh function is called.
>>
>> Each windo
On Sat, 24 Sep 2016, David Bremner wrote:
> Ioan-Adrian Ratiu writes:
>
>> On Sat, 24 Sep 2016, Ioan-Adrian Ratiu wrote:
>>> Argh, so right after I posted this I found a bug: for every new window
>>> in which you open the same notmuch-show buffer it creates a new
On Sat, 24 Sep 2016, Ioan-Adrian Ratiu wrote:
> Argh, so right after I posted this I found a bug: for every new window
> in which you open the same notmuch-show buffer it creates a new buffer.
>
> For example if from notmuch-search you open a thread "hello" in multiple
>
uot; "hello<2>" etc
buffer instead of showing a single "hello" buffer for all windows.
I'm aware of this issue and I'll fix it in v3, however please if you
have time & feedback for v2 I'd greatly appreciate it.
Best wishes,
Ionel
On Sat, 24 Sep 2016
this again is very useful when doing periodic timer-based mail syncing.
Signed-off-by: Ioan-Adrian Ratiu
---
emacs/notmuch-lib.el | 12
1 file changed, 12 insertions(+)
diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el
index 6618365..72fee4d 100644
--- a/emacs/notmuch-lib.el
also makes it possible to do things like
refreshing a buffer which is not focused or even not shown in any
window - this will be used in the next patches to add auto-refresh
capabilities to all existing notmuch buffers + a function to call
after syncing mail to refresh everything.
Signed-off-by: I
ssapeared since the
last search refresh and have this information updated in real time
even when switching buffers. The ultimate goal of this is to have all
notmuch buffers auto-refresh when the email client syncs (this function
is added in the next patch).
Signed-off-by: Ioan-Adrian Ratiu
---
and
re-apply the current shown message for all windows.
Signed-off-by: Ioan-Adrian Ratiu
---
emacs/notmuch-show.el | 19 +--
1 file changed, 13 insertions(+), 6 deletions(-)
diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
index 641398d..c39065f 100644
--- a/emacs
l-sync ()
(message "Syncing mail in background")
(set-process-sentinel (start-process "mbsync" nil "mbsync" "gmail")
'done-sync-sentinel))
(run-with-idle-timer 600 nil 'run-mail-sync)
Ioan-Adrian Ratiu (4):
emacs: reuse buff
On Sun, 18 Sep 2016, Jani Nikula wrote:
> On Sun, 18 Sep 2016, Ioan-Adrian Ratiu wrote:
>> On Sun, 18 Sep 2016, Mark Walters wrote:
>>> On Sun, 18 Sep 2016, Ioan-Adrian Ratiu wrote:
>>>> Hi
>>>>
>>>> I have implemented something similar
On Sun, 18 Sep 2016, Mark Walters wrote:
> On Sun, 18 Sep 2016, Ioan-Adrian Ratiu wrote:
>> Hi
>>
>> I have implemented something similar in my tree and I really like the
>> idea. I have one issue though.
>>
>> On Sat, 17 Sep 2016, Mark Walters wrote
Hi
I have implemented something similar in my tree and I really like the
idea. I have one issue though.
On Sat, 17 Sep 2016, Mark Walters wrote:
> Add a "jump" style menu for doing tagging operations.
> ---
>
> Jani suggested something like this on irc today. This is a first cut
> to see if peo
On Fri, 16 Sep 2016, Mark Walters wrote:
> On Sat, 10 Sep 2016, Ioan-Adrian Ratiu wrote:
>> This new notmuch-refresh-all-buffers function calls each buffer's major
>> mode specific refresh function using the generic function
>> notmuch-refresh-this-buffer.
>>
Hi and thank you for the feedback!
On Fri, 16 Sep 2016, Mark Walters wrote:
> On Sat, 10 Sep 2016, Ioan-Adrian Ratiu wrote:
>> The current notmuch-show-message-adjust logic only adjusts the buffer
>> focused in the current window. Extend it to adjust any kind of buffer,
>&
all
buffers feature because you can use similar code to refresh any buffer:
(with-current-buffer "*random show buffer*"
(notmuch-refresh-this-buffer))
Signed-off-by: Ioan-Adrian Ratiu
---
emacs/notmuch-show.el | 11 ++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --g
s not focused or even not shown in any
window - this will be used in the next patches to add auto-refresh
capabilities to all existing notmuch buffers + a function to call
after syncing mail to refresh everything.
Signed-off-by: Ioan-Adrian Ratiu
---
emacs/notmuch.el | 7 ---
1 file chang
")
'done-sync-sentinel))
(run-with-idle-timer 600 nil 'run-mail-sync)
Ioan-Adrian Ratiu (4):
emacs: reuse buffer when refreshing searches
emacs: adjust all types of notmuch show buffers
emacs: add refresh buffer optional no-display arg
emacs: add r
ssapeared since the
last search refresh and have this information updated in real time
even when switching buffers. The ultimate goal of this is to have all
notmuch buffers auto-refresh when the email client syncs (this function
is added in the next patch).
Signed-off-by: Ioan-Adrian Ratiu
---
n the background and
this again is very useful when doing periodic timer-based mail syncing.
Signed-off-by: Ioan-Adrian Ratiu
---
emacs/notmuch-lib.el | 15 +++
1 file changed, 15 insertions(+)
diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el
index 6618365..4cc2041 100644
--- a/
71 matches
Mail list logo