diff options
author | Vitaly Takmazov | 2018-03-16 14:09:14 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-03-16 14:09:14 +0300 |
commit | 9a02c729ea1b3e908f582b235794bc6e28aab0f5 (patch) | |
tree | bf3bb7d631ceb0886756646aa04da182a39de76c /juick-server/src/main/java/com | |
parent | de166dbbf9490bad2e3b9dff8345876c5e26b7fb (diff) |
server: debug mail
Diffstat (limited to 'juick-server/src/main/java/com')
-rw-r--r-- | juick-server/src/main/java/com/juick/server/api/Post.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-server/src/main/java/com/juick/server/api/Post.java b/juick-server/src/main/java/com/juick/server/api/Post.java index cb2476c7..80ebe1a1 100644 --- a/juick-server/src/main/java/com/juick/server/api/Post.java +++ b/juick-server/src/main/java/com/juick/server/api/Post.java @@ -211,9 +211,9 @@ public class Post { @ResponseStatus(value = HttpStatus.OK) public void processMail(InputStream data) throws Exception { MimeMessage msg = new MimeMessage(session, data); + logger.info("got msg {}", msg.toString()); String from = msg.getFrom().length > 1 ? ((InternetAddress) msg.getSender()).getAddress() : ((InternetAddress) msg.getFrom()[0]).getAddress(); - logger.info("got msg from {}", from); User visitor = userService.getUserByEmail(from); if (!visitor.isAnonymous()) { |