pilerimport does not skip folders

Issue #947 closed
Jan Novak created an issue

Hi,

i use kopano IMAP mail server and my import script looks like this:

/usr/local/bin/pilerimport -i [domain] -u mailarchiv  -p [pw] -r -P 993

First, i want only to import the INBOX, but pilerimport does import everything.

Cipher: ECDHE-RSA-AES256-GCM-SHA384
server cert:
     subject: /CN=[domain]
     issuer: /C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3

List of IMAP folders:
skipping => '"Public folders" [\Noselect \HasChildren]'
=> '"INBOX/failed-to-import" [\HasNoChildren]'
=> '"Junk E-Mail" [\Junk \HasNoChildren]'
=> '"Entw&APw-rfe" [\Drafts \HasNoChildren]'
=> '"Gesendete Objekte" [\Sent \HasNoChildren]'
=> '"Gel&APY-schte Objekte" [\Trash \HasNoChildren]'
=> '"Postausgang" [\HasNoChildren]'
=> '"INBOX" [\HasChildren]'
processing folder: "Postausgang"... found 0 messages
processing folder: "INBOX/failed-to-import"... found 0 messages
processing folder: "Gel&APY-schte Objekte"... found 0 messages
processing folder: "INBOX"... found 0 messages
processing folder: "Entw&APw-rfe"... found 0 messages
processing folder: "Junk E-Mail"... found 0 messages
processing folder: "Gesendete Objekte"... found 0 messages

Then i try this:

/usr/local/bin/pilerimport -i [domain] -u mailarchiv  -p [pw] -r -P 993  -x "Postausgang,"

but it is the same as above. Everything will be processed. Another (or the same) problem: I cannot move "failed to import mails" into my "INBOX/failed-to-import" Folder (with Parameter "-j"

bfo

Comments (11)

  1. Jan Novak reporter

    It it looks like this, that nobody has interest to fix this issue... i’m waiting more then one year .. nothing … i am a private user and had made also a donation, but nothing too… Not even a “thank you” …disappointing 😞

    bfo

  2. lui0r

    [UPDATE] Skipping Folders works, but not for Subdirectories and Directories with diacritics. I tried some Versions :

    pilerimport -o -i XXXXXXXXXXXX -u XXXXX -p XXXXXXXXXXXXX -P 993 -x 'Trash','Kalender','Kalender/Feiertage in Deutschland','Junk-E-Mail','Calendar','Drafts','Deleted Items','Entw&APw-rfe','Gel&APY-schte Elemente','Gel&APY-schte Elemente',
    

    Output:

    processing folder: "Kalender/Feiertage in Deutschland"... found 116 messagesprocessed:     116 [100%]SKIPPING FOLDER: Junk-E-Mailprocessing folder: Archiv... found 0 messagesprocessing folder: "Gel&APY-schte Elemente"... found 761 messagesprocessed:     877 [100%]
    

  3. Jan Novak reporter

    very bad, if all your (to excludeing) subfoders are under the Inbox and cannot be moved out of the inbox…

    bfo

  4. Janos SUTO repo owner

    Well, -x stands for skip folders. You may want to use -f INBOX to specify for importing INBOX only. Will you try this as well?

  5. Jan Novak reporter

    I think you haven’t understand the question. I know the -f switch. But with this switch, everything els - under the inbox folder - will be imported also.

    Like the most imap servers, my server has manually created subfolders only under the inbox. I want to skip exactly this folders folders, but not the inbox it self.

    bfo

  6. lui0r

    Ok, solved. The Problem were caused to due blanks in the Folder names. You have to use a single quote and a quotation mark ae.g. '"Gel&APY-schte Elemente"',

    SKIPPING FOLDER: "Kalender/Feiertage in Deutschland"
    
    SKIPPING FOLDER: "Gel&APY-schte Elemente"
    

    Thank you for your fast support!

    Sorry for hijacking this thread, but first i thougt i have the same problem

  7. Jan Novak reporter

    I didnt find any documentation, who describes this. How should i (we) know that?
    Also the question is, is piler skipps folder under the inbox?

    bfo

  8. Janos SUTO repo owner

    OK, let’s say you have the following imap folder structure:

    INBOX
    INBOX/folder1
    INBOX/folder2
    INBOX/folder3
    

    if you want to skip INBOX/folder2 only, but import INBOX/folder1 and folder3, then specify -x INBOX/folder2,

  9. Log in to comment