Hello Sebastian,

On 2014-04-17 14:57, Sebastian Schieke wrote:

first of all, piler is a great piece of software. I think we're going to
use it as archive solution for our environment!

I'm glad that you like it :-)


There is only one thing, I can't get my head around: For testing I
started to "pilerimport" some mails directly form our mailsystem via
imap. This works really well for the inbox. But it's unwilling to import
the subfolders of an account. This is what I did:

piler@piler:~/tmp$ pilerimport -i some.mailserver.de -P 993 -u
[email protected] -p somepassword

When it comes to the subfolders, it says:

processing folder: shared/somefolder/sonstiges... found 1417 messages
cannot open: shared/somefolder/sonstiges-1.txt

I checked the permissions:

piler@piler:~/tmp$ ls -lisad .
17301508 4 drwxrwx--x 3 piler piler 4096 Apr 17 14:54 .

The funny thing is, when I create the folder first, and start the import
later on, it works well.

Are there any specific permission needed?

no, permissions are ok, however piler up to 0.1.24 forms the filename as folder + message serial number, but doesn't take into account if the folder
names have directory separators (ie. /).

So the solution is either to upgrade to the master branch or edit src/imap.c
and replace the following (in the ~137th line):

snprintf(filename, sizeof(filename)-1, "%s-%d.txt", folder, i);

with

snprintf(filename, sizeof(filename)-1, "%d-imap-%d.txt", getpid(), i);

then recompile it.

Janos


Reply via email to