I have a simple question which I can't seem to find the answer to: If I press the junk button, a junk message is moved to the junk folder. It is also submitted for learning.

But when I move the message to the junk folder manually, is it still submitted for learning?

This is relevant when using my Zimbra account on my phone with IMAP; I don't have a junk button there.

04-19-2011, 05:37 AM

Klug

AFAIK, in 6.0.9, moving the message to "Junk" is enough (that was not the case in the old days).

04-19-2011, 05:53 AM

halfgaar

I just updated my profile, I'm running version 6.0.10 :) (soon to upgrade to 7)

I see that in /var/log/mail.log there are entries like:

Code:

postfix/smtp[24261]: B0BDF182036: to=<spam.xxxxx@halfgaar.net>

So I guess I had to look there before asking. I will tail that log next time I move a spam message to junk.

04-19-2011, 07:02 AM

Krishopper

You should also see a line with a little more detail in /opt/zimbra/log/mailbox.log when you move the message, also.

04-20-2011, 11:50 AM

ewilen

Moving a message to junk manually in ZWC, or via an IMAP client, ActiveSync, ZCO--any of these--will send a copy of it to the spam account for training. Likewise, moving a moving a message out of junk will send it to the ham account. (I think the sole exception is if you move it from junk directly into Trash.)

I got a new spam message to test with. I moved it to junk through IMAP.

It's trying, but no cigar:

Code:

2011-04-22 12:24:34,468 WARN [Junk-NotJunk-Handler] [] misc - exception occurred sending spam report spamreport: acct=wiebe@halfgaar.net mbox=3 id=56997 report=spam origIp=null
javax.mail.MessagingException: IOException while sending message;
nested exception is:
java.io.IOException: /opt/zimbra/store/0/3/msg/13/56997-65254.msg does not exist.
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:779)
at javax.mail.Transport.send0(Transport.java:191)
at javax.mail.Transport.send(Transport.java:120)
at com.zimbra.cs.service.util.SpamHandler.sendReport(SpamHandler.java:178)
at com.zimbra.cs.service.util.SpamHandler.reportLoop(SpamHandler.java:236)
at com.zimbra.cs.service.util.SpamHandler$1.run(SpamHandler.java:131)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.io.IOException: /opt/zimbra/store/0/3/msg/13/56997-65254.msg does not exist.
at com.zimbra.cs.store.BlobInputStream.<init>(BlobInputStream.java:144)
at com.zimbra.cs.store.BlobInputStream.<init>(BlobInputStream.java:96)
at com.zimbra.cs.store.file.FileBlobStore.getContent(FileBlobStore.java:330)
at com.zimbra.cs.store.file.FileBlobStore.getContent(FileBlobStore.java:324)
at com.zimbra.cs.mime.MailboxBlobDataSource.getInputStream(MailboxBlobDataSource.java:56)
at javax.activation.DataHandler.writeTo(DataHandler.java:290)
at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1381)
at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:852)
at javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:452)
at com.sun.mail.handlers.multipart_mixed.writeTo(multipart_mixed.java:98)
at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:869)
at javax.activation.DataHandler.writeTo(DataHandler.java:302)
at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1381)
at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1742)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:737)
... 6 more