{"id":24534,"library":"robotframework-imaplibrary2","title":"Robot Framework IMAPLibrary2","description":"IMAPLibrary2 is a Robot Framework test library for testing IMAP email functionalities, such as fetching, deleting, and verifying emails. The current version is 0.4.11, with infrequent releases.","status":"active","version":"0.4.11","language":"python","source_language":"en","source_url":"https://github.com/lasselindqvist/robotframework-imaplibrary2","tags":["robot-framework","test-library","imap","email-testing"],"install":[{"cmd":"pip install robotframework-imaplibrary2","lang":"bash","label":"pip install robotframework-imaplibrary2"}],"dependencies":[],"imports":[{"note":"In Robot Framework, the library is imported by name, not Python module path. Use 'Library    IMAPLibrary2' in .robot files.","symbol":"IMAPLibrary2","correct":"IMAPLibrary2"}],"quickstart":{"code":"*** Settings ***\nLibrary    IMAPLibrary2\n\n*** Test Cases ***\nOpen Mailbox And Check Latest Email\n    Open Mailbox    host=imap.example.com    user=${USER}    password=${PASSWORD}\n    ${latest} =    Wait For Email    timeout=30\n    Should Be Equal    ${latest.subject}    Hello World","lang":"robot","description":"Basic Robot Framework test that opens an IMAP mailbox and waits for an email."},"warnings":[{"fix":"Use 'user' in Open Mailbox call.","message":"The library keyword 'Open Mailbox' uses 'user' parameter, not 'username'. Many users mistakenly use 'username'.","severity":"gotcha","affected_versions":"all"},{"fix":"Pass timeout as seconds, e.g., timeout=30 for 30 seconds.","message":"Timeouts in 'Wait For Email' are in seconds, not milliseconds. Common mistake is to pass a value that is too small.","severity":"gotcha","affected_versions":"all"},{"fix":"Use 'ssl=True' for default IMAPS port 993, or specify 'port=993'.","message":"The 'Open Mailbox' keyword's 'port' parameter is deprecated; use 'ssl' parameter instead if needed.","severity":"deprecated","affected_versions":">=0.4.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'pip install robotframework-imaplibrary2' and ensure Robot Framework is installed (pip install robotframework).","cause":"Robot Framework cannot find the library because it's not installed or Robot Framework is not aware of the installed libraries.","error":"ImportError: No module named IMAPLibrary2"},{"fix":"Avoid using 'id', 'type', 'list', etc. as variable names or quoted values.","cause":"Using a reserved keyword or variable name like 'id' or 'type' as argument values may cause collision with Python builtins.","error":"TypeError: 'int' object is not callable"},{"fix":"Set environment variable 'IMAPLIB2_SSL_VERIFY' to '0' to disable verification, or use a trusted certificate.","cause":"The library uses default SSL context which may reject self-signed certificates.","error":"Connection to IMAP server failed: [SSL: CERTIFICATE_VERIFY_FAILED]"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}