Look for attachments in the right place on macOS.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 17 Aug 2016 09:28:22 -0400
changeset 45 bda671007deb
parent 44 6bae4a26133f
child 46 981bac1188ab
Look for attachments in the right place on macOS.
archive_imessage.pl
--- a/archive_imessage.pl	Wed Aug 17 00:58:21 2016 -0400
+++ b/archive_imessage.pl	Wed Aug 17 09:28:22 2016 -0400
@@ -492,8 +492,8 @@
             my $mimetype = shift @output_attachments;
             my $domain = 'MediaDomain';
 
-            $fname =~ s#\A\~/#$homedir/# if (not $ios_archive);
-            $fname =~ s#\A\~/## if ($ios_archive);
+            $fname =~ s#\A\~/Library/Messages/## if (!$ios_archive);
+            $fname =~ s#\A\~/##;
             $fname =~ s#\A/var/mobile/## if ($ios_archive);
             my $hashedfname = archive_fname($domain, $fname);