From: wmorgan-sup@masanjin.net (William Morgan)
Subject: [sup-talk] new in svn: signature generation hook
Date: Fri, 31 Aug 2007 09:09:10 -0700 [thread overview]
Message-ID: <1188576459-sup-2368@south> (raw)
Check out my new awesome sig. I made it by putting this code in
~/.sup/hooks/signature.rb:
if from_email
title = "War Lord of the Sup"
padding = " " * (73 - title.length - from_email.length)
<<'EOS' +
_____________________________________________________________________________
| |
| | \ | / | |
| |\ \|/ /| |
| |XXXXX||>>>>>>>>>>>>>>>>>>>>>>> ((*)) <<<<<<<<<<<<<<<<<<<<<<<||XXXXX| |
| |/ /|\ \| |
| | / | \ | |
| |
| Death Star |
EOS
<<EOS
| #{title}#{padding}#{from_email} |
|___________________________________________________________________________|
EOS
end
Here's the hook documentation:
File: ~/.sup/hooks/signature.rb
Generates a signature for a message.
Variables:
header: an object that supports string-to-string hashtable-style access
to the raw headers for the message. E.g., header["From"],
header["To"], etc.
from_email: the email part of the From: line, or nil if empty
Return value:
A string (multi-line ok) containing the text of the signature, or nil to
use the default signature.
Have fun,
--
_____________________________________________________________________________
| |
| | \ | / | |
| |\ \|/ /| |
| |XXXXX||>>>>>>>>>>>>>>>>>>>>>>> ((*)) <<<<<<<<<<<<<<<<<<<<<<<||XXXXX| |
| |/ /|\ \| |
| | / | \ | |
| |
| Death Star |
| War Lord of the Sup wmorgan-sup at masanjin.net |
|___________________________________________________________________________|
next reply other threads:[~2007-08-31 16:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-31 16:09 William Morgan [this message]
2007-09-03 12:40 ` jeff covey
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=1188576459-sup-2368@south \
--to=wmorgan-sup@masanjin.net \
/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