Index: sbp_attach.module
===================================================================
--- sbp_attach.module	(revision 246)
+++ sbp_attach.module	(working copy)
@@ -379,7 +379,8 @@
   $help = $helpers[ $fileinfo['extension'] ];
   if (!$help) {
     // no text extraction function for this file extension defined
-    return NULL;
+	// We can still return at least the filename.
+ 	$content = basename($fname);
   }
 
   $fullpath = file_create_path($fname);
@@ -392,8 +393,8 @@
   $helper_command = preg_replace('/%file%/', $quoted_file_path, $help);
   $content = search_files_convert_to_utf8(shell_exec($helper_command));
   if (!$content) {
-    // no text in file
-    return NULL;
+    // no text in file. We can still return at least the filename
+	$content = basename($fname);
   }
 
   if (!$keys) {
