@@ -10,18 +10,11 @@ ImapLibrary is a IMAP email testing library for `Robot Framework`_.
10
10
11
11
More information about this library can be found in the `Keyword Documentation `_.
12
12
13
- Non-Backward Compatible Warning
14
- -------------------------------
15
-
16
- There are inevitable changes to parameter names that would not be backward compatible with
17
- release 0.1.4 downwards.
18
- These changes are made to comply with Python code style guide on `Method Names and Instance Variables `_.
19
-
20
13
Authoritative Repository
21
14
------------------------
22
15
23
- This repository is the new authoritative repository for robotframework-imaplibrary package,
24
- and I am also the new project maintainer for robotframework-imaplibrary project.
16
+ This repository is the new authoritative repository for ` robotframework-imaplibrary `_ package,
17
+ and I am also the new project maintainer for ` robotframework-imaplibrary `_ project.
25
18
26
19
I will go through the pull requests from old repository, as well as issue list.
27
20
I will try to accomodate as much as I could as time permit. **There is no need to re-post. **
@@ -31,46 +24,46 @@ If you are interested to contribute back to this project, please see **Contribut
31
24
Example
32
25
'''''''
33
26
34
- +----------------+----------------------------+---- ---------------------------+-----------------+
35
- | Open Mailbox | server =imap.googlemail .com | user=email@gmail .com | password=secret |
36
- +----------------+----------------------------+---- ---------------------------+-----------------+
37
- | ${LATEST} =
| Wait For
Mail | from_email [email protected] | timeout=300
|
38
- +----------------+----------------------------+---- ---------------------------+-----------------+
39
- | ${HTML} = | Open Link From Mail | ${LATEST} |
40
- +----------------+----------------------------+---- ---------------------------------------------+
41
- | Should Contain | ${HTML} | Your email address has been updated |
42
- +----------------+----------------------------+---- ---------------------------------------------+
43
- | Close Mailbox |
44
- +----------------------------------------------------------------------------------------------- +
27
+ +----------------+----------------------+ ---------------------------+-----------------+
28
+ | Open Mailbox | host =imap.domain .com | user=email@domain .com | password=secret |
29
+ +----------------+----------------------+ ---------------------------+-----------------+
30
+ | ${LATEST} =
| Wait For
Email | sender [email protected] | timeout=300
|
31
+ +----------------+----------------------+ ---------------------------+-----------------+
32
+ | ${HTML} = | Open Link From Email | ${LATEST} |
33
+ +----------------+----------------------+ ---------------------------------------------+
34
+ | Should Contain | ${HTML} | Your email address has been updated |
35
+ +----------------+----------------------+ ---------------------------------------------+
36
+ | Close Mailbox |
37
+ +-------------------------------------------------------------------------------------+
45
38
46
39
Multipart Email Example
47
40
'''''''''''''''''''''''
48
41
49
- +----------------+----------------------------+---- ---------------------------+-----------------+
50
- | Open Mailbox | server =imap.googlemail .com | user=email@gmail .com | password=secret |
51
- +----------------+----------------------------+---- ---------------------------+-----------------+
52
- | ${LATEST} =
| Wait For
Mail | from_email [email protected] | timeout=300
|
53
- +----------------+----------------------------+---- ---------------------------+-----------------+
54
- | ${parts} = | Walk Multipart Email | ${LATEST} |
55
- +----------------+----------------------------+---- ---------------------------+-----------------+
56
- | :FOR | ${i} | IN RANGE | ${parts} |
57
- +----------------+----------------------------+---- ---------------------------+-----------------+
58
- | \\ | Walk Multipart Email | ${LATEST} |
59
- +----------------+----------------------------+---- ---------------------------------------------+
60
- | \\ | ${content-type} = | Get Multipart Content Type |
61
- +----------------+----------------------------+---- ---------------------------------------------+
62
- | \\ | Continue For Loop If | '${content-type}' != 'text/html' |
63
- +----------------+----------------------------+---- ---------------------------+-----------------+
64
- | \\ | ${payload} = | Get Multipart Payload | decode=True |
65
- +----------------+----------------------------+---- ---------------------------+-----------------+
66
- | \\ | Should Contain | ${payload} | your email |
67
- +----------------+----------------------------+---- ---------------------------+-----------------+
68
- | \\ | ${HTML} = | Open Link From Mail | ${LATEST} |
69
- +----------------+----------------------------+---- ---------------------------+-----------------+
70
- | \\ | Should Contain | ${HTML} | Your email |
71
- +----------------+----------------------------+---- ---------------------------+-----------------+
72
- | Close Mailbox |
73
- +----------------------------------------------------------------------------------------------- +
42
+ +----------------+----------------------+ ---------------------------+-----------------+
43
+ | Open Mailbox | host =imap.domain .com | user=email@domain .com | password=secret |
44
+ +----------------+----------------------+ ---------------------------+-----------------+
45
+ | ${LATEST} =
| Wait For
Email | sender [email protected] | timeout=300
|
46
+ +----------------+----------------------+ ---------------------------+-----------------+
47
+ | ${parts} = | Walk Multipart Email | ${LATEST} |
48
+ +----------------+----------------------+ ---------------------------+-----------------+
49
+ | :FOR | ${i} | IN RANGE | ${parts} |
50
+ +----------------+----------------------+ ---------------------------+-----------------+
51
+ | \\ | Walk Multipart Email | ${LATEST} |
52
+ +----------------+----------------------+ ---------------------------------------------+
53
+ | \\ | ${content-type} = | Get Multipart Content Type |
54
+ +----------------+----------------------+ ---------------------------------------------+
55
+ | \\ | Continue For Loop If | '${content-type}' != 'text/html' |
56
+ +----------------+----------------------+ ---------------------------+-----------------+
57
+ | \\ | ${payload} = | Get Multipart Payload | decode=True |
58
+ +----------------+----------------------+ ---------------------------+-----------------+
59
+ | \\ | Should Contain | ${payload} | your email |
60
+ +----------------+----------------------+ ---------------------------+-----------------+
61
+ | \\ | ${HTML} = | Open Link From Email | ${LATEST} |
62
+ +----------------+----------------------+ ---------------------------+-----------------+
63
+ | \\ | Should Contain | ${HTML} | Your email |
64
+ +----------------+----------------------+ ---------------------------+-----------------+
65
+ | Close Mailbox |
66
+ +-------------------------------------------------------------------------------------+
74
67
75
68
Installation
76
69
------------
@@ -233,12 +226,12 @@ Documentation and other similar content are provided under `Creative Commons Att
233
226
.. _Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License : http://goo.gl/SNw73V
234
227
.. _Imap Library CLA : https://goo.gl/forms/QMyqXJI2LM
235
228
.. _Keyword Documentation : https://goo.gl/ntRuxC
236
- .. _Method Names and Instance Variables : https://goo.gl/NxxD0n
237
229
.. _pip : http://goo.gl/jlJCPE
238
230
.. _Robot Framework : http://goo.gl/lES6WM
239
231
.. _Robot Framework Documentation : http://goo.gl/zy53tf
240
232
.. _Robot Framework installed : https://goo.gl/PFbWqM
241
233
.. _Robot Framework User Guide : http://goo.gl/Q7dfPB
234
+ .. _robotframework-imaplibrary : https://goo.gl/q66LcA
242
235
.. |Docs | image :: https://img.shields.io/badge/docs-latest-brightgreen.svg
243
236
:target: https://goo.gl/ntRuxC
244
237
:alt: Keyword Documentation
0 commit comments