summaryrefslogtreecommitdiff
path: root/utils.lisp
diff options
context:
space:
mode:
authorMatthias Benkard <code@mail.matthias.benkard.de>2009-10-08 11:24:55 +0200
committerMatthias Benkard <code@mail.matthias.benkard.de>2009-10-08 11:24:55 +0200
commit55c3f987bd80ca38fa68c9eb08c1448a0329fee7 (patch)
tree12903cc17034ef3cbd42cb9b5fcf42947ab63b8c /utils.lisp
parent23f65542a32de726c8b605e108094b74c7a3d137 (diff)
Support the posting of trackbacks.
Ignore-this: 5f2d53c3ba9415a9e66240e7b7711c4b darcs-hash:6c085435bf95459afcb1ce53a55b058ef5b5a3d7
Diffstat (limited to 'utils.lisp')
-rw-r--r--utils.lisp21
1 files changed, 21 insertions, 0 deletions
diff --git a/utils.lisp b/utils.lisp
index 877343e..4b09584 100644
--- a/utils.lisp
+++ b/utils.lisp
@@ -328,6 +328,27 @@ ELEMENT-TYPE as the stream's."
(spamp comment)
(body-of comment))))
+(defun mail-trackback (address comment entry)
+ (mail address
+ (format nil "[Trackback] ~A" (title-of entry))
+ (format nil "~&Trackback von: ~A~
+ ~&Nummer: ~A~
+ ~&Titel: ~A~
+ ~&Web-Adresse: ~A~
+ ~&IP-Adresse: ~A~
+ ~&Webbrowser: ~A~
+ ~&Als Spam erkannt: ~A~
+ ~&~%~
+ ~&~A"
+ (blog-name-of comment)
+ (id-of comment)
+ (title-of comment)
+ (url-of comment)
+ (submitter-ip comment)
+ (submitter-user-agent comment)
+ (spamp comment)
+ (excerpt-of comment))))
+
(defun revalidate-cache-or-die (content-type)
#+clisp
(when *if-modified-since*