IMAP Import with folders

Issue #841 closed
Nico Heggemann created an issue

Hello i try to import from a IMAP Server with Subfolders. I see the Mails as Auditor but not as the User with the Email Adress i imported. I used this command : pilerimport -i Server -u Emailadress -p Passwort -R What can i do ?

Is it possible to seperate the Folders for differend Users. I get an INBOX Folder from all Adresses where the Mails get togeter from different Accounts.

Comments (7)

  1. Nico Heggemann reporter

    this one is from the user that dont get hits:

    #!Aug 29 14:00:55 pilerserver piler-webui[1025]: sphinx query: 'SELECT id FROM main1,dailydelta1,delta1 WHERE folder IN (0) AND MATCH(' krank') ORDER BY sent DESC LIMIT 0,20 OPTION max_matches=1000' in 0.00 s, 0 hits, 0 total found

    this one is from the auditor account:

    #!Aug 29 14:06:05 pilerserver piler-webui[1026]: sphinx query: 'SELECT id FROM main1,dailydelta1,delta1 WHERE folder IN (1,2,3,4,5,6,7,8,9,10,13,11,12,11,12,12,13) AND MATCH(' krank') ORDER BY sent DESC LIMIT 0,20 OPTION max_matches=1000' in 0.00 s, 20 hits, 541 total found

  2. Janos SUTO repo owner

    OK. The problem is that the user has no folders assigned. I've been working on redesigning the imap folder support, and it will have a major rewrite, an incompatible change. When finished it will allow users to restrict the search to his imap folders. You may try the per_user_folder2 branch (see the branches menu) to get a preview. (Note that it's piler 1.2 code base). I suggest you to deploy that branch to a virtual machine or even docker, and take a look if it's what you need.

  3. Log in to comment