From 7dc8039c32855e1799c52bac124029c38b8e451a Mon Sep 17 00:00:00 2001 From: b0n3z Date: Tue, 24 Nov 2015 15:17:00 +0400 Subject: [PATCH] Fixed Kumar's address and renamed variable Fixed Kumar's address and renamed variable --- kumar_asshole.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kumar_asshole.rb b/kumar_asshole.rb index 0494fa3..e50c6cc 100755 --- a/kumar_asshole.rb +++ b/kumar_asshole.rb @@ -16,14 +16,14 @@ gmail.inbox.find(:unread, from: 'kumar.a@example.com').each do |email| if email.body[KEYWORDS_REGEX] # Restore DB and send a reply email.label('Database fixes') - reply = reply_to(email.subject) + reply = create_reply(email.subject) gmail.deliver(reply) end end -def reply_to(subject) +def create_reply(subject) gmail.compose do - to "email@example.com" + to "kumar.a@example.com" subject "RE: #{subject}" body "No problem. I've fixed it. \n\n Please be careful next time." end