start of mailroom bureau

workspace
Brendan Howell 8 years ago
parent 74d0f97f2f
commit 30f9ef8f45

@ -37,7 +37,7 @@ class MailRoom(Bureau):
"""
Takes a photograph using the document camera and sends it in an E-mail.
"""
self.send("PXphoto.")
photo = self.send("PXphoto.")
@add_command("rd", "Print full email")
def read(self, data):
@ -51,6 +51,7 @@ class MailRoom(Bureau):
"""
Deletes an email and moves it to the trash folder.
"""
self.imapserv.delete_messages((data))
pass
@add_command("s", "Mark as spam")
@ -59,6 +60,9 @@ class MailRoom(Bureau):
Flags an email as spam, mark as read and move it to the configured SPAM
folder.
"""
self.imapserv.copy((data), self.spamfolder)
# TODO: mark as read? with self.imapserv.add_flags?
self.delete(data)
pass
@add_command("re", "Reply with scan")
@ -67,6 +71,9 @@ class MailRoom(Bureau):
Reply to the sender of a mail with the PDF currently queued in the
document scanner.
"""
# look up short code to get IMAP ID
# extract the sender and title
# put together the reply
pass
@add_api("unread", "Get unread mails")

Loading…
Cancel
Save