imaprobotframeworkimaplibquoted-printable

Robot framework ImapLibrary: 'quoted-printable' is not a text encoding


I'm getting this LookupError when I try to use Get Links From Email keyword:

Open Mailbox  server=imap.googlemail.com  user=user@mail.com  password=pass ${proWelcomeMail} =    Wait for Email  recipient=${USER_EMAIL}  subject=Welcome
Open Link From Email  ${proWelcomeMail}
...
Close Mailbox

Output:

ImapLibrary . Get Links From Email ${proWelcomeMail}
LookupError: 'quoted-printable' is not a text encoding; use codecs.decode() to handle arbitrary codecs

Is there a workaround for this please?


Solution

  • You can change the library's code by yourself because it's not fixed by the maintainer. Change the line 135 in file init.py "decode('quoted-printable')" to "decode('utf-8')".