problem importing from directory or .eml

Issue #290 resolved
Julien DELVECCHIO created an issue

Hello again Jsuto !

Whenever I try to import from a directory full of .eml messages I get the following : duplicate : Inbox/xxx-subject.eml (id: xxxxxx) processed : x (number of .eml files in the folder)

In the log I get, for each .eml file :

Apr 23 15:36:59 piler pilerimport[6071]: 400000005357c2050863ed240062f8a65d08: cannot open frame file: 400000005357c2050863ed240062f8a65d08.m

And when I hit the search button, I cannot see the mails on piler, I guess the import has failed but I cannot understand why.

Any help would be appreciated.

Comments (7)

  1. Julien DELVECCHIO reporter

    It seems to work, since I don't get any log errors, but nothing is written in syslog nor maillog, is there a log file where I can see these importations ?

    Do I have to wait for the webUI to be updated in order to find them in my search results?

  2. Janos SUTO repo owner

    pilerimport syslogs only errors, however it can display a counter to stdout. The ui is updated every 30 mins, so by now you should see some messages.

  3. Julien DELVECCHIO reporter

    Ok, it works, thanks.

    However I have another problem, I have multiple maildirs, and even maildirs in maildirs containing .eml files, that I want to import.

    When I run a script to import them from .eml files :

    #!/bin/bash
    
    find /tmp -name *.eml | tr -d ' ' > /tmp/emailfile
    
    for email in `cat /tmp/emailfile` ; do
        pilerimport -e $email
    done
    

    I get the error : cannot stat() xxxx xxx is the email who should be imported.

    Any recommendations?

    I've also tried using pilerimport -d, and for each messages I get the error : format a4 is redifined, this is strange !

  4. Janos SUTO repo owner

    Does $email exist? You may also try the -d approach, since it traverses directories, and read emails from them. The "format a4 is redefined" message comes from a plugin, eg. pdf2text or similar, you can ignore it.

  5. Log in to comment