(setq tfheen-spam-folder (format-time-string "spam.%Y-%m"))
(cw/for-host "luxevop"
- (setq tfheen-spam-folder (format-time-string "INBOX/spam.%Y")))
-
+ (setq tfheen-spam-folder (lambda () (if (string-match "nnimap\\+mail\\.err\\.no" gnus-newsgroup-name)
+ (format-time-string "nnimap+mail.err.no:spam.%Y-%m")
+ (format-time-string "INBOX/spam.%Y")))))
+
(defun tfheen-mark-as-spam ()
(interactive)
; (let ((buf (get-buffer-create "*Spam mark*"))
; (cacheid (tfheen-fetch-cacheid)))
; (and cacheid
; (start-process "spammark" buf "ssh" "vuizook" "spam" cacheid)))
- (gnus-summary-move-article nil tfheen-spam-folder nil 'move)
+ (gnus-summary-move-article nil (if (stringp tfheen-spam-folder)
+ tfheen-spam-folder
+ (apply tfheen-spam-folder nil)) nil 'move)
(gnus-summary-next-subject 1))
(defun tfheen-mark-as-ham ()