From: David Edmondson <dme@dme.org>
To: notmuch@notmuchmail.org
Subject: RFC: notmuch-cache.el: simple caching of MIME parts
Date: Tue, 07 Oct 2014 08:53:47 +0100 [thread overview]
Message-ID: <m2wq8cmi2c.fsf@fenchurch.hh.sledj.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 383 bytes --]
I've been using remote-notmuch over a 3G connection quite a lot
recently. Dragging down the same MIME part more than once is annoying,
so here is a very simple filesystem based cache of MIME parts for
notmuch. It's integrated using defadvice for now, but a cleaner approach
is obviously possible.
No suggestion that this should be integrated - it's just a toy to prompt
discussion.
[-- Attachment #2: notmuch-cache.el~ --]
[-- Type: application/octet-stream, Size: 234 bytes --]
(defun notmuch-cache-get (id part)
"Return a cached copy of ID's MIME PART, or nil."
nil)
(defun notmuch-cache-put (id part content)
"Cache a copy of ID's MIME PART using CONTENT."
)
(defadvice notmuch-get-bodypart-internal
next reply other threads:[~2014-10-07 7:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-07 7:53 David Edmondson [this message]
2014-10-07 7:57 ` RFC: notmuch-cache.el: simple caching of MIME parts David Edmondson
2014-10-07 12:25 ` Jesse Rosenthal
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://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2wq8cmi2c.fsf@fenchurch.hh.sledj.net \
--to=dme@dme.org \
--cc=notmuch@notmuchmail.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://yhetil.org/notmuch.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).