Re: feature request: notmuch-show-print-message w/prefix to print PS to file
David Bremner writes: > [...] > One workaround is to set notmuch-print-mechanism to > notmuch-print-ps-print/evince, and save the file from evince. In principle yes, but this requires a specific third party app to be installed. We have all necessary means built into Emacs already, so it would be nice being able to achieve this with the available on-board means only. ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org
Re: best practices for keeping a notmuch tag in sync with maildir folder
Am Mo., 5. Sept. 2022 um 13:33 Uhr schrieb David Bremner : > > Bence Ferdinandy writes: > > > are there any best practices for keeping notmuch tags synced with an imap > > folder? It seems to me that simply moving a mail file in the shell from one > > folder to the other is not something that works well, at least with mbsync > > the moved file didn't appear in my webmail (I would like to keep a few tags > > mapped one-to-one with folders so I have a rudimentary access to some tags > > on my phone and webmail). > > As far as I know (as a non-mbsync user) this is only a problem for > mbsync. Notmuch itself is fine with moving (or copying) files between > folders. You will have to run notmuch-new afterwards. If I remember > correctly mbsync encodes an IMAP UUID into the file name, but I don't > know the details. I guess that the general mbsync instructions for how > to move messages should work fine with notmuch. Yes, that is the main issue, as well as "by design" if you use mbsyncs "native" scheme, which is the fastest option. Alternatively, you can use the "alternative" scheme ;) You can also make sure to drop the uuid part from the filename when you move things around. But for keeping things in-sync you might want to look at something like https://github.com/afewmail/afew which allows you to specify mappings. Personally, I ended up mapping only coarsely (things like Inbox, Spam, Trash, Drafts) and using tag based search in notmuch. Well, plus mapping some list headers to tags, moving messages between accounts based on labels, and ... It's really versatile, and the information is "stored in the tags" (plus folders), i.e. it does not tie you to an extra db or such. Michael ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org
Re: best practices for keeping a notmuch tag in sync with maildir folder
Bence Ferdinandy writes: > are there any best practices for keeping notmuch tags synced with an imap > folder? It seems to me that simply moving a mail file in the shell from one > folder to the other is not something that works well, at least with mbsync > the moved file didn't appear in my webmail (I would like to keep a few tags > mapped one-to-one with folders so I have a rudimentary access to some tags > on my phone and webmail). As far as I know (as a non-mbsync user) this is only a problem for mbsync. Notmuch itself is fine with moving (or copying) files between folders. You will have to run notmuch-new afterwards. If I remember correctly mbsync encodes an IMAP UUID into the file name, but I don't know the details. I guess that the general mbsync instructions for how to move messages should work fine with notmuch. ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org
Re: feature request: notmuch-show-print-message w/prefix to print PS to file
Alexander Adolf writes: > Hello, > > I'd like to request a feature. My intent is to redirect PostScript > printing of a message via `notmuch-show-print-message` to a file. > Ideally (IMHO) `notmuch-show-print-message` would accept an optional > prefix argument ("C-u"), which would be passed down to > `ps-print-buffer`, which would then prompt me for the name of the file, > and save the PS to that file. > > This would be specific to ps-print, and does not make sense for lpr > printing, of course. > One workaround is to set notmuch-print-mechanism to notmuch-print-ps-print/evince, and save the file from evince. ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org
[PATCH] nmweb: escape subject in search view
Fix a bug reported by Jakub Wilk [1]. [1]: id:20220822064717.qftn4tr7cs4r2...@jwilk.net --- devel/notmuch-web/nmweb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devel/notmuch-web/nmweb.py b/devel/notmuch-web/nmweb.py index 928e4863..7b555c62 100755 --- a/devel/notmuch-web/nmweb.py +++ b/devel/notmuch-web/nmweb.py @@ -131,7 +131,7 @@ env.globals['mailto_addrs'] = mailto_addrs def link_msg(msg): lnk = quote_plus(msg.messageid.encode('utf8')) try: -subj = msg.header('Subject') +subj = html.escape(msg.header('Subject')) except LookupError: subj = "" out = '%s' % (prefix, lnk, subj) -- 2.35.2 ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org