aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/server
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-10-04 14:32:20 +0300
committerGravatar Vitaly Takmazov2018-10-04 14:32:20 +0300
commitb44d270bcda681e25445a00a4ca1243aa692142e (patch)
treec7c7172af73b8aeca3b8af5866d9b378b317f803 /juick-server/src/main/java/com/juick/server
parentd7762b910be0a0ba9869bf19f5d7bfdf6d23601a (diff)
Email: log Return-Path
Diffstat (limited to 'juick-server/src/main/java/com/juick/server')
-rw-r--r--juick-server/src/main/java/com/juick/server/api/Service.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-server/src/main/java/com/juick/server/api/Service.java b/juick-server/src/main/java/com/juick/server/api/Service.java
index 0da5d46c4..2cbf2d112 100644
--- a/juick-server/src/main/java/com/juick/server/api/Service.java
+++ b/juick-server/src/main/java/com/juick/server/api/Service.java
@@ -59,7 +59,7 @@ public class Service {
public void processMail(InputStream data) throws Exception {
if (UserUtils.getCurrentUser().getName().equals(serviceUser)) {
MimeMessage msg = new MimeMessage(session, data);
- logger.info("got msg {}", msg.toString());
+ logger.info("got msg with return path {}", msg.getHeader("Return-Path")[0]);
String from = msg.getFrom() == null || msg.getFrom().length > 1 ? ((InternetAddress) msg.getSender()).getAddress()
: ((InternetAddress) msg.getFrom()[0]).getAddress();