From f96eb4d3ca32a916ecc63221d022014f736cd94b Mon Sep 17 00:00:00 2001 From: smizrahi Date: Wed, 5 Jun 2024 16:28:43 +0200 Subject: [PATCH] fix(chore): Remove check on -p option to sogo-ealarms-notify as the SMTP Master account has been implemented --- Tools/SOGoEAlarmsNotifier.m | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Tools/SOGoEAlarmsNotifier.m b/Tools/SOGoEAlarmsNotifier.m index 0b8247891..9062686bf 100644 --- a/Tools/SOGoEAlarmsNotifier.m +++ b/Tools/SOGoEAlarmsNotifier.m @@ -171,13 +171,6 @@ owner = [SOGoUser userWithLogin: ownerId]; mailer = [SOGoMailer mailerWithDomainDefaults: [owner domainDefaults]]; - if (!staticAuthenticator && [mailer requiresAuthentication]) - { - fprintf (stderr, "Specify the file containing credentials to use for SMTP AUTH.\n" - "Use -h for help.\n"); - return; - } - localContext = [WOContext context]; [localContext setActiveUser: owner]; app = [[WOApplication alloc] initWithName: @"SOGo"]; @@ -278,6 +271,7 @@ withMetadata: metadata]; max = [alarms count]; + for (count = 0; count < max; count++) [self _processAlarm: [alarms objectAtIndex: count] withOwner: [[metadata objectAtIndex: count] objectForKey: @"owner"] @@ -287,7 +281,7 @@ // events or tasks for example). This will also delete any email // alarms that are no longer relevant max = [metadata count]; - + for (count = 0; count < max; count++) { d = [metadata objectAtIndex: count];