imbox
imbox copied to clipboard
move message-modifying methods from Imbox to Struct
To be more "for humans". 😄 Would you accept a PR implementing this?
Also, having done this, update a Struct's fields whenever such a method is called.
@martinrusev having made this change, Struct (aka Message) could have lots of properties for flagged, read, unread, etc.
>>> messages = Imbox.messages()
>>> m = messages[0]
>>> m
Message(sent_from='[email protected]'
date_sent=datetime.datetime(2018, 7, 27, 14, 37)
subject='thank you for merging my PR'
body='')
>>> m.read
True
>>> m.unread
False
>>> m.mark_as_unread()
>>> m.unread
True
@martinrusev checking in with you on this. Would you accept a PR implementing this?
@zevaverbach that will be a good addition.
was there a PR ?`