Browse files

Remove dependency on mailbox, but annotate it if you try to run the demo

without it.
  • Loading branch information...
1 parent 88e9a1c commit 61dad0b7c371d0d525859a914c8ae8710ff21407 @aredridel committed Jun 13, 2011
Showing with 7 additions and 2 deletions.
  1. +7 −1 bin/smtpd
  2. +0 −1 package.json
View
8 bin/smtpd
@@ -3,7 +3,13 @@
var smtp = require('smtp')
var fs = require('fs')
var sys = require('sys')
-var mailbox = require('mailbox')
+try {
+ var mailbox = require('mailbox')
+} catch(e) {
+ console.log(e.message)
+ console.log("install mailbox with `npm install mailbox` to run this demo")
+ console.log(e.stack.join("\n"))
+}
var destination = new mailbox.Maildir('test')
View
1 package.json
@@ -3,5 +3,4 @@
, "description" : "SMTP daemon (and eventually client) library"
, "engines" : {"node": "0.4.x || 0.5.x"}
, "directories" : { "lib" : "./lib", "bin": "./bin" }
-, "dependencies": { "mailbox" : "*" }
}

0 comments on commit 61dad0b

Please sign in to comment.