Skip to content

Commit

Permalink
chore(sogo-ealarms-notify): don't encode the MIME part twice
Browse files Browse the repository at this point in the history
  • Loading branch information
cgx committed Sep 3, 2021
1 parent 2feee5f commit a6a3f2f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Tools/SOGoEAlarmsNotifier.m
Expand Up @@ -112,7 +112,6 @@ - (NGMutableHashMap *) _headersForAlarm: (iCalAlarm *) alarm
[headers addObject: @"high" forKey: @"Importance"];
[headers addObject: @"1" forKey: @"X-Priority"];
[headers setObject: @"text/html; charset=\"utf-8\"" forKey: @"Content-Type"];
[headers setObject: @"quoted-printable" forKey: @"Content-Transfer-Encoding"];

identity = [owner primaryIdentity];
fullName = [identity objectForKey: @"fullName"];
Expand Down Expand Up @@ -153,7 +152,7 @@ - (void) _processAlarm: (iCalAlarm *) alarm
{
NGMutableHashMap *headers;
NSArray *parts;
NSData *content, *qpContent;
NSData *content;
SOGoMailer *mailer;
NSString *subject;
SOGoUser *owner;
Expand Down Expand Up @@ -208,9 +207,8 @@ - (void) _processAlarm: (iCalAlarm *) alarm
subject = [p getSubject];

headers = [self _headersForAlarm: alarm withOwner: owner withSubject: subject];
qpContent = [content dataByEncodingQuotedPrintable];
[self _sendMessageWithHeaders: headers
content: qpContent
content: content
to: [owner primaryIdentity]
withMailer: mailer];
}
Expand Down

0 comments on commit a6a3f2f

Please sign in to comment.