From: Andrew Markebo <andrew.markebo@telia.com>
Subject: Re: randomsig.el and Random Signatures
Date: Sun, 18 May 2003 08:07:06 GMT [thread overview]
Message-ID: <m3llx41xw5.fsf@telia.com> (raw)
In-Reply-To: <87u1btouvk.fsf@cecilia.trollope.org>
Hi!
Not really an answer to your question, but it is how I do random
sigs..
(defvar grc-signature-dir "~/.sigs/")
(defvar grc-signature-base "sig")
(defadvice message-insert-signature (before random-mail-sig-ag act comp)
"Change the value of message-signature-file each time
`message-insert-signature' is called."
(let ((files (file-name-all-completions
grc-signature-base (expand-file-name grc-signature-dir))))
(if files (let ((file (nth (random (length files)) files)))
(setq message-signature-file (concat grc-signature-dir file))
))))
Here it randomly picks the contents of a file whose name begins with
"sig" from the subdir "~/.sigs/"..
/Andy
--
Everything that was magical was just a way of describing the world in
words it couldn't ignore.
- "Pyramids" by Terry Pratchett
next parent reply other threads:[~2003-05-18 8:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87u1btouvk.fsf@cecilia.trollope.org>
2003-05-18 8:07 ` Andrew Markebo [this message]
[not found] ` <xtzy913bagk.fsf@dataman.informatik.uni-bremen.de>
2003-05-19 18:07 ` Hans-Juergen Ficker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3llx41xw5.fsf@telia.com \
--to=andrew.markebo@telia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).