Fix Travic CI failing checks
This commit is contained in:
parent
0b4e866663
commit
219c77606d
1 changed files with 4 additions and 6 deletions
|
@ -41,19 +41,17 @@ let server = net.createServer(socket => {
|
|||
// Losacno: Check for local requeue
|
||||
let status = match[2];
|
||||
log.verbose('POSTFIXBOUNCE', 'Checking message %s for local requeue (status: %s)', queueId, status);
|
||||
if ( status == 'sent' ) {
|
||||
if ( status === 'sent' ) {
|
||||
let queued = / relay=127\.0\.0\.1/.test(line) && line.match(/ queued as (\w+)\)/);
|
||||
if ( queued ) {
|
||||
log.verbose('POSTFIXBOUNCE', 'Marked message %s as locally requeued as %s', queueId, queued[1]);
|
||||
queueIds[queued[1]] = queueId;
|
||||
}
|
||||
return checkNextLine();
|
||||
} else {
|
||||
if ( queueId in queueIds ) {
|
||||
} else if ( queueId in queueIds ) {
|
||||
log.verbose('POSTFIXBOUNCE', 'Message %s was requeued from %s', queueId, queueIds[queueId]);
|
||||
queueId = queueIds[queueId];
|
||||
}
|
||||
}
|
||||
|
||||
campaigns.findMailByResponse(queueId, (err, message) => {
|
||||
if (err || !message) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue