Skip to content

Commit

Permalink
Edge cases for iMessage owner addresses.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jun 21, 2016
1 parent 9f6c64a commit a3da2be
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions archive_imessage.pl
Expand Up @@ -806,6 +806,7 @@ sub lookup_address {
next if not defined $account;
my $address = $account;
$address =~ s/\A[ep]\://i or fail("Unexpected account format '$account'");
next if $address eq '';
dbgprint("distinct account: '$account' -> '$address'\n");
lookup_address($account, $address);
$default_account = $account if not defined $default_account; # oh well.
Expand Down Expand Up @@ -930,6 +931,7 @@ sub talk_gap {
flush_conversation(0);

$account = $default_account if (not defined $account); # happens on old SMS messages.
$account = $default_account if $account =~ /\A[ep]\:\Z/i;

$imessageuser = $account;
if ($imessageuser =~ s/\A([ep])\://i) {
Expand Down

0 comments on commit a3da2be

Please sign in to comment.