Re: Washing GitHub emails to include inline patch?
Kyle Meyer writes: > I have a command in my Emacs configuration that I think gets close to > what you want. This is great! Now if there was only a way to make it work for private repositories... hmm... -- https://jb55.com ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch
Re: Washing GitHub emails to include inline patch?
Tomi Ollila writes: > On Thu, Sep 21 2017, Kyle Meyer wrote: > >> >> --8<---cut here---start->8--- >> (defun km/open-github-patch (buffer) >> "Find GitHub patch link in BUFFER and show it in a new buffer." >> (let ((url >> (with-current-buffer buffer >>(save-excursion >> (goto-char (point-min)) >> (if (re-search-forward "https://github.com/.*\\.patch"; nil t) > > Just a read-through thought -- would "https://github[.]com/.*[.]patch"; work > above ? oops, good catch. I didn't mean to match any single character with the first period. Either your suggestion or "https://github\\.com/.*\\.patch"; should work. -- Kyle ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch
Re: Washing GitHub emails to include inline patch?
On Thu, Sep 21 2017, Kyle Meyer wrote: > > --8<---cut here---start->8--- > (defun km/open-github-patch (buffer) > "Find GitHub patch link in BUFFER and show it in a new buffer." > (let ((url > (with-current-buffer buffer >(save-excursion > (goto-char (point-min)) > (if (re-search-forward "https://github.com/.*\\.patch"; nil t) Just a read-through thought -- would "https://github[.]com/.*[.]patch"; work above ? ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch
Re: Is there a prefix that performs from: and to: simultaneously?
David Bremner writes: > Attic Hermit writes: > >>> +john +friend -- tag:new AND (to:j...@example.tld OR >>> from:j...@example.tld) >> >> First did I tried that form, but I felt that wasn't up to snuff because >> I still have to write the same address two times. > > Currently I think that's the best you can do. You may be interested in > defining a predefined query > > notmuch config query.fromtojohn "to:j...@example.tld OR from:j...@example.tld" > > then you can use > > +john +friend -- tag:new AND (to:j...@example.tld OR from:j...@example.tld) > query:fromtojohn that should be +john +friend -- tag:new AND query:fromtojohn ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch
Re: Is there a prefix that performs from: and to: simultaneously?
Attic Hermit writes: >> +john +friend -- tag:new AND (to:j...@example.tld OR >> from:j...@example.tld) > > First did I tried that form, but I felt that wasn't up to snuff because > I still have to write the same address two times. Currently I think that's the best you can do. You may be interested in defining a predefined query notmuch config query.fromtojohn "to:j...@example.tld OR from:j...@example.tld" then you can use +john +friend -- tag:new AND (to:j...@example.tld OR from:j...@example.tld) query:fromtojohn Hypothetically it would be possible to extend the query: syntax to support parameters, but I'm not sure it's worth the extra complexity. ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch