Skip to content

Commit

Permalink
Fix bug (matryer#487)
Browse files Browse the repository at this point in the history
* Fix bug case sensitive

* Update version
  • Loading branch information
Andros Fenollosa authored and tresni committed Jul 19, 2016
1 parent e07b873 commit 7e232d3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Email/offlineimap-notification.1s.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# - * -coding: utf - 8 - * -
#
# <bitbar.title>Offlineimap Checker and notification</bitbar.title>
# <bitbar.version>v1.0</bitbar.version>
# <bitbar.version>v1.1</bitbar.version>
# <bitbar.author>Andros Fenollosa</bitbar.author>
# <bitbar.author.github>tanrax</bitbar.author.github>
# <bitbar.desc>Alert new emails and displays inbox count</bitbar.desc>
Expand Down Expand Up @@ -53,9 +53,9 @@ def get_fields(path_mail):
mail_subject_temp = False
f = open(path_mail, 'r')
for line in f:
mail_from_temp = re.search('(?<=From\: )(.*)(?=)', line)
mail_to_temp = re.search('(?<=To\: )(.*)(?=)', line)
mail_subject_temp = re.search('(?<=Subject\: )(.*)(?=)', line)
mail_from_temp = re.search('(?<=[Ff]rom\: )(.*)(?=)', line)
mail_to_temp = re.search('(?<=[Tt]o\: )(.*)(?=)', line)
mail_subject_temp = re.search('(?<=[Ss]ubject\: )(.*)(?=)', line)
if mail_from_temp:
mail_from = mail_from_temp.group(1)
if mail_to_temp:
Expand Down

0 comments on commit 7e232d3

Please sign in to comment.