summaryrefslogtreecommitdiff
path: root/client/modules/Gmail.py
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2014-10-06 16:52:53 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2014-10-06 16:52:53 +0200
commit2b1e8411ab5eaa7e1349b78d03270ab02ae2950d (patch)
treeed914cbf8964bbe26ba28e80589f4c289b3fac3a /client/modules/Gmail.py
parent890a5798fcf7f9b9dc06529aa4bc7fe903d7ca1a (diff)
downloadjasper-client-2b1e8411ab5eaa7e1349b78d03270ab02ae2950d.tar.gz
jasper-client-2b1e8411ab5eaa7e1349b78d03270ab02ae2950d.zip
Fix flake8 style nits
Diffstat (limited to 'client/modules/Gmail.py')
-rw-r--r--client/modules/Gmail.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/client/modules/Gmail.py b/client/modules/Gmail.py
index 001cf9c..83ed3bd 100644
--- a/client/modules/Gmail.py
+++ b/client/modules/Gmail.py
@@ -3,7 +3,6 @@ import imaplib
import email
import re
from dateutil import parser
-from app_utils import *
WORDS = ["EMAIL", "INBOX"]
@@ -51,7 +50,8 @@ def fetchUnreadEmails(profile, since=None, markRead=False, limit=None):
Fetches a list of unread email objects from a user's Gmail inbox.
Arguments:
- profile -- contains information related to the user (e.g., Gmail address)
+ profile -- contains information related to the user (e.g., Gmail
+ address)
since -- if provided, no emails before this date will be returned
markRead -- if True, marks all returned emails as read in target inbox
@@ -93,7 +93,8 @@ def handle(text, mic, profile):
Arguments:
text -- user-input, typically transcribed speech
mic -- used to interact with the user (for both input and output)
- profile -- contains information related to the user (e.g., Gmail address)
+ profile -- contains information related to the user (e.g., Gmail
+ address)
"""
try:
msgs = fetchUnreadEmails(profile, limit=5)