From dcc399faba3ecd677fb43faf682c8ce7d5325213 Mon Sep 17 00:00:00 2001 From: Nathan Weizenbaum Date: Mon, 21 Sep 2009 14:42:39 -0700 Subject: [PATCH] Make the from email for releasing to ELPA a little more configurable. --- Rakefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 2a620214..a7e75504 100644 --- a/Rakefile +++ b/Rakefile @@ -97,7 +97,9 @@ task :release_elpa do rev = File.read(".git/#{$1}").strip end - from = "nex342@gmail.com" + from = `git config user.email` + raise "Don't know how to send emails except via Gmail" unless from =~ /@gmail.com$/ + to = "elpa@tromey.com" Net::SMTP.enable_tls(OpenSSL::SSL::VERIFY_NONE) Net::SMTP.start('smtp.gmail.com', 587, 'gmail.com', from, read_password("GMail Password"), :login) do |smtp|