Skip to content

Indexing HTML emails

Gaute Hope edited this page Sep 29, 2015 · 6 revisions

By default Sup indexes the plain text parts of all emails. Many HTML emails come with an (indexable) plain text version, but some do not. In order to index those HTML-only emails, you must add a mime-decode hook that handles HTML attachments, see Viewing-Attachments#decoding-attachments. Once you have a mime-decode hook that handles HTML, not only will those HTML parts be indexed, they will be viewable in Sup when you open the message.

Adding a mime-decode hook does not cause your existing emails to be reindexed. In order to index your existing emails you must reindex (this deletes all your existing labels etc., have a look at backing up and restoring for how to restore your existing labels after wards): rm -rf ~/.sup/xapian && sup-sync ...keep in mind this can take hours to days depending on how much email you have.

Clone this wiki locally