Skip to content

Commit

Permalink
reverting draft folder change
Browse files Browse the repository at this point in the history
  • Loading branch information
TransformerOptimus committed Jun 19, 2023
1 parent 67fecb3 commit e6d0840
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superagi/tools/email/send_email.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def _execute(self, to: str, subject: str, body: str) -> str:
body += f"\n{signature}"
message.set_content(body)
draft_folder = get_config('EMAIL_DRAFT_MODE_WITH_FOLDER')
send_to_draft = draft_folder is None or draft_folder != "YOUR_DRAFTS_FOLDER"
send_to_draft = draft_folder is not None or draft_folder != "YOUR_DRAFTS_FOLDER"
if message["To"] == "[email protected]" or send_to_draft:
conn = ImapEmail().imap_open(draft_folder, email_sender, email_password)
conn.append(
Expand Down

0 comments on commit e6d0840

Please sign in to comment.