diff options
author | Milan Crha <mcrha@redhat.com> | 2019-02-15 08:52:35 +0100 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2019-02-15 08:54:04 +0100 |
commit | 3d5a77e42c38e3f601e4e7c0377dffb6524b4b35 (patch) | |
tree | fc04dabdb73241bd0b525bb5026636418d42dd9b | |
parent | 57a8c560b8d8735ff16e53a2d8dff71c778d24fd (diff) | |
download | evolution-data-server-3d5a77e42c38e3f601e4e7c0377dffb6524b4b35.tar.gz |
Hide sendmail in Flatpak
It cannot access the host sendmail anyway, neither any custom binary
from the host.
-rw-r--r-- | src/camel/providers/sendmail/camel-sendmail-provider.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/camel/providers/sendmail/camel-sendmail-provider.c b/src/camel/providers/sendmail/camel-sendmail-provider.c index 252208baa..6450ad2c5 100644 --- a/src/camel/providers/sendmail/camel-sendmail-provider.c +++ b/src/camel/providers/sendmail/camel-sendmail-provider.c @@ -56,6 +56,9 @@ camel_provider_module_init (void) sendmail_provider.url_equal = (GEqualFunc) camel_url_equal; sendmail_provider.translation_domain = GETTEXT_PACKAGE; - camel_provider_register (&sendmail_provider); + /* Hide sendmail in Flatpak. It cannot access the host sendmail + anyway, neither any custom binary from the host. */ + if (!g_file_test ("/.flatpak-info", G_FILE_TEST_EXISTS)) + camel_provider_register (&sendmail_provider); } |