Accidentally unsubscribed?
Hi, I've just received an email: --8<---cut here---start->8--- notmuch-boun...@notmuchmail.org (25 mins. ago) (inbox) Subject: You have been unsubscribed from the notmuch mailing list --8<---cut here---end--->8--- I suspect this is because of the antispam of my email server. Can someone confirm and maybe send me the faulty .eml so that I fix this? Thanks! -- Pierre Neidhardt https://ambrevar.xyz/ signature.asc Description: PGP signature ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch
[PATCH 1/2] emacs: Move notmuch-search-interactive-region to notmuch-lib as notmuch-interactive-region
--- emacs/notmuch-lib.el | 9 + emacs/notmuch.el | 17 - 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el index 546ab6fd..7fc342a5 100644 --- a/emacs/notmuch-lib.el +++ b/emacs/notmuch-lib.el @@ -1008,6 +1008,15 @@ status." (defvar notmuch-show-process-crypto nil) (make-variable-buffer-local 'notmuch-show-process-crypto) +(defun notmuch-interactive-region () + "Return the bounds of the current interactive region. + +This returns (BEG END), where BEG and END are the bounds of the +region if the region is active, or both `point' otherwise." + (if (region-active-p) + (list (region-beginning) (region-end)) +(list (point) (point + (provide 'notmuch-lib) ;; Local Variables: diff --git a/emacs/notmuch.el b/emacs/notmuch.el index 804e78ab..773d1206 100644 --- a/emacs/notmuch.el +++ b/emacs/notmuch.el @@ -557,20 +557,11 @@ thread." (setq output (append output (notmuch-search-get-tags pos) output)) -(defun notmuch-search-interactive-region () - "Return the bounds of the current interactive region. - -This returns (BEG END), where BEG and END are the bounds of the -region if the region is active, or both `point' otherwise." - (if (region-active-p) - (list (region-beginning) (region-end)) -(list (point) (point - (defun notmuch-search-interactive-tag-changes ( initial-input) "Prompt for tag changes for the current thread or region. Returns (TAG-CHANGES REGION-BEGIN REGION-END)." - (let* ((region (notmuch-search-interactive-region)) + (let* ((region (notmuch-interactive-region)) (beg (first region)) (end (second region)) (prompt (if (= beg end) "Tag thread" "Tag region"))) (cons (notmuch-read-tag-changes @@ -590,8 +581,8 @@ is inactive this applies to the thread at point. If ONLY-MATCHED is non-nil, only tag matched messages." (interactive (notmuch-search-interactive-tag-changes)) (unless (and beg end) -(setq beg (car (notmuch-search-interactive-region)) - end (cadr (notmuch-search-interactive-region +(setq beg (car (notmuch-interactive-region)) + end (cadr (notmuch-interactive-region (let ((search-string (notmuch-search-find-stable-query-region beg end only-matched))) (notmuch-tag search-string tag-changes) @@ -627,7 +618,7 @@ messages will be \"unarchived\" (i.e. the tag changes in `notmuch-archive-tags' will be reversed). This function advances the next thread when finished." - (interactive (cons current-prefix-arg (notmuch-search-interactive-region))) + (interactive (cons current-prefix-arg (notmuch-interactive-region))) (when notmuch-archive-tags (notmuch-search-tag (notmuch-tag-change-list notmuch-archive-tags unarchive) beg end)) -- 2.21.0 ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch
[emacs] Auto-rotate pictures
Hi, Some pictures embed "exif" metadata with autorotate information. I know that mu4e can autorotate inlined pictures. I guess it wouldn't be too hard to implement this for Emacs Notmuch either. Anyone? -- Pierre Neidhardt https://ambrevar.xyz/ signature.asc Description: PGP signature ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch
Re: notmuch-tree-tag does not support regions
Should I send a patch? -- Pierre Neidhardt https://ambrevar.xyz/ signature.asc Description: PGP signature ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch
Add notmuch-tree-toggle-order?
Hi, We have notmuch-search-toggle-order but surprisingly there is no notmuch-tree-toggle-order. Besides, I find the default tree order somewhat counter-intuitive: the threads are sorted newest at the top, but the messages within the thread are sorted oldest at the top (which quite expected from a tree display). Thoughts? -- Pierre Neidhardt https://ambrevar.xyz/ signature.asc Description: PGP signature ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch
Re: [PATCH v1 1/1] emacs: Add `notmuch-wash-cut-here'
That'd be great! Would you like to implement this? Either way, the patch looks good to me and it'd be great to see it merged upstream. Thanks! -- Pierre Neidhardt https://ambrevar.xyz/ signature.asc Description: PGP signature ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch
Re: [PATCH v1 1/1] emacs: Add `notmuch-wash-cut-here'
I've added notmuch-wash-cut-here to notmuch-show-insert-text/plain-hook, and this works great, thanks for the prompt solution! :) Question: Is is possible to configure the wash function to be expanded by default? -- Pierre Neidhardt https://ambrevar.xyz/ signature.asc Description: PGP signature ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch
Re: Reply inline in notmuch-show buffer, "mu4e-conversation style"
What I did in mu4e-conversation was actually rather simple, albeit a bit hackish: - Copy the test from the composition buffer - Save the window excursion - Fire up a new message buffer as notmuch-show-reply would produce. - Cleanup the citation. - Insert the copied text from the composition buffer. - Send. Sadly, mu4e wraps too much around message-mode and this forced me to use some ugly hacks. I haven't looked at notmuch's code yet, but it seems that it does not wrap quite as much, so it might be cleaner and as simple as a writing a 10-line-longish function. The "hardest" part is to add a composition area. Here is the code excerpt from mu4e-conversation: --8<---cut here---start->8--- (defun mu4e-conversation-send ( msg) "Send message at the end of the view buffer. If MSG is specified, then send this message instead. Most `mu4e-compose-…' variables are lexically bound during the call of this function." (interactive) (unless (mu4e-conversation--buffer-p) (mu4e-warn "(send) Not a conversation buffer")) (let (draft-buf (buf (current-buffer)) (mu4e-compose-signature mu4e-compose-signature) ;; [More local variables...] (mu4e-compose-crypto-reply-encrypted-policy mu4e-compose-crypto-reply-encrypted-policy)) (run-hooks 'mu4e-conversation-before-send-hook) (save-window-excursion (mu4e-conversation--open-draft msg) (condition-case nil ;; Force-kill DRAFT-BUF on succcess since it's an implementation ;; detail in mu4e-conversation and the composition area is in BUF. (let ((message-kill-buffer-on-exit t)) (message-send-and-exit)) ;; Stay in draft buffer and widen in case we failed during header check. (error (setq draft-buf (current-buffer)) (widen (cond (draft-buf (switch-to-buffer draft-buf)) (mu4e-conversation-kill-buffer-on-exit (switch-to-buffer buf) (mu4e-conversation-quit 'no-confirm)) (t ;; Delete message that was just sent. (goto-char (point-max)) (mu4e-conversation-previous-message) (forward-line) (delete-region (line-beginning-position 1) (point-max)) ;; Ensure it's writable. (insert (propertize "\n" 'face 'mu4e-conversation-header 'rear-nonsticky t)) (set-buffer-modified-p nil) ;; -after-send-hook can be used to update the conversation buffer so that ;; it includes the message that was just sent. (run-hooks 'mu4e-conversation-after-send-hook) --8<---cut here---end--->8--- The hackish part is in mu4e-conversation--open-draft, which I'm not including here because it's long and boring. Hopefully notmuch.el won't require us to do this. -- Pierre Neidhardt https://ambrevar.xyz/ signature.asc Description: PGP signature ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch
Foldable "cut here" snippets in notmuch-show
Hi, It'd be nice if notmuch-show could treat the snippets produced by Emacs' `message-mark-inserted-region' specially, e.g.: --8<---cut here---start->8--- foo --8<---cut here---end--->8--- and make them foldable. (Note that the enclosing lines are defined in ‘message-mark-insert-begin’ and ‘message-mark-insert-end’.) Thoughts? -- Pierre Neidhardt https://ambrevar.xyz/ signature.asc Description: PGP signature ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch
Reply inline in notmuch-show buffer, "mu4e-conversation style"
Hi, mu4e-conversation (https://gitlab.com/ambrevar/mu4e-conversation) has a very nice feature in my opinion: it allows you to compose a reply at the end of the buffer, in a dedicated "composition area". - Pressing C-c C-c sends the message (it won't if the message is empty or white space). - Pressing "RET" appends the region to the composition area. This makes it very convenient to *quote/cite from different messages*. With a prefix argument, it prepends a citation line (e.g. "John doe wrote..."). This is similar to how messengers like Whatsapp work. This is the real killer-feature of mu4e-conversation in my opinion. What to you people think of adding such a feature to notmuch-show? -- Pierre Neidhardt https://ambrevar.xyz/ signature.asc Description: PGP signature ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch