Created
February 26, 2011 15:54
-
-
Save lytithwyn/845325 to your computer and use it in GitHub Desktop.
A script that will randomize the signature file in my Thunderbird email account
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require "fileutils" | |
#this is the file that we will write the chosen sig to | |
tbirdSigFile = "/home/lytithwyn/.thunderbird/r2hddzc6.default/sigs/lytithwyn@gmail.htm" | |
Dir.chdir(Dir.home() + "/sigs") do | |
sigs = Dir.glob("*.htm"); | |
sigFileNumberToUse = rand(sigs.length); | |
FileUtils.cp sigs[sigFileNumberToUse], tbirdSigFile | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found it really dumb that there wasn't a simple way to randomize the sig in Thunderbird. There was an add-on that was supposed to do this, but lots of people were complaining about it so I didn't even try it. I have this script running in my ~/.flubox/startup file, so I get a random sig every time I sign on.