summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2020-08-25 21:46:55 -0400
committerKyle Meyer <kyle@kyleam.com>2020-08-25 21:46:55 -0400
commit480f9f9bbc01e1f986c67ec9294e5b3452532e1b (patch)
tree6d0831aaa7f73be455872387e5980aec87c4822c
parentb5d12075db5966a51ff6e0f7838796f682f20fd0 (diff)
downloadpiem-480f9f9bbc01e1f986c67ec9294e5b3452532e1b.tar.gz
Split a code section
In 846c69c (b4: Try to download thread from piem-inboxes URL, 2020-08-16), the "Maildir injection" section gained code that's used more widely. Move it to its own section.
-rw-r--r--piem.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/piem.el b/piem.el
index 5bc86d5..ef92e73 100644
--- a/piem.el
+++ b/piem.el
@@ -384,7 +384,7 @@ buffer."
nil))))
-;;;; Maildir injection
+;;;; Download helpers
(defvar piem--has-gunzip)
(defun piem-check-gunzip ()
@@ -418,6 +418,9 @@ buffer indicates that the request did not result in an error."
(let ((url-asynchronous nil))
(url-retrieve url #'piem--decompress-callback)))
+
+;;;; Maildir injection
+
(defun piem--write-mbox-to-maildir ()
(let ((n-added 0)
(n-skipped 0))