Package: robotframework-imaplibrary2
IMAP email testing library for Robot Framework==============================================DocsIntroductionNote: This is a fork ofhttps://github.com/rickypc/robotframework-imaplibraryImapLibrary2 is a IMAP email testing library for [RobotFramework](http://goo.gl/lES6WM).More information about this library can be found in the [KeywordDocumentation](https://lasselindqvist.github.io/robotframework-imaplibrary2/doc/ImapLibrary2.html).If you are interested to contribute back to this project, please seeContributingsection.Examples*** Settings ***

Library    ImapLibrary2



*** Test Cases ***

Email Verification

    Open Mailbox    host=imap.domain.com    user=email@domain.com    password=secret

    ${LATEST} =    Wait For Email    sender=noreply@domain.com    timeout=300

    ${HTML} =    Open Link From Email    ${LATEST}

    Should Contain    ${HTML}    Your email address has been updated

    Close Mailbox



Multipart Email Verification

    Open Mailbox    host=imap.domain.com    user=email@domain.com    password=secret

    ${LATEST} =    Wait For Email    sender=noreply@domain.com    timeout=300

    ${parts} =    Walk Multipart Email    ${LATEST}

    :FOR    ${i}    IN RANGE    ${parts}

    \\    Walk Multipart Email    ${LATEST}

    \\    ${content-type} =    Get Multipart Content Type

    \\    Continue For Loop If    '${content-type}' != 'text/html'

    \\    ${payload} =    Get Multipart Payload    decode=True

    \\    Should Contain    ${payload}    your email

    \\    ${HTML} =    Open Link From Email    ${LATEST}

    \\    Should Contain    ${HTML}    Your email

    Close MailboxInstallationUsingpipThe recommended installation method is usingpip:pip install robotframework-imaplibrary2The main benefit of usingpipis that it automatically installs alldependencies needed by the library. Other nice features are easyupgrading and support for un-installation:pip install --upgrade robotframework-imaplibrary2

pip uninstall robotframework-imaplibrary2Notice that using--upgradeabove updates both the library and all itsdependencies to the latest version. If you want, you can also install aspecific version:pip install robotframework-imaplibrary2==x.x.xProxy configurationIf you are behind a proxy, you can use--proxycommand line option orsethttp_proxyand/orhttps_proxyenvironment variables to configurepipto use it. If you are behind an authenticating NTLM proxy, you maywant to consider installingCNTMLto handlecommunicating with it.For more information about--proxyoption and using pip with proxiesin general see:http://pip-installer.org/en/latest/usage.htmlhttp://stackoverflow.com/questions/9698557/how-to-use-pip-on-windows-behind-an-authenticating-proxyhttp://stackoverflow.com/questions/14149422/using-pip-behind-a-proxyManual installationIf you do not have network connection or cannot make proxy to work, youneed to resort to manual installation. This requires installing both thelibrary and its dependencies yourself.Make sure you have [Robot Frameworkinstalled](https://goo.gl/PFbWqM).Download source distributions (*.tar.gz) for the library:https://pypi.python.org/pypi/robotframework-imaplibrary2Download PGP signatures (*.tar.gz.asc) for signed packages.Find each public key used to sign the package:gpg --keyserver pgp.mit.edu --search-keys D1406DE7Select the number from the list to import the public keyVerify the package against its PGP signature:gpg --verify robotframework-imaplibrary2-x.x.x.tar.gz.asc robotframework-imaplibrary2-x.x.x.tar.gzExtract each source distribution to a temporary location.Go to each created directory from the command line and install eachproject using:python setup.py installIf you are on Windows, and there are Windows installers available forcertain projects, you can use them instead of source distributions. Justdownload 32bit or 64bit installer depending on your system, double-clickit, and follow the instructions.Directory Layoutdoc/:Keyword documentationsrc/:   Python source codetest/:   Test filesutest/

:   Python unit testUsageTo write tests with Robot Framework and ImapLibrary, ImapLibrary must beimported into your Robot test suite.*** Settings ***

Library    ImapLibrary2SeeRobot Framework User Guidefor moreinformation.More information about Robot Framework standard libraries and built-intools can be found in the [Robot FrameworkDocumentation](http://goo.gl/zy53tf).Building Keyword DocumentationTheKeyword Documentationcan be found online,if you need to generate the keyword documentation, run:make docorpython -m robot.libdoc src/ImapLibrary2 doc/ImapLibrary2.htmlRun Unit Tests, and Test Coverage ReportTest the testing library, talking about dogfooding, let's run:make testDeploying to Pypipython setup.py sdist bdist_wheel

twine upload dist/*ContributingIf you would like to contribute code to Imap Library project you can doso through GitHub by forking the repository and sending a pull request.When submitting code, please make every effort to follow existingconventions and style in order to keep the code as readable as possible.Please also include appropriate test cases.That's it! Thank you for your contribution!LicenseCopyright (c) 2015-2016 Richard Huang.This library is free software, licensed under: [Apache License, Version2.0](https://goo.gl/qpvnnB).Documentation and other similar content are provided under [CreativeCommons Attribution-NonCommercial-ShareAlike 4.0 InternationalLicense](http://goo.gl/SNw73V).