Martin Rusev
16a05e15e5
Merge pull request #136 from zevaverbach/stubs
...
Stubs!
2018-07-27 10:37:08 +02:00
dfca46886f
filled in stub files
2018-07-26 15:30:02 -04:00
6d527a2f1d
added type hint stubs for all modules
2018-07-26 15:24:20 -04:00
80d6104387
conflict
2018-07-26 15:08:08 -04:00
Martin Rusev
0464a5a74d
Merge pull request #134 from zevaverbach/126_128_130
...
Added flags to messages, moved classes out of __init__.py, and documented that the inbox is where Imbox.messages are from without any folder argument.
2018-07-26 21:06:51 +02:00
5b27fa1b76
removed errant dash that was causing Travis-CI to fail
2018-07-26 11:06:48 -04:00
9cffb51a81
Added missing documentation for all supported query keyword arguments. Fixes #124 . Added Pycharm directory to .gitignore.
...
Fixed var names in documentation of query keywords
moved Messages and Imbox to their own modules, imported Imbox.imbox into __init__.py and put it in __all__. fixes #130 .
clarified in documentation and Imbox.messages logging that, unless a folder is specified in the kwargs to Imbox.messages, the returned messages will be from the inbox. In the documentation this is accomplished exclusively by the var names. fixes #128 .
amended `8df7d7c` to reflect manual changes made to `README.rst` in current master, but also added `inbox_` to several var names to make that explicit in the documentation. Added flags to messages returned by `fetch_email_by_uid`, using the new function `parse_flags` in `parser.py`. Fixes #126 .
added TODO back into query.py
2018-07-26 10:50:10 -04:00
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
2838639bfa
conflict in .gitignore
2018-07-25 14:25:14 -04: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
71942a69e8
fixed var names in documentation of query keywords
2018-07-25 08:27:40 -04:00
b4cb03e145
added Pycharm directory to .gitignore
2018-07-25 08:24:05 -04:00
b53a1e6837
Added missing documentation for all supported query keyword arguments. Fixes #124 .
2018-07-25 08:22:50 -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