From b412788e39b4c7afc23d94464bae38f4f71c0a60 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Wed, 1 Feb 2017 11:56:44 -0500 Subject: [PATCH] Make sure to refer to filenames when executing zip Fixes #4015 --- SoObjects/Mailer/SOGoMailObject.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SoObjects/Mailer/SOGoMailObject.m b/SoObjects/Mailer/SOGoMailObject.m index 5f543af38..674a39f4d 100644 --- a/SoObjects/Mailer/SOGoMailObject.m +++ b/SoObjects/Mailer/SOGoMailObject.m @@ -1028,7 +1028,7 @@ static BOOL debugSoParts = NO; fileName = [NSString stringWithFormat:@"%@/%@", spoolPath, name]; [body writeToFile: fileName atomically: YES]; - [zipTaskArguments addObject: name]; + [zipTaskArguments addObject: [NSString stringWithFormat: @"./%@", name]]; } // Zip files