Commit Graph

234 Commits

Author SHA1 Message Date
Martin Rusev
06aa4e054b Update README.rst 2018-07-26 14:47:02 +02:00
Martin Rusev
63bddbd73c Update README.rst 2018-07-26 14:45:34 +02:00
Martin Rusev
34149efed5 Merge pull request #129 from zevaverbach/encapsulate_generator
Created Message class to encapsulate the "messages" generator
2018-07-25 19:46:49 +02:00
73fafcb368 made Messages methods private, as well as uid_list. 2018-07-25 12:11:59 -04:00
8e26e92a39 Moved query_ids from Imbox to Messages.
Moved `fetch_list` to `Messages` and renamed `fetch_email_list`, moving assignment of uid_list to the constructor of `Messages`.

Moved `fetch_by_uid` from `Imbox` to a pure function in `parser` module.

Replaced call to `Imbox.fetch_list` with a call to `Messages` instead.

created `Messages` class, which encapsulates the generator `Messages.fetch_email_list`, while also implementing `__len__` to show how many emails match a given query, and `__iter__` to refresh the `fetch_email_list` generator when it's exhausted.  It also implements `__getitem__` to support indexing of the emails matching a query.  Messages requires the `connection` and `parser_policy` established in `Imbox` and accepts arbitrary keyword arguments, which it uses in the IMAP query as well as in the `__repr__`.
2018-07-25 11:48:19 -04:00
635d15441e shortened up the ImapTransport constructor, a couple of similar cleanups 2018-07-25 09:00:21 -04:00
55f64a1922 removed some unused args, renamed to avoid shadowing a name in the global scope. 2018-07-25 08:46:59 -04:00
Martin Rusev
a1801af56e Merge pull request #119 from sblondon/factorize-version
Reuse __version__ for the library version
2018-04-05 10:21:07 +02:00
Stephane Blondon
6a0da4b105 reuse __version__ for the library version 2018-04-04 18:27:27 +02:00
Martin Rusev
5d09b6f3e4 Merge pull request #117 from sblondon/fix-encoding-in-logger
Fix encoding in logger
2018-04-04 15:43:56 +02:00
Stephane Blondon
ecb62b585c refactoring: string formatting more readable 2018-03-21 18:31:08 +01:00
Stephane Blondon
cbb46ef078 fix decoding of sender e-mail if badly encoded 2018-03-21 18:24:59 +01:00
Stephane Blondon
79ce81aa9d fix spelling error 2018-03-19 20:56:22 +01:00
Martin Rusev
96ce737df5 Merge pull request #112 from wagner-certat/version
Expose version in library
2018-01-08 12:56:01 +01:00
Sebastian Wagner
a94682fc3c Expose version in library 2018-01-08 12:07:21 +01:00
martinrusev
85abe48c8c Update version 0.9.5 2017-12-05 19:08:59 +01:00
martinrusev
9956d182eb Update changelog 2017-12-05 18:56:09 +01:00
Martin Rusev
ef68d92021 Update README.rst 2017-11-30 23:01:03 +01:00
Martin Rusev
43a37818ab Merge pull request #108 from balsagoth/feature/starttls
Add starttls support
2017-11-30 23:00:36 +01:00
Martin Rusev
7b1bda6126 Merge pull request #109 from balsagoth/feature/query_improve
add date__on to query and some other improvments
2017-11-30 23:00:27 +01:00
Ivan Pereira
fe965e7d19 add date__on to query and some other improvments 2017-11-30 21:42:16 +00:00
Ivan Pereira
cfca92df60 Update docs 2017-11-30 16:30:43 +00:00
Ivan Pereira
5664e9c48a Add suport for starttls 2017-11-30 16:14:17 +00:00
Martin Rusev
6c11c759c0 Merge pull request #107 from memanikantan/master
Query and mark emails as flagged/starred.
2017-10-29 09:46:36 +01:00
Manikantan Ramchandran
2f72aa13df typo fix 2017-10-28 17:17:49 +05:30
Manikantan Ramchandran
ffd4550524 added tests for flagged and unflagged queries 2017-10-28 17:16:44 +05:30
Manikantan Ramchandran
14c592136e added mark as flagged or starred feature 2017-10-28 16:59:11 +05:30
Manikantan Ramchandran
85025b34ff added flagged and unflagged query options 2017-10-28 16:58:05 +05:30
Martin Rusev
ed251ce999 Typo in Readme 2017-10-28 10:05:10 +02:00
Martin Rusev
6dc0e7b3f2 Merge pull request #106 from sblondon/master
add infos about how to list folders, delete a message...
2017-10-28 10:04:24 +02:00
Stéphane Blondon
79601bef7a add infos about how to list folders, delete a message and mark a message as read 2017-10-27 18:45:04 +02:00
Martin Rusev
88143c7a1b Merge pull request #105 from sblondon/master
Remove double-quotes around attachment filename
2017-10-13 16:32:01 +02:00
Stéphane Blondon
7c6cc2fb5f Remove double-quotes around attachment filename 2017-10-13 16:02:57 +02:00
Martin Rusev
5460bec4b5 Merge pull request #104 from sblondon/master
Messages filter can use date objects instead of stringified dates
2017-10-11 08:45:10 +02:00
Stéphane Blondon
ea4fd7d9ea Messages filter can use date objects instead of stringified dates 2017-10-10 21:52:05 +02:00
Martin Rusev
c64bbd73e9 Merge pull request #102 from sblondon/master
Add info about how to run tests
2017-10-10 08:11:20 +02:00
Stephane Blondon
acfb2adc47 Add info about how to run tests; remove python 3.2 from supported versions 2017-10-09 22:21:15 +02:00
Martin Rusev
050e2d8f7f Merge pull request #98 from GetHappie/parse-attachment-fix
Fix parsing attachment
2017-10-09 13:13:16 +02:00
Martin Rusev
6e0ee232fe Merge pull request #100 from sblondon/master
Fix attachment parsing when a semicolon character ends the Content-Di…
2017-10-06 15:26:23 +02:00
Stéphane Blondon
a490081e57 fix attachment parsing when a semicolon character ends the Content-Disposition line 2017-10-06 14:58:08 +02:00
Andrey Mozgunov
a8b5ce1c31 Update test case 2017-10-02 13:21:16 +03:00
Martin Rusev
7c5a639cc8 Merge pull request #96 from GetHappie/unicode-decode-fix
Fix UnicecodeDecodeError parsing email
2017-09-28 17:11:13 +02:00
Andrey Mozgunov
a78641c79a Fix parsing attachment 2017-09-28 14:12:35 +03:00
Andrey
7dad0edb72 Merge branch 'master' into unicode-decode-fix 2017-09-28 13:25:36 +03:00
Martin Rusev
2ed728485b Merge pull request #97 from GetHappie/inline-body-fix
Fix inline body parsing
2017-09-27 14:42:01 +02:00
Andrey Mozgunov
4559149dc0 Fix content disposition reading for python < 3.5 2017-09-27 13:42:43 +03:00
Andrey
0a98b960ac Merge branch 'master' into inline-body-fix 2017-09-26 15:56:14 +03:00
Andrey Mozgunov
ed86228e86 Fix inline body parsing 2017-09-26 15:51:34 +03:00
Andrey
eadddd6c0b Merge branch 'master' into unicode-decode-fix 2017-09-26 14:43:21 +03:00
Andrey Mozgunov
878c7991bf Fix UnicecodeDecodeError parsing email 2017-09-26 14:38:33 +03:00