mirror of
https://github.com/gnustep/libs-ec.git
synced 2025-02-21 02:41:11 +00:00
With debug, report each event having rules applied
This commit is contained in:
parent
68b560b62b
commit
8626bd1823
1 changed files with 5 additions and 2 deletions
|
@ -360,7 +360,7 @@ replaceFields(NSDictionary *fields, NSString *template)
|
||||||
- (void) smtpClient: (GSMimeSMTPClient*)client mimeUnsent: (GSMimeDocument*)doc
|
- (void) smtpClient: (GSMimeSMTPClient*)client mimeUnsent: (GSMimeDocument*)doc
|
||||||
{
|
{
|
||||||
failEmail++;
|
failEmail++;
|
||||||
NSLog(@"Message dropped on SMTP client shutdown: %@", doc);
|
NSLog(@"Message dropped: %@", doc);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (GSMimeSMTPClient*) _smtp
|
- (GSMimeSMTPClient*) _smtp
|
||||||
|
@ -862,6 +862,10 @@ replaceFields(NSDictionary *fields, NSString *template)
|
||||||
NSUInteger dayOfWeek = 0;
|
NSUInteger dayOfWeek = 0;
|
||||||
NSUInteger i;
|
NSUInteger i;
|
||||||
|
|
||||||
|
if (YES == debug)
|
||||||
|
{
|
||||||
|
NSLog(@"Apply %u rules to %@", (unsigned)[rulesArray count], event);
|
||||||
|
}
|
||||||
for (i = 0; i < [rulesArray count]; i++)
|
for (i = 0; i < [rulesArray count]; i++)
|
||||||
{
|
{
|
||||||
NSDictionary *times;
|
NSDictionary *times;
|
||||||
|
@ -1066,7 +1070,6 @@ replaceFields(NSDictionary *fields, NSString *template)
|
||||||
[event->m setObject: match forKey: @"Match"];
|
[event->m setObject: match forKey: @"Match"];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
found = YES;
|
found = YES;
|
||||||
s = [NSString stringWithFormat: @"%u", (unsigned)i];
|
s = [NSString stringWithFormat: @"%u", (unsigned)i];
|
||||||
[event->m setObject: s forKey: @"Position"];
|
[event->m setObject: s forKey: @"Position"];
|
||||||
|
|
Loading…
Reference in a new issue