Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Looks that Delete All Emails keyword does not work straight away #4

Open
gsikorski opened this issue Oct 13, 2016 · 2 comments
Open

Comments

@gsikorski
Copy link

If there is something in the mailbox, calling Delete All Emails soon after Open Mailbox keyword does not seem to do anything (calling Wait For Email after returns me emails straight away). It works though if I Delete All Emails and Close mailbox in the test teardown. I was trying to solve this issue with:

Open Mailbox
Delete All Emails
Close mailbox
Open Mailbox

but it looks the emails are still there :( Is there any lag/cached test data that may cause invalid state?

@mayribeirofernandes
Copy link

Pull Request #13 should fix this issue.

@vishal-yadav
Copy link

@rickypc Interested to know when the fix for this issue (and others) available upstream. The last pypi version is 0.3.0 which is released on 10 Nov, 2016. Also I am facing similar issue where deleting email at specific index doesn't work and stays in the inbox (tried with gmail). Using this keyword for deleting specific email. Snapshot below if I am missing something:

Get Payload From Multipart Email
    [Arguments]    ${subject}   ${timeout}
    ${LATEST} =    Wait For Email    timeout=${timeout}
    ...    subject=${subject}    status=UNSEEN
    ${parts} =    Walk Multipart Email    ${LATEST}

    :FOR    ${i}    IN RANGE    ${parts}
    \    Walk Multipart Email    ${LATEST}
    \    ${ctype} =    Get Multipart Content Type
    \    Continue For Loop If    '${ctype}' != 'text/html'
    \    ${payload} =    Get Multipart Payload    decode=True
    \    Exit For Loop
    Delete Email    ${LATEST}
    [Return]    ${payload}

Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants