From 084049bbfe2cf5529770e2c3ad457c290d9acf61 Mon Sep 17 00:00:00 2001
From: b3yond <b3yond@riseup.net>
Date: Mon, 8 Oct 2018 15:09:18 +0200
Subject: [PATCH] fix repost bug

---
 active_bots/mailbot.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/active_bots/mailbot.py b/active_bots/mailbot.py
index 3757460..7c8fcb5 100644
--- a/active_bots/mailbot.py
+++ b/active_bots/mailbot.py
@@ -34,7 +34,7 @@ class Mailbot(Bot):
             unsubscribe_text = "\n_______\nYou don't want to receive those messages? Unsubscribe with this link: "
             body = report.text + unsubscribe_text + config['web']['host'] + "/city/mail/unsubscribe/" \
                    + db.mail_subscription_token(rec, user.get_city())
-            if report.author != rec:
+            if rec not in report.author:
                 try:
                     city = user.get_city()
                     sendmail(rec, "Ticketfrei " + city + " Report",
@@ -54,7 +54,6 @@ def make_report(msg, user):
     date = get_date_from_header(msg['Date'])
 
     author = msg['From']  # get mail author from email header
-    # :todo take only the part in between the < >
 
     if msg.is_multipart():
         text = []