[notmuch] [PATCH v2] Add functions notmuch-show-get-(bcc, cc, date, from, subject, to).
Carl Worth
cworth at cworth.org
Sat Feb 20 12:19:18 PST 2010
On Thu, 11 Feb 2010 22:44:10 -0400, david at tethera.net wrote:
> Return the corresponding header field for the current message as a
> string. These are thin wrappers around notmuch-show-get-header, which
> means they each cause a full parse of the RFC822 header. The main idea
> is to fix an api.
OK. You at least acknowledge the only misgiving I had about this
patch. (And frankly, my own emacs lisp code probably has much worse
performance bugs.) So I'm not going to worry about that for now.
> Sorry, resending with fixed commit message.
Much appreciated.
> +(defun notmuch-show-get-bcc ()
> + "Return To address of current message"
> + (notmuch-show-get-header-field 'bcc))
> +
> +(defun notmuch-show-get-cc ()
> + "Return To address of current message"
> + (notmuch-show-get-header-field 'cc))
> +
> +(defun notmuch-show-get-date ()
> + "Return To address of current message"
> + (notmuch-show-get-header-field 'date))
I fixed the obviously copied documentation strings above, deleted the
trailing whitespace, and applied this patch.
Thanks!
-Carl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20100220/2669515d/attachment.pgp>
More information about the notmuch
mailing list