;; At present, it works with a "~/.signature" file, where (possibly
;; multiline) stuff is separated by a line containing ONLY a "%"
;;
;; Change the filename in expand-file-name and the separator in
;; split-string below as you feel appropriate, and drop in your
;; "~/.gnus"
;;
(defun sig_rand ()
  (with-temp-buffer
    (insert-file-contents-literally (expand-file-name "~/.signature"))
    (let ((lista (split-string (buffer-string (current-buffer)) "\n%\n")))
      (elt lista (random (length lista))))))
(setq message-signature 'sig_rand)
-- 
sapete contare fino a venticinque?
Olimpia Milano Jugoplastika Split Partizan Beograd
Roberto Premier Duska Ivanovic Zarko Paspalj
_______________________________________________
info-gnus-english mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/info-gnus-english

Reply via email to