about summary refs log tree commit homepage
path: root/script/public-inbox-edit
diff options
context:
space:
mode:
Diffstat (limited to 'script/public-inbox-edit')
-rwxr-xr-xscript/public-inbox-edit8
1 files changed, 4 insertions, 4 deletions
diff --git a/script/public-inbox-edit b/script/public-inbox-edit
index 2d3c4af4..240beb3a 100755
--- a/script/public-inbox-edit
+++ b/script/public-inbox-edit
@@ -93,7 +93,7 @@ Multiple messages with different content found matching
         }
 } else {
         my $eml = eml_from_path($file) or die "open($file) failed: $!";
-        my $mids = mids($eml->header_obj);
+        my $mids = mids($eml);
         find_mid($found, $_, \@ibxs) for (@$mids); # populates $found
         my $chash = content_hash($eml);
         my $to_edit = $found->{$chash};
@@ -214,9 +214,9 @@ W: possible message boundary splitting error
 
         # allow changing Received: and maybe other headers which can
         # contain sensitive info.
-        my $nhdr = $new_mime->header_obj;
-        my $ohdr = $old_mime->header_obj;
-        if (($nhdr->as_string eq $ohdr->as_string) &&
+        my $nhdr = $new_mime->header_obj->as_string;
+        my $ohdr = $old_mime->header_obj->as_string;
+        if (($nhdr eq $ohdr) &&
             (content_hash($new_mime) eq content_hash($old_mime))) {
                 warn "No change detected to:\n", show_cmd($ibx, $smsg);