David Bremner <da...@tethera.net> writes:

> Not sure if this helps, but we are using the GLib GKeyFile API, so
> whatever it supports (if anything) for line continuation, we do too.

I found nothing in the GLib/GKeyFile documentation.  But then, I figured
that Org mode has me covered, as usual.  If anyone has the problem:

#+name: spammers
- [[mailto:foo@bar]]
- ...

#+name: notmuch-or
#+begin_src emacs-lisp :var addresses=() :results silent
(mapconcat (lambda (entry)
             (let* ((step-1 (car entry))
                    (step-2 (string-remove-prefix "[[mailto:"; step-1))
                    (step-3 (string-remove-suffix "]]" step-2)))
               step-3))
           addresses
           " or ")
#+end_src

#+begin_src conf :tangle ~/.notmuch-config :noweb yes
...
spam = <<notmuch-or(addresses=spammers)>>
#+end_src

Thank you!

Rudy
-- 
"Genius is 1% inspiration and 99% perspiration."
-- Thomas Alva Edison, 1932

Rudolf Adamkovič <salu...@me.com> [he/him]
Studenohorská 25
84103 Bratislava
Slovakia
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-le...@notmuchmail.org

Reply via email to