--- PerMsgStatus.pm.orig	2003-08-16 20:04:35.000000000 +0100
+++ PerMsgStatus.pm	2003-08-16 21:04:12.000000000 +0100
@@ -944,11 +944,14 @@
 
 	if (/^Content-Type: (\S+?\/\S+?)(?:\;|\s|$)/i) {
 	  $ctype = $1;
-          $ctypeistext = 1;
-	  if ($ctype =~ /^(text\/\S+|message\/\S+|multipart\/alternative)/i) {
-	    $ctypeistext = 1; next;
+          if ($self->{conf}->{decode_attachments}) {
+	    $ctypeistext = 1;
 	  } else {
-	    $ctypeistext = 0; next;
+	    if ($ctype =~ /^(text\/\S+|message\/\S+|multipart\/alternative)/i) {
+	      $ctypeistext = 1; next;
+	    } else {
+	      $ctypeistext = 0; next;
+	    }
 	  }
 	}
       }
