problem with special characters in password with pilerimport

Issue #61 resolved
Peter Molnar created an issue

I just wanted to import through IMAP and I revealed that special characters in password, such as '(' results a following error: sh: syntax error near unexpected token `('

Comments (7)

  1. Janos SUTO repo owner

    Does it work if you escape the ( character? Eg. pilerimport .... -p abce(123 or you may try to enclose the password between single quotes: -p 'abcde(123'

  2. Peter Molnar reporter

    I've tried it also, this was my first idea, sorry sorry for I didn't mention. In this case I have the usage of the pilerimport back as result. I am wondering what is the proper function of the -c <config file> switch? Can I put these switches as a variable or parameter in a particular file? Update: My fault, see the entry below.

  3. Peter Molnar reporter

    Sorry, the information above is not true. I made a mistake in the command line. The script started working but I can't login, the result: login failed, server reponse: A2 BAD Unexpected extra arguments to LOGIN

    Unfortunately I have no access for the server, to check what is happening. When I test it with a simple, but incorrect password the server gives me: login failed, server reponse: A2 NO Login failed: authentication failure

    I would like to use this server with port 993 and STARTTLS and self-signed certificate. Do you have any idea what would be the problem? Or should I install the certificate?

  4. Janos SUTO repo owner

    I think the ( character must be escaped in the IMAP command, too. I don't think it's a certificate related problem. I'll fix it soon.

  5. Janos SUTO repo owner

    I modified the imap login to enclose the password between quotes ("). You should download the latest master branch and/or update src/imap.c

  6. Log in to comment