added function docs, removed unused parameter
authorAndrew Engelbrecht <sudoman@ninthfloor.org>
Tue, 1 Dec 2015 22:43:29 +0000 (17:43 -0500)
committerAndrew Engelbrecht <sudoman@ninthfloor.org>
Mon, 7 Dec 2015 18:32:42 +0000 (13:32 -0500)
(the send_reply function)

edward

diff --git a/edward b/edward
index cdab0b449b19ff0aa4f9395cb8259f5242fe8575..57c1b573f4626011593efeeef8987d99da759d30 100755 (executable)
--- a/edward
+++ b/edward
@@ -288,7 +288,7 @@ def main ():
     if print_reply_only == True:
         print(reply_mime)
     else:
-        send_reply(reply_mime, email_subject, email_from, reply_from)
+        send_reply(reply_mime, email_from, reply_from)
 
 
 def get_gpg_context (gnupghome, sign_with_key_fp):
@@ -1349,7 +1349,20 @@ def generate_encrypted_mime (plaintext, email_to, email_subject, encrypt_to_key,
     return reply
 
 
-def send_reply(email_txt, subject, reply_to, reply_from):
+def send_reply(email_txt, reply_to, reply_from):
+    """Sends reply email
+
+    Sent to original sender
+
+    Args:
+        email_txt: message as a string
+        reply_to: recipient of reply
+        reply_from: edward's specific email address
+
+    Post:
+        Email is sent
+    """
+
 
     s = smtplib.SMTP('localhost')
     s.sendmail(reply_from, reply_to, email_txt)