Incorrect "From" and "Subject" titles in archive

Issue #39 resolved
Andrey Khlebnikov created an issue

Hello!

I'm new to mailpiler and just trying to understand is it suitable for my organization needs. I'm using preinstalled VM (date 2012.09.18) downloaded from mailpiler.org

Yesterday I've uploaded 70k+ emails into mailpiler's archive and found some issues:

1) the "From" field containing underscore ( _ ) incorrectly added in the archive, e.g. if real "From" is word1_word2@domain.com then archive will contain only word2@domain.com (as shown in the attached picture). As a result any expert search based on "From" value of "word1_word2@domain.com" will not return anything, while the same search on value of "word2@domain.com" will return required results.

2) the "Subject" field encoded in utf-8 in some cases is displayed incorrectly in search results (also shown in the same attached picture) The real "Subject" header value in this case is Subject: =?utf-8?B?UkU6ICDQodCj0J/QmiDQv9GA0L7RgdC40YIg0YDQsNGB0YHQvNC+0YLRgNC1?= =?utf-8?B?0YLRjCDQvdC+0LLQvtC1INC/0YDQtdC00LvQvtC20LXQvdC40LUg0LDQsdC+?= =?utf-8?B?0L3QtdC90YLQsA==?=

Comments (9)

  1. Andrey Khlebnikov reporter

    On the first picture I underlined the correct "From" with green line and thus erased the underscore symbol :-) The second picture is whithout any green/red lines

  2. Janos SUTO repo owner

    The underscore might be a separating character for sphinx. Can you try searching for the following:

    from: word1 word2@domain.com

    will it provide any search hit?

    The subject decoding might be fixed in the latest version, let's upgrade the web gui, and whether it's already fixed.

  3. Janos SUTO repo owner

    I've just updated the master branch to fix the underscore issue. Please download it, and after installing it, try sending similar emails, ie. word1_word2@yourdomain.com

  4. Andrey Khlebnikov reporter

    1) It seems now piler shows correct "From" addresses with underscore symbols. But it still can't search messages by such search string. If I try to search by address containing underscore in the "From" field the piler returns nothing. If the search string does not contain underscore then piler shows all found emails correctly.

    2) Also it seems now piler correctly shows subjects encoded with utf-8. At least I did not find any malformed subject in a newly created test archive containing almost 3k of emails

  5. Janos SUTO repo owner

    1) Have you sent new emails with word1_word2@yourdomain.com From: address? The fix applies to new emails only.

    2) OK

  6. Andrey Khlebnikov reporter

    I've reverted the VM snapshot, so piler's archive became empty. Then I've recompiled piler and tried to upload all the same messages as in the first time.

  7. Log in to comment