Last active
April 29, 2016 19:13
-
-
Save smfreegard/ff79d02aeb94b9065359 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var outbound = require('./outbound'); | |
var constants = require('./constants'); | |
exports.hook_queue = function (next, connection) { | |
var transaction = connection.transaction; | |
outbound.send_email(connection.transaction, function(retval, msg) { | |
switch(retval) { | |
case constants.ok: | |
return next(OK, msg); | |
break; | |
case constants.deny: | |
return next(DENY, msg); | |
break; | |
default: | |
return next(DENYSOFT, msg); | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment