Yi EungJun 2015-03-02
Mailbox: Ignore emails from a person who is not a Yobi user
@adabebb887a04f1f2db2af7966e61fa083a29d01
app/mailbox/EmailHandler.java
--- app/mailbox/EmailHandler.java
+++ app/mailbox/EmailHandler.java
@@ -217,6 +217,10 @@
 
             author = User.findByEmail(senderAddress.getAddress());
 
+            if (author.isAnonymous()) {
+                continue;
+            }
+
             try {
                 createResources(msg, author, errors);
             } catch (MailHandlerException e) {
docs/technical/mailbox.md
--- docs/technical/mailbox.md
+++ docs/technical/mailbox.md
@@ -39,7 +39,7 @@
 Yobi posts the fetched emails as an issue or a comment if possible.
 
 Mailbox determines the author by the sender's email address from 'From' header of
-the email.
+the email. Emails from the sender who is not a user of Yobi are ignored.
 
 Mailbox determines the projects by the detail parts, which comes after plus
 sign in local part, e.g. owner/project from yobi+owner/project@mail.com, of the
Add a comment
List