Skip to content

Commit

Permalink
Support quit for postfix_io
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelWaldvogel committed Jul 24, 2018
1 parent e1d89b4 commit 9b73860
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xclib/postfix_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ def read_request(cls, infd, outfd):
line = infd.readline()
if not line:
break
match = re.match('^get ([^\000- @%]+)@([^\000- @%]+)\r?\n$', line)
line = line.rstrip("\r\n")
match = re.match('^get ([^\000- @%]+)@([^\000- @%]+)$', line)
if match:
yield ('isuser',) + match.group(1,2)
elif line == 'quit':
Expand Down

0 comments on commit 9b73860

Please sign in to comment.