aboutsummaryrefslogtreecommitdiff
path: root/test/corpora
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2023-01-05 20:02:06 -0400
committerDavid Bremner <david@tethera.net>2023-04-02 19:24:43 -0300
commita554690d6af0ac8cb55166a20efd0f449abde389 (patch)
treeb852e9fe4b19ad6dbf3d49b731d82253151b8c5a /test/corpora
parent3f5809bf28becbddfed9ff33d6f1242346904c23 (diff)
lib: index attachments with mime types matching index.as_text
Instead of skipping indexing all attachments, we check of a (user configured) mime type that is indexable as text.
Diffstat (limited to 'test/corpora')
-rw-r--r--test/corpora/indexing/fake-pdf:2,S11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/corpora/indexing/fake-pdf:2,S b/test/corpora/indexing/fake-pdf:2,S
new file mode 100644
index 00000000..60a7a47f
--- /dev/null
+++ b/test/corpora/indexing/fake-pdf:2,S
@@ -0,0 +1,11 @@
+From: David Bremner <david@tethera.net>
+To: example@example.com
+Subject: attachment content type
+Date: Thu, 05 Jan 2023 08:02:36 -0400
+Message-ID: <871qo9p4tf.fsf@tethera.net>
+MIME-Version: 1.0
+Content-Type: application/pdf
+Content-Disposition: attachment; filename=fake.pdf
+Content-Transfer-Encoding: base64
+
+dGhpcyBpcyBub3QgcmVhbGx5IFBERgo= \ No newline at end of file