Michael J Gruber writes:
> ```
> dirterm=XDIRECTORY$(dirname $relone)
> dirdocid=$(xapian-delve -1 -t $dirterm ~/.mail/.notmuch/xapian/ | tail -n1)
> docterm=XFDIRENTRY${dirdocid}:$(basename $relone)
> docid=$(xapian-delve -1 -t $docterm ~/.mail/.notmuch/xapian/ | tail -n1)
> xapian-delve -1 -t $
Am So., 13. Okt. 2024 um 00:59 Uhr schrieb David Bremner :
>
> David Bremner writes:
>
> > Frederick Eaton writes:
> >
> >> If Notmuch is meant to function as an abstraction layer over message
> >> files stored on the file system, then why doesn't it provide a
> >> standard way to go from file pa
David Bremner writes:
> Frederick Eaton writes:
>
>> If Notmuch is meant to function as an abstraction layer over message
>> files stored on the file system, then why doesn't it provide a
>> standard way to go from file paths to Notmuch messages?
>
> Although I think notmuch as it exists is far
Frederick Eaton writes:
> it is rather common to receive multiple distinct messages with the
> same ID, for example when someone replies to a mailing list post and
> Cc's me, and I would want these to be separately viewable (they are
> linked together ith an "=" in the Mutt thread view) for secur
Thank you all for your helpful replies. It seems pretty clear that the recommended Notmuch usage
for someone who wants to incorporate a script that classifies a batch of messages, is either to
write the whole script to use Notmuch from the beginning, and to have the messages specified as a
list
Panayotis Manganaris writes:
> I find this way to be more flexible than the current provisions for "named
> queries" in the notmuch config/database:
>
> query:
>
> The 'query:' prefix allows queries to refer to previously saved queries
> added with ‘notmuch-config(1)’.
>
> Though, I'm not
Am Sa., 21. Sept. 2024 um 18:24 Uhr schrieb Panayotis Manganaris
:
...
> notmuch search --output=messages 'tag:new' > /tmp/msgs
> notmuch search --output=files 'tag:new' |\
> bogofilter -o0.7,0.7 -bt |\
> paste - /tmp/msgs |\
> awk '$1 ~ /S/ { print "-new +spam", "-", $3 }' |\
> not
Teemu Likonen writes:
>
> How about simply using Bogofilter's output value
>
To each their own, of course. I just prefer "wholemeal" programming, as Geraint
Jones called it.
I did think of some relevant considerations, though:
"notmuch tag --batch" is much faster than repeatedly invoking "not
* 2024-09-21 12:24:14-0400, Panayotis Manganaris wrote:
> Like you, I have notmuch configured to assign newly fetched mail with
> tag "new"
>
> notmuch search --output=messages 'tag:new' > /tmp/msgs
> notmuch search --output=files 'tag:new' |\
> bogofilter -o0.7,0.7 -bt |\
> paste - /tmp/m
Frederick Eaton writes:
>
> Suppose the filter script reads a message from a particular file and decides
> that it is
> spam. How does the filter tell Notmuch that the message corresponding to that
> file is spam?
> You seem to be saying below that the filter script should extract the
> Messag
Hi Frederick,
* Frederick Eaton [2024-09-20; 20:23 -07]:
> On Sat, Sep 21, 2024 at 08:25:10AM +0800, Pengji Zhang wrote:
>>Frederick Eaton writes:
>>>I am trying to figure out how to adapt a script I wrote for
>>>filtering messages, to apply notmuch tags to each message. A
>>>difficulty is that t
Am Sa., 21. Sept. 2024 um 05:23 Uhr schrieb Frederick Eaton :
>
> Thank you for your response, Pengji.
>
> On Sat, Sep 21, 2024 at 08:25:10AM +0800, Pengji Zhang wrote:
> >Hi Frederick,
> >
> >Frederick Eaton writes:
> >
> >>I am trying to figure out how to adapt a script I wrote for
> >>filtering
Frederick Eaton writes:
No, I already have that configuration. The first sentence
described what I already know how to do, the second sentence is
what I'm trying to do.
Suppose the filter script reads a message from a particular file
and decides that it is spam. How does the filter tell Not
Thank you for your response, Pengji.
On Sat, Sep 21, 2024 at 08:25:10AM +0800, Pengji Zhang wrote:
Hi Frederick,
Frederick Eaton writes:
I am trying to figure out how to adapt a script I wrote for
filtering messages, to apply notmuch tags to each message. A
difficulty is that the messages a
Hi Frederick,
Frederick Eaton writes:
I am trying to figure out how to adapt a script I wrote for
filtering messages, to apply notmuch tags to each message. A
difficulty is that the messages are already in the Notmuch
database, because another tool has delivered them to a maildir
and run "n
Dear Notmuch,
I am trying to figure out how to adapt a script I wrote for filtering messages, to apply
notmuch tags to each message. A difficulty is that the messages are already in the
Notmuch database, because another tool has delivered them to a maildir and run
"notmuch new".
Now, Notmuch
16 matches
Mail list logo