[Notice] Announcing the End of Demo Server [Read me]

Merge branch 'feature/mailbox' of dlab/hive
from pull-request 1501 * refs/heads/feature/mailbox: Mailbox: Ignore emails from a person who is not a Yobi user Reviewed-by: 채수원
@a6d17fcfc5132abc400913f8a0106e417be7df81
--- app/mailbox/EmailHandler.java
+++ app/mailbox/EmailHandler.java
... | ... | @@ -217,6 +217,10 @@ |
217 | 217 |
|
218 | 218 |
author = User.findByEmail(senderAddress.getAddress()); |
219 | 219 |
|
220 |
+ if (author.isAnonymous()) { |
|
221 |
+ continue; |
|
222 |
+ } |
|
223 |
+ |
|
220 | 224 |
try { |
221 | 225 |
createResources(msg, author, errors); |
222 | 226 |
} catch (MailHandlerException e) { |
--- docs/technical/mailbox.md
+++ docs/technical/mailbox.md
... | ... | @@ -39,7 +39,7 @@ |
39 | 39 |
Yobi posts the fetched emails as an issue or a comment if possible. |
40 | 40 |
|
41 | 41 |
Mailbox determines the author by the sender's email address from 'From' header of |
42 |
-the email. |
|
42 |
+the email. Emails from the sender who is not a user of Yobi are ignored. |
|
43 | 43 |
|
44 | 44 |
Mailbox determines the projects by the detail parts, which comes after plus |
45 | 45 |
sign in local part, e.g. owner/project from yobi+owner/project@mail.com, of the |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?