From: Austin Frank <austin.frank@gmail.com>
To: emacs-orgmode@gnu.org
Subject: org-mairix bug?
Date: Mon, 07 Jan 2008 23:12:53 -0500 [thread overview]
Message-ID: <m03at93qgq.fsf@gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1697 bytes --]
Hello!
I'm working on integrating mairix into my email workflow. The recently
added nnmairix in gnus is a great tool-- I encourage any gnus + mairix
users to try it.
I'd like to make use of org-mairix as well, but I am having some
trouble. The link seems to be built correctly, containing the proper
options and message id. Unfortunately, it seems that the arguments to
mairix aren't being constructed correctly. For me, to get any searches
to work, I needed to append "m:" in front of the message-id in the
search argument to org-mairix-command-substitution. I think this is
just an oversight on the original author's part, as the function
org-mairix-gnus-display-results actually checks for this string. In any
case, I think the fix could look something like this
--8<---------------cut here---------------start------------->8---
(defun org-mairix-command-substitution (cmd search args)
"Substitute '%search%' and '%args% in mairix search command."
(while (string-match "%search%" cmd)
(setq cmd (replace-match search 'fixedcase 'literal (concat "m:" cmd))))
(while (string-match "%args%" cmd)
(setq cmd (replace-match args 'fixedcase 'literal cmd)))
cmd)
--8<---------------cut here---------------end--------------->8---
This allows my links in org mode to single out the message with the
specified ID. I get complaints from org-mairix-gnus-display-results
because it doesn't think the first two characters of the search are
"m:"... I can't figure out why this is the case.
Thanks for org-mairix. I hope this report is useful.
/au
--
Austin Frank
http://aufrank.net
GPG Public Key (D7398C2F): http://aufrank.net/personal.asc
[-- Attachment #1.2: Type: application/pgp-signature, Size: 185 bytes --]
[-- Attachment #2: Type: text/plain, Size: 204 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next reply other threads:[~2008-01-08 4:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-08 4:12 Austin Frank [this message]
2008-01-09 22:07 ` org-mairix bug? Adam Spiers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m03at93qgq.fsf@gmail.com \
--to=austin.frank@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).