basic skeleton

This commit is contained in:
Jai Flack 2020-10-01 19:45:32 +10:00
parent 8c8aa2a11d
commit af61004319
Signed by: jflack
GPG Key ID: 1337AEA30052317F
1 changed files with 30 additions and 0 deletions

30
nnmu.el
View File

@ -26,13 +26,43 @@
;; This package provides an `nnmu' backend for Gnus as an alternative
;; to `nnmaildir' or `nnnotmuch' which is also not a part of GNU Emacs.
;; The documentation for most functions and variables has been
;; intentionally left blank, instead refer to the Gnus manual.
;;; Code:
(require 'nnheader)
(require 'nnmaildir)
(require 'nnoo)
(defcustom nnmu-program
(or (executable-find "mu")
(cond
((file-exists-p "/usr/sbin/mu") "/usr/sbin/mu")
((file-exists-p "/usr/lib/mu") "/usr/lib/mu")
((file-exists-p "/usr/ucblib/mu") "/usr/ucblib/mu")
(t "mu")))
"Path to the mu program."
:type 'file)
(defcustom nnmu-muhome ""
"Path to the mu database"
:type 'directory)
(nnoo-declare nnmu nnmaildir)
(nnoo-define-basics nnmu)
(defvar nnmu--current-group nil)
(defvar nnmu--current-server nil)
(deffoo nnmu-retrieve-headers (articles &optional group server fetch-old)
(or group (setq group nnmu--current-group))
)
(gnus-declare-backend "nnmu" 'post-mail 'address)
(provide 'nnmu)