implemented issue https://github.com/globaleaks/GlobaLeaks/issues/319

@hellais can you please review this?