]> granicus.if.org Git - mutt/commitdiff
There was bogus bug-fixing in the last fix.
authorThomas Roessler <roessler@does-not-exist.org>
Wed, 9 Jun 1999 17:17:26 +0000 (17:17 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Wed, 9 Jun 1999 17:17:26 +0000 (17:17 +0000)
recvattach.c

index 83612ca9b1c0e85c83328b7312163e7e23355ede..0fce02079f5ca2b36629b32bbe31dc672d095c2e 100644 (file)
@@ -744,14 +744,14 @@ copy_tagged_attachments (FILE *fpout, FILE *fpin, const char *boundary, BODY *bd
 {
   for (; bdy; bdy = bdy->next)
   {
-    if (bdy->parts)
-      copy_tagged_attachments (fpout, fpin, boundary, bdy->parts);
-    else if (bdy->tagged)
+    if (bdy->tagged)
     {
       fprintf (fpout, "\n--%s\n", boundary);
       fseek (fpin, bdy->hdr_offset, 0);
       mutt_copy_bytes (fpin, fpout, bdy->length + bdy->offset - bdy->hdr_offset);
     }
+    else if (bdy->parts)
+      copy_tagged_attachments (fpout, fpin, boundary, bdy->parts);
   }
 }