-
assigned issue to
- changed status to resolved
Importing email
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)
-
repo owner -
reporter - changed status to new
I switched to /tmp (everybody have a write permission), when i try to import email.
(i readed the documentation...)
-
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.
-
reporter Off course, file had 0600 permission.
But i start pilerimport as root.
Why not read source file before switch to unprivileged user?
-
reporter But, the main question, if piler can't read email, why not say this?
-
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.
-
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!
- Log in to comment
please be sure to cd to directory where piler user has write permissions.