]> git.neil.brown.name Git - plato.git/commitdiff
sms: extend search to look in contexts of text messages
authorNeilBrown <neilb@suse.de>
Mon, 16 Dec 2013 02:24:17 +0000 (13:24 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 16 Dec 2013 02:24:17 +0000 (13:24 +1100)
sms/sendsms.py

index cd9768b516cefe155d4fd97c8f926d2e0f2d58e7..b586eae68b563d61af392dbac52c68f0dab05e68 100755 (executable)
@@ -1566,7 +1566,7 @@ class SendSMS(gtk.Window):
                         continue
                     if target == 'Recv' and e.source == 'LOCAL':
                         continue
-                    if patn and patn not in e.correspondent:
+                    if patn and patn not in e.correspondent and patn not in e.text:
                         if not self.book:
                             continue
                         n = book_name(self.book, e.correspondent)