[Users] [Bug 3238] New: GPG Mime Plugin exports contents to a tmpfile unnecessarily
noreply at thewildbeast.co.uk
noreply at thewildbeast.co.uk
Thu Jul 31 16:47:06 CEST 2014
http://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=3238
Bug ID: 3238
Summary: GPG Mime Plugin exports contents to a tmpfile
unnecessarily
Classification: Unclassified
Product: Claws Mail
Version: 3.10.1
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P3
Component: Plugins/Privacy
Assignee: users at lists.claws-mail.org
Reporter: thekevinday at gmail.com
Created attachment 1419
-->
http://www.thewildbeast.co.uk/claws-mail/bugzilla/attachment.cgi?id=1419&action=edit
A patch to claws-mail to use gpgme_data_new_from_filepart() instead of
gpgme_data_new_from_file().
(I didn't see a Plugins/PGPCore option, hopefully Plugins/Privacy is correct
enough.)
The code in src/plugins/pgpcore/sgpgme.c creates a tmpfile to populate the
gpgme_data_t variable.
The function currently being called is: gpgme_data_new_from_file().
The mime data already contains the e-mail file and the relevant mime
coordinates, so why not just use the function gpgme_data_new_from_filepart()?
Creating a tmpfile seems unneccessary and wastefull.
Especially when one runs off a flashdisk that has a limited number of writes!
Or perhaps on a read-only filesystem, when one needs to check e-mails but not
download any new ones?
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Users
mailing list