Skip to content

Commit

Permalink
Preservar To, Cc y Reply-To intactos del mensaje original. (#23)
Browse files Browse the repository at this point in the history
De esta manera se propaga lo que se haya configurado desde el sistema de
entregas. Los mensajes que nos llegan deberían ser a través de Bcc.
  • Loading branch information
dato authored and FdelMazo committed Oct 22, 2018
1 parent 38cb666 commit 4537c1d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion algorw/corrector/corrector.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,10 @@ def send_reply(orig_msg, reply_text):
reply.set_payload(reply_text, "utf-8")

reply["From"] = GMAIL_ACCOUNT
reply["To"] = orig_msg.get("Cc", "")
reply["To"] = orig_msg["To"]
reply["Cc"] = orig_msg.get("Cc", "")
reply["Subject"] = "Re: " + orig_msg["Subject"]
reply["Reply-To"] = orig_msg.get("Reply-To", "")
reply["In-Reply-To"] = orig_msg["Message-ID"]

creds = get_oauth_credentials()
Expand Down

0 comments on commit 4537c1d

Please sign in to comment.