--- PerMsgStatus.pm.orig	2003-10-16 15:31:09.000000000 +0100
+++ PerMsgStatus.pm	2003-12-11 13:59:40.000000000 +0000
@@ -993,11 +993,15 @@
 
 	if (/^Content-Type: (\S+?\/\S+?)(?:\;|\s|$)/i) {
 	  $ctype = $1;
-	  if ($ctype =~ /^(text\/\S+|message\/\S+|multipart\/alternative|multipart\/related)/i)
-	  {
-	    $ctypeistext = 1; next;
+	  if ($self->{conf}->{decode_attachments}) {
+	    $ctypeistext = 1;
 	  } else {
-	    $ctypeistext = 0; next;
+	    if ($ctype =~ /^(text\/\S+|message\/\S+|multipart\/alternative|multipart\/related)/i)
+	    {
+	      $ctypeistext = 1; next;
+	    } else {
+	      $ctypeistext = 0; next;
+	    }
 	  }
 	}
       }
