Importing email

Issue #7 resolved
János Csárdi-Braunstein created an issue

I want to import old email from existing mailbox, but i can't this, because pilar say this for every email: {{{ discarding duplicate message: file.eml }}}

In syslog i saw this: {{{ pilerimport[21093]: 400000004fbcc18e1984862cd833d6545e2c: from= meebottoua orangemail es, to= * , subj= , message-id=null, reference= pilerimport[21093]: 400000004fbcc18e1984862cd833d6545e2c: found message_id:null(4) null=0 }}}

(i replace "to", "from" and "subject" value to *)

Comments (7)

  1. János Csárdi-Braunstein reporter
    • changed status to new

    I switched to /tmp (everybody have a write permission), when i try to import email.

    (i readed the documentation...)

  2. Janos SUTO repo owner
    • changed status to open

    Hmm... please show me the following:

    ls -ld .

    ls -la file.eml

    I suspect that file.eml might have 600 permissions.

  3. János Csárdi-Braunstein reporter

    Off course, file had 0600 permission.

    But i start pilerimport as root.

    Why not read source file before switch to unprivileged user?

  4. Janos SUTO repo owner

    pilerimport simply doesn't need root privileges. All the special power it needs to read the piler.conf and write to the store directories only. None of these requires elevated privileges.

    However you have a point about the missing complaint, so I'll modify pilerimport to report a proper error message in this case.

  5. Janos SUTO repo owner

    OK, this is the trivial fix, try the following diff, and I will push it to the git repo in a minute. Thanks for the bug report!

  6. Log in to comment