undisclosed-recipients@no.domain

Issue #743 closed
Marcel Bischoff created an issue

Since setting up Piler 1.2.0 from scratch, I get quite a lot of those "messages" in the list:

Screen Shot 2016-11-02 at 14.07.35.png

Selecting them does not display anything. Downloading the EML file results in the following inside of the file:

if allof (spamtest, not address :all :is :iscontact "From" "") {
  fileinto "Junk E-mail";
  stop;
}

Comments (8)

  1. Janos SUTO repo owner

    This looks like a sieve rule. You should feed pilerimport only with emails, not other files.

  2. Marcel Bischoff reporter

    This is probably due to Kerio Connect storing all kinds of metadata inside the message folders. I really don't like this software. It's not doing things the way they are supposed to be.

    How would I clean up those emails programmatically with a one time command?

  3. eXtremeSHOK

    @herrbischoff

    Im pretty sure I can write a custom script to correctly export the kerio connect emails and then mass import them to piler.

  4. Janos SUTO repo owner

    The parser skips files shorter than 100 bytes. Unfortunately this file is 101 bytes just passing this test. However, it's probably true that any emails under 200 bytes are not real emails. To check this hypothesis run the following query:

    select id, piler_id, from, subject, size from metadata where size<200;

    If you conclude that they are indeed not emails, then set the retained column to a timestamp in the past (eg. yesterday), and finally run pilerpurge. Note that it will purge all emails having a retained value in the past! If you set the retention to 5-10 years, then it won't be a problem. However if you have set the retention to 100 years or so, then don't do it, because a 'bug' makes such values to overflow in the mysql column. (Not sure if it's a bug anyway)

  5. Marcel Bischoff reporter

    Sorry for the late response. I have tested your hypothesis successfully. It is indeed true that no email under 200 bytes is a real email.

  6. Marcel Bischoff reporter

    @extremeshok: Thanks, but that will not be necessary. I already had an export that needed to be imported.

  7. Janos SUTO repo owner

    OK, then it's safe to set the min_message_size variable to 200, and the next time you may skip the sieve stuff.

  8. Log in to comment