implement RFE 3238, 'GPG Mime Plugin exports contents to a tmpfile unnecessarily'
authorPaul <paul@claws-mail.org>
Fri, 1 Aug 2014 05:50:50 +0000 (06:50 +0100)
committerPaul <paul@claws-mail.org>
Fri, 1 Aug 2014 05:50:50 +0000 (06:50 +0100)
commitee35990fd9dac7032e86a107ae84c4ef22f0a444
tree02f16b14eb1c90f303ba269d2b106bc527e4d930
parent6e2217d5bb5722a5426158f49bcaed95005a28f6
implement RFE 3238, 'GPG Mime Plugin exports contents to a tmpfile unnecessarily'

The function gpgme_data_new_from_filepart() accepts a file stream with an offset.
This information is already available via the mimeinfo variable.
Instead of creating a new, temporary, file that contains some of the gpgme data, just use the original file as is.
This saves resources especially on flash disks that have a limited number of writes.

Patch by Kevin Day <thekevinday@gmail.com>
AUTHORS
src/gtk/authors.h
src/plugins/pgpcore/sgpgme.c