problem with special characters in password with pilerimport
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)
-
repo owner -
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.
-
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?
-
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.
-
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
-
reporter Perfect! It works flawlessly! Thank you.
-
repo owner - changed status to resolved
- Log in to comment
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'