(defvar zonix-trusted-groups
"^\\(nn.*:\\(INBOX\\.\\)?list\\.\\(uni\\|jahrgang\\|heimat123\\|gnus\\|toh\\|dafhs\\)\\)\\|fb3\\.\\|stuga\\."
"Vertrauenswürdige Gruppen, in denen ich mit meiner richtigen
Emailadresse poste.")
(defvar zonix-german-groups
"^\\(nn.*:\\(INBOX\\.\\)?list\\.\\(uni\\|dafhs\\|jahrgang\\|heimat123\\.de\\)\\|de\\.\\|fb3\\.\\|stuga\\.\\)"
"Deutschsprachige Gruppen.")
(defvar zonix-spoiler-groups
"^nntp:de\\.rec\\.\\(film\\|tv\\)\\.\\(misc\\|serien\\)"
"Gruppen, in denen Spoiler verwendet werden." )
(defun zonix-insert-x-face ()
(with-temp-buffer
(insert-file-contents "~/el/xfaces/default")
(buffer-string)))
(defun dischi/gnus-message-rot-on-spoiler ()
(if (and (string-match zonix-spoiler-groups gnus-newsgroup-name)
(string-match "\\[[Ss]poiler\\]" (message-fetch-field "subject")))
(gnus-summary-caesar-message)))
(add-hook 'gnus-article-prepare-hook 'dischi/gnus-message-rot-on-spoiler)
(setq user-mail-address (concat "rscholz@" "zonix.de"))
(setq egoge-mail-addresses
(list "rscholz@...."
"r@..."
"rscholz@...."))
(defun egoge-message-get-from-address ()
(save-excursion
(set-buffer gnus-article-buffer)
(let ((address (message-fetch-field "to")))
(if (and address (string-match (regexp-opt egoge-mail-addresses)
address))
(concat user-full-name " <"
(match-string 0 address)
">")
(concat user-full-name " <" user-mail-address ">")))))
(setq gnus-posting-styles
'(
(".*"
(address (concat "rscholz@" "zonix.de"))
(organization (rfc2047-decode-string "=?UTF-8?Q?/=CB=8C=C9=94=CB=90=C9=A1=C9=99na=C9=AA=CB=88ze=C9=AA=CA=83n/?="))
(eval (ispell-change-dictionary zonix-german-ispell-dictionary))
(eval (setq mw/rs-tc-verb "schrieb"))
(eval (setq mw/rs-tc-anon "Ein anonymer Feigling"))
(body "\nGrüße, Ray")
(eval (setq randomsig-static-string nil))
(eval (setq randomsig-files 'randomsig-search-sigfiles))
(eval (setq randomsig-dir "~/el/sigs/")))
((or
(and (message-news-p)
(not (string-match zonix-german-groups (zonix-get-group-name))))
(and (message-mail-p)
(or (string-match "^nn.*:\\(INBOX\\.\\)?list\\." (zonix-get-group-name))
(string-match "^\\(nn.*\\)?gmane\\." (zonix-get-group-name))
(string-match "^nnvirtual:" (zonix-get-group-name)))
(not (string-match zonix-german-groups (zonix-get-group-name)))))
(eval (ispell-change-dictionary "british"))
(eval (setq mw/rs-tc-verb "writes"))
(eval (setq mw/rs-tc-anon "Anonymous coward"))
(body "\nCheers, Ray")
)
((message-mail-p)
(signature (randomsig-signature "mail/zonix")))
((and (message-mail-p)
(string-match "^nn" (zonix-get-group-name))
(not (string-match "^nn.*:\\(INBOX\\.\\)?list\\." (zonix-get-group-name))))
("X-Message-Source" (concat "hostname " (gnus-group-real-name (zonix-get-group-name)))))
((message-news-p)
(signature (randomsig-signature "news/zonix")))
((and (message-news-p)
(save-excursion
(set-buffer gnus-article-buffer)
(let ((case-fold-search t))
(string-match "yes"
(or (message-fetch-field "X-No-Archive") "")))))
(X-No-Archive "Yes"))
((or
(and (message-news-p) (boundp 'post)
(not (string-match zonix-trusted-groups (zonix-get-group-name))))
(and (message-mail-p) (boundp 'post)
(or (string-match "^nn.*:\\(INBOX\\.\\)?list\\." (zonix-get-group-name))
(string-match "^\\(nn.*\\)?gmane\\." (zonix-get-group-name))
(string-match "^nnvirtual:" (zonix-get-group-name)))
(not (string-match zonix-trusted-groups (zonix-get-group-name)))))
(address (format-time-string "ray-%Y@zonix.de"))
("Reply-To" (concat user-full-name " <rscholz@" "zonix.de>"))
("X-Now-Playing" zonix-now-playing)
("Mail-Copies-To" "nobody"))
("^nndiary:"
("X-Diary-Minute" (format-time-string "%M" (current-time)))
("X-Diary-Hour" (format-time-string "%H" (current-time)))
("X-Diary-Dom" (format-time-string "%e" (current-time)))
("X-Diary-Month" (format-time-string "%m" (current-time)))
("X-Diary-Year" (format-time-string "%Y" (current-time)))
("X-Diary-Dow" (format-time-string "%u" (current-time)))
("X-Diary-Time-Zone" "*"))
((not (string-match zonix-trusted-groups (zonix-get-group-name)))
("X-Now-Playing" zonix-now-playing))
("^nn.+:\\(INBOX\\.\\)?mail\\.personal\\."
("X-Now-Playing" zonix-now-playing))
("^nn.+:\\(INBOX\\.\\)?mail\\.personal\\.heimat"
(eval (ispell-change-dictionary "british")))
("^\\(fb3\\|stuga\\)\\|\\(^nn.+:\\(INBOX\\.\\)?\\(mail\\.personal\\|list\\)\\.uni\\.\\)"
("X-Now-Playing" zonix-now-playing)
(signature (randomsig-signature "mail/ex-uni")))
("^nn.+:gmane\\.\\(config\\.admin\\|discuss\\.subscribe\\)"
(signature (randomsig-signature "news/gmane")))
("^nn.+:\\(INBOX\\.\\)?mail\\.news\\.spam"
(signature nil)
(body "")
(address (concat "rscholz@" "gmx.de")))
((or
(and (string-match "^nn.+:INBOX$" (zonix-get-group-name))
(string= "verified" zonix-location))
(string-match "^nn.+:\\(INBOX\\.\\)?\\(mail\\.verified\\.\\)\\|\\(list\\.uni\\.agbs\\)" (zonix-get-group-name)))
(address (concat "rscholz@" "verified.de"))
(organization "Verified Systems International GmbH")
(body "\nMit freundlichen Grüßen,\n Raymond Scholz")
(signature (randomsig-signature "mail/verified")))
("^nn.+:\\(INBOX\\.\\)?mail\\.verified\\.intern"
(body "\nGrüße, Ray"))
("^nn.+:\\(INBOX\\.\\)?mail\\.personal\\.\\(bekannte\\|familie\\|ttsg\\|schule\\)"
(body "\nGrüße, Raymond"))
("^nn.+:\\(INBOX\\.\\)?mail\\.\\(personal\\.website\\|provider\\.\\(spamcop\\|ebay\\)\\)"
(body "\nGrüße, Raymond Scholz"))
("^nn.+:\\(INBOX\\.\\)?\\(mail\\.personal\\.schule\\|list\\.jahrgang\\)"
(address (concat "raymond.scholz@" "gaw94.de"))
(signature (randomsig-signature "mail/schule")))
("^nn.+:\\(INBOX\\.\\)?list\\.toh\\.hosting"
(organization "Stuemperhosting"))
("^toh\\."
(signature (randomsig-signature "toh-fortunes")))
("^gmane\\.\\(network\\.leafnode\\|comp\\.video\\.freevo\\.user\\|comp\\.web\\.wiki\\.dokuwiki\\.general\\)"
(address (concat "rscholz@" "gmx.de")))
("^nn.+:\\(INBOX\\.\\)?list\\.ivtv-.*"
(address (concat "rscholz@" "gmx.de")))
((and (boundp 'post)
(string-match
"\\(gnus\\|emacs\\)" (zonix-get-group-name)))
(eval (setq randomsig-dir "~/el/sigs/comp/"))
(eval (setq randomsig-files 'randomsig-search-sigfiles))
(signature (randomsig-signature))
(x-face-file "~/el/xfaces/default"))
((and (boundp 'post)
(string-match "^\\(de\\.com[mp]\\.\\|stuga\\.ml\\)" (zonix-get-group-name)))
(eval (setq randomsig-dir "~/el/sigs/comp/"))
(eval (setq randomsig-files 'randomsig-search-sigfiles))
(signature (randomsig-signature)))
((and (boundp 'post)
(string-match "^\\(de\\.\\)?\\(alt\\|rec\\)\\." (zonix-get-group-name)))
(eval (setq randomsig-dir "~/el/sigs/news/"))
(eval (setq randomsig-files 'randomsig-search-sigfiles))
(signature (randomsig-signature)))
("^nn.+:\\(INBOX\\.\\)?list\\.dafhs"
(address (concat "gelber@" "plastikball.de")))
("^de\\.alt\\.fan\\.haraldschmidt"
("Reply-To" (concat user-full-name " <rscholz@" "dafhs.org>")))
("^de\\.rec\\."
("Reply-To" (concat user-full-name " <dummes@" "gerede.org>")))
("^nn.+:\\(INBOX\\.\\)?\\(list\\.gnus\\.mgo\\|mail\\.personal\\.toh\\)"
(eval (setq randomsig-dir "~/el/sigs/comp/")))
("^de\\.\\(alt\\|comp\\|rec\\)\\.\\(musi[ck]\\|fan\\.konsumterror\\|audio\\)"
(body (lambda ()
(with-temp-buffer
(insert "Grüße, Ray\n")
(insert "np: " (zonix-now-playing) "\n")
(buffer-string)))))
))