changed variable name
authorAndrew Engelbrecht <sudoman@ninthfloor.org>
Mon, 27 Jul 2015 20:34:07 +0000 (16:34 -0400)
committerAndrew Engelbrecht <sudoman@ninthfloor.org>
Mon, 7 Dec 2015 18:28:41 +0000 (13:28 -0500)
clarified the name of the reply email generator's "To:" email address
variable

edward

diff --git a/edward b/edward
index a7c7874549663263ff68d8f3120add81ee2e6ad5..4a487c321a694255686f91e019a729d1a64ec150 100755 (executable)
--- a/edward
+++ b/edward
@@ -1145,7 +1145,7 @@ def import_lang(email_to):
     return importlib.import_module("lang.en")
 
 
-def generate_encrypted_mime (plaintext, email_from, email_subject, encrypt_to_key,
+def generate_encrypted_mime (plaintext, email_to, email_subject, encrypt_to_key,
                     gpgme_ctx):
     """This function creates the mime email reply. It can encrypt the email.
 
@@ -1154,7 +1154,7 @@ def generate_encrypted_mime (plaintext, email_from, email_subject, encrypt_to_ke
 
     Args:
         plaintext: the plaintext body of the message to create.
-        email_from: the email address to reply to
+        email_to: the email address to reply to
         email_subject: the subject to use in reply
         encrypt_to_key: the key object to use for encrypting the email. (or
             None)
@@ -1204,7 +1204,7 @@ def generate_encrypted_mime (plaintext, email_from, email_subject, encrypt_to_ke
     message_mime['Content-Disposition'] = 'inline'
 
 
-    message_mime['To'] = email_from
+    message_mime['To'] = email_to
     message_mime['Subject'] = email_subject
 
     reply = message_mime.as_string()