mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-05 08:34:30 +00:00
fix(chore): Remove check on -p option to sogo-ealarms-notify as the SMTP Master account has been implemented
This commit is contained in:
@@ -171,13 +171,6 @@
|
|||||||
owner = [SOGoUser userWithLogin: ownerId];
|
owner = [SOGoUser userWithLogin: ownerId];
|
||||||
mailer = [SOGoMailer mailerWithDomainDefaults: [owner domainDefaults]];
|
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 = [WOContext context];
|
||||||
[localContext setActiveUser: owner];
|
[localContext setActiveUser: owner];
|
||||||
app = [[WOApplication alloc] initWithName: @"SOGo"];
|
app = [[WOApplication alloc] initWithName: @"SOGo"];
|
||||||
@@ -278,6 +271,7 @@
|
|||||||
withMetadata: metadata];
|
withMetadata: metadata];
|
||||||
|
|
||||||
max = [alarms count];
|
max = [alarms count];
|
||||||
|
|
||||||
for (count = 0; count < max; count++)
|
for (count = 0; count < max; count++)
|
||||||
[self _processAlarm: [alarms objectAtIndex: count]
|
[self _processAlarm: [alarms objectAtIndex: count]
|
||||||
withOwner: [[metadata objectAtIndex: count] objectForKey: @"owner"]
|
withOwner: [[metadata objectAtIndex: count] objectForKey: @"owner"]
|
||||||
@@ -287,7 +281,7 @@
|
|||||||
// events or tasks for example). This will also delete any email
|
// events or tasks for example). This will also delete any email
|
||||||
// alarms that are no longer relevant
|
// alarms that are no longer relevant
|
||||||
max = [metadata count];
|
max = [metadata count];
|
||||||
|
|
||||||
for (count = 0; count < max; count++)
|
for (count = 0; count < max; count++)
|
||||||
{
|
{
|
||||||
d = [metadata objectAtIndex: count];
|
d = [metadata objectAtIndex: count];
|
||||||
|
|||||||
Reference in New Issue
Block a user