tvl-depot/users/sterni/mblog/packages.lisp
sterni 9d0b9a8395 refactor(sterni/mblog/mail-note): make dependency on config explicit
We reuse the common buffer size setting from mblog for convenience.
Eventually we probably want to make mail-note an independent library, so
it's good to make this internal dependency explicit and not a blanket
USE-PACKAGE, so the amount of used symbols from config doesn't increase.

Change-Id: I88458493c90d9f52410e34ed2a1db99be751b901
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12914
Reviewed-by: sterni <sternenseemann@systemli.org>
Autosubmit: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
2024-12-26 12:59:03 +00:00

64 lines
1.3 KiB
Common Lisp

;; SPDX-License-Identifier: GPL-3.0-only
;; SPDX-FileCopyrightText: Copyright (C) 2022-2024 by sterni
(defpackage :maildir
(:use :common-lisp)
(:shadow :list)
(:export :list)
(:documentation
"Very incomplete package for dealing with maildir(5)."))
(defpackage :config
(:use
:common-lisp)
(:import-from :uiop :getenv)
(:import-from :alexandria :when-let)
(:export
:init-from-env
:*general-buffer-size*))
(defpackage :mail-note
(:use
:common-lisp
:closure-html
:cl-date-time-parser
:mime4cl)
(:import-from :config :*general-buffer-size*)
(:import-from
:alexandria
:when-let*
:when-let
:starts-with-subseq
:ends-with-subseq)
(:import-from :who :escape-string-minimal)
(:export
:mail-note
:mail-note-uuid
:mail-note-subject
:mail-note-time
:mail-note-text-part
:make-mail-note
:mail-note-html-fragment))
(defpackage :mblog
(:use
:common-lisp
:klatre
:who
:maildir
:mail-note
:config)
(:export :build-mblog)
(:import-from :local-time :universal-to-timestamp)
(:import-from :mime4cl :redirect-stream)
(:shadowing-import-from :common-lisp :list))
(defpackage :cli
(:use
:common-lisp
:uiop
:mail-note
:config
:mblog)
(:import-from :alexandria :starts-with)
(:export :main))