File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 8
8
9
9
DEBUG = 1
10
10
11
- USERNAME = os .system ("echo $ENAME" ) # just the part before the @ sign, add yours here
12
- PASSWORD = os .system ("echo $EPASS" )
11
+ USERNAME = '"' + os .system ("echo $ENAME" )+ '"' # just the part before the @ sign, add yours here
12
+ PASSWORD = '"' + os .system ("echo $EPASS" )+ '"'
13
13
14
14
NEWMAIL_OFFSET = 0 # my unread messages never goes to zero, yours might
15
15
MAIL_CHECK_FREQ = 30 # check mail every 60 seconds
34
34
35
35
while True :
36
36
37
- newmails = int (feedparser .parse ("https://" + os . system ( "echo $ENAME" ) + ":" + os . system ( "echo $EPASS" ) + "@mail.google.com/gmail/feed/atom" )["feed" ]["fullcount" ])
37
+ newmails = int (feedparser .parse ("https://" + USERNAME + ":" + PASSWORD + "@mail.google.com/gmail/feed/atom" )["feed" ]["fullcount" ])
38
38
39
39
if DEBUG :
40
40
print "You have" , newmails , "new emails!"
You can’t perform that action at this time.
0 commit comments