pazz/alot — pull request #592 by jakeogh (2013-04-07 22:10:54+00:00)
Title: Gracefully handle reply and reply-to-all for self sent messages.

Patch alot/commands/thread.py so reply and reply to all handle the case where the user is replying to a self-sent message.

Example:

--Old Behavior------------------------

test message:

From jakeogh
To zzzuser1@doesnotexistk.com, zzzuser2@doesnotexistk.com, zzzuser3@doesnotexistk.com
Cc zzzccuser@doesnotexistk.com
Subject test using master alot

reply (r):

To: jakeogh
From: jakeogh
Subject: Re: test using master alot

Quoting jakeogh (2013-04-07 14:03:26)

reply-to-all (g):

Cc: zzzccuser@doesnotexistk.com
To: jakeogh , zzzuser1@doesnotexistk.com, zzzuser2@doesnotexistk.com, zzzuser3@doesnotexistk.com
From: jakeogh
Subject: Re: test using master alot

Quoting jakeogh (2013-04-07 14:03:26)

--New Behavior------------------------

test message:

From jakeogh
To zzzuser1@doesnotexistk.com, zzzuser2@doesnotexistk.com, zzzuser3@doesnotexistk.com
Cc zzzccuser@doesnotexistk.com
Subject test using alot with reply to self patch

reply (r):

To: zzzuser1@doesnotexistk.com, zzzuser2@doesnotexistk.com, zzzuser3@doesnotexistk.com
From: jakeogh
Subject: Re: test using alot with reply to self patch

Quoting jakeogh (2013-04-07 14:03:26)

reply-to-all (g):

Cc: zzzccuser@doesnotexistk.com
To: zzzuser1@doesnotexistk.com, zzzuser2@doesnotexistk.com, zzzuser3@doesnotexistk.com
From: jakeogh
Subject: Re: test using alot with reply to self patch

Quoting jakeogh (2013-04-07 14:03:26)