From: Sebastian Spaeth <Sebastian@SSpaeth.de>
To: Martin Owens <doctormo@gmail.com>
Cc: Notmuch developer list <notmuch@notmuchmail.org>,
Paul Tagliamonte <tag@pault.ag>
Subject: Re: Not much database creation error
Date: Thu, 08 Sep 2011 15:45:35 +0200 [thread overview]
Message-ID: <8739g7gnb4.fsf@SSpaeth.de> (raw)
In-Reply-To: <1315373219.32058.157.camel@delen>
[-- Attachment #1: Type: text/plain, Size: 1197 bytes --]
On Wed, 07 Sep 2011 01:26:59 -0400, Martin Owens <doctormo@gmail.com> wrote:
> As a further question, I have a program opening the database for
> READ_WRITE access (this process provides a simple write only dbus
> interface) and I want clients to connect to notmuch over a read only
> connection.
>
> A problem I'm having is that when I add messages to the database,
> searching using the read only interface fails to show anything.
> Is this api topology not expected/recommended/working? Please advise.
hi Martin,
I have to admit, I am not deep into the libnotmuch/xapian internals, so
I might be the wrong person to ask (I just do some python bindings to
whatever libnotmuch provides).
However, when a read-write connection changes content, I believe that
all other existing connections will return an error stating
DATABASE_MODIFIED. I think we throw (or at least are supposed to throw)
an exception in this case.
Are you seeing any exceptions or errors been thrown? Does it not show
ANYTHING or only not the new messages?
An open database connection provides you only with a snapshot, and you
need to reopen it after content has been modified.
Sebastian
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2011-09-08 13:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1315110898.32058.13.camel@delen>
2011-09-05 13:57 ` Not much database creation error Sebastian Spaeth
2011-09-07 5:26 ` Martin Owens
2011-09-08 13:45 ` Sebastian Spaeth [this message]
2011-09-08 14:01 ` Martin Owens
2011-09-15 17:41 ` Python Unicode Was: " Martin Owens
2011-09-15 18:12 ` Austin Clements
2011-09-16 11:32 ` Sebastian Spaeth
2011-09-16 11:41 ` Sebastian Spaeth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8739g7gnb4.fsf@SSpaeth.de \
--to=sebastian@sspaeth.de \
--cc=doctormo@gmail.com \
--cc=notmuch@notmuchmail.org \
--cc=tag@pault.ag \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).