aboutsummaryrefslogtreecommitdiff
path: root/test/T750-gzip.sh
AgeCommit message (Collapse)Author
2022-01-27test: sanitize generated message files namesDavid Bremner
It is fragile to encode the generated names into tests, as it makes tests break when e.g. new tests are added. There is a possibility that this will hide certain failures; in that case meaningful filenames should be chosen for the generated messages.
2021-03-12test: clean up some extra whitespace.David Bremner
The extra space is mainly just untidy.
2021-01-15test/T750-gzip: don't compress the xapian databaseDavid Bremner
This causes mysterious failures in trying to detect if a database exists.
2019-10-12util: unreference objects referenced by the returned stream objDavid Bremner
We want freeing the returned stream to also free these underlying objects. Compare tests/test-filters.c in the gmime 3.2.x source, which uses this same idiom. Thanks to James Troup for the report and the fix.
2019-10-12test: known broken test file descriptor leak in gzip file openDavid Bremner
James Troup reported this bug in id:87pnjsf9q5.fsf@canonical.com
2019-05-03cli/notmuch-show: support gzipped filesDavid Bremner
This drops "file" from mime_node_context and just uses a local variable. It also uses the new gzip aware utility routines recently added to util/gmime-extra.c. The use of gzopen / gzfile in addition is a bit icky, but the choice is between that, and providing yet another readline implimentation that understands GMime streams.
2019-05-03lib/message_file: open gzipped filesDavid Bremner
Rather than storing the lower level stdio FILE object, we store a GMime stream. This allows both transparent decompression, and passing the stream into GMime for parsing. As a side effect, we can let GMime close the underlying OS stream (indeed, that stream isn't visible here anymore). This change is enough to get notmuch-{new,search} working, but there is still some work required for notmuch-show, to be done in a following commit.