fix(chore): Remove check on -p option to sogo-ealarms-notify as the SMTP Master account has been implemented

This commit is contained in:
smizrahi
2024-06-05 16:28:43 +02:00
parent 0168ca56b2
commit f96eb4d3ca

View File

@@ -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];