"imap-ssl" option is missing in the "Import" function of the GUI

Issue #1232 closed
wireless82 created an issue

piler version: piler 1.3.11, build 1001, fresh (docker) install


Hi,

I’m testing the docker images everything is ok, great tool, I noticed in the Import function of the GUI that there is not an “imap-ssl” option (like decribed here for the enterprise edition https://mailpiler.com/import-over-the-gui/) and because of this the import from some providers - such as gmail.com - cannot be done (it works via pilerimport but, if I have understood, the GUI Import allows automatically and periodically importing… without it I have to set a cronjob or similar). If this is due to the free edition please sorry me and close the issues.

Regards!

ps: I added $config['ENABLE_IMPORT'] = 1; in the right file, but nothing. Maybe this line can be added in any case in the docker image.

Comments (8)

  1. Janos SUTO repo owner

    Get imapfetch.py from the master branch, it defaults to use ssl.

    Also you need to add */5 * * * * /usr/libexec/piler/import.sh to piler’s crontab.

  2. wireless82 reporter

    Hi, uhm I will try… I have seen the python code and just tested it replacing port 143 with 993, obtaining

    Processing "[Gmail]"
    Traceback (most recent call last):
    File "./imapfetch.py", line 188, in <module>
    main()
    File "./imapfetch.py", line 172, in main
    process_folder(conn, folder)
    File "./imapfetch.py", line 65, in process_folder
    n = int(data[0])
    ValueError: invalid literal for int() with base 10: b'[NONEXISTENT] Unknown Mailbox: [Gmail] (now in authenticated state) (Failure)'

    How the cronjob undestood what mail account it has to import and how it understood which are the new mails to import for the account?

    Seeing the code, if I undestood, I have to execute imapfetch.py with the right parameters for each email account, once; this parameters are saved in a table and import.sh use them to download new mails every 5 minutes?

    I’m missing something… with pilerimport I imported the mail but if I re-executed it, it seems to re-process all of them; and I dont know how to scheduling it…

  3. wireless82 reporter

    Ok, I’ve copied the imapfetch.py from the master but nothing, always has similar errors:

    Traceback (most recent call last):
    File "/usr/libexec/piler/imapfetch.py", line 193, in <module>
    main()
    File "/usr/libexec/piler/imapfetch.py", line 177, in main
    process_folder(conn, folder)
    File "/usr/libexec/piler/imapfetch.py", line 65, in process_folder
    n = int(data[0])
    ValueError: invalid literal for int() with base 10: b'[NONEXISTENT] Unknown Mailbox: [Gmail] (now in authenticated state) (Failure)'

  4. wireless82 reporter

    Hi, thanks for the fix…!!! it has been integrated in the docker version? I’m not expert about how import your commit in the container/code

  5. Log in to comment