old_contents: var mongoose = require('mongoose');
  var bcrypt   = require('bcrypt-nodejs');
  
  // define the schema for our user model
  var emailSchema = mongoose.Schema ({
    recipient           : 	String,
    sender              : 	String,
    from                : 	String,
    subject             : 	String,
    bodyPlain           : 	String,
    strippedText        : 	String,
    strippedSignature   : 	String,
    bodyHtml            : 	String,
    strippedHtml        : 	String,
    attachmentCount     : 	Number,
    attachmentx         : 	String,
    messageHeaders      : 	String,
    contentIdMap        : 	String,
    btcAddress          :   String
  });
  module.exports = mongoose.model('Email', emailSchema);
  
new_contents: var mongoose = require('mongoose');
  var bcrypt   = require('bcrypt-nodejs');
  
  // define the schema for our user model
  var emailSchema = mongoose.Schema ({
    type                :   String, // "reward" for cced mails or "incoming"
    incomingEmail       :   String, // user_id where user_id@mailman.ninja
    to                  :   String,
    date                :   Date,
    cc                  :   String,
    recipient           : 	String,
    sender              : 	String,
    from                : 	String,
    subject             : 	String,
    subjectStripped     :   String, // subject with the "re", "fwd" stripped
    bodyPlain           : 	String,
    strippedText        : 	String,
    strippedSignature   : 	String,
    bodyHtml            : 	String,
    strippedHtml        : 	String,
    attachmentCount     : 	Number,
    attachmentx         : 	String,
    messageHeaders      : 	String,
    contentIdMap        : 	String,
    btcAddress          :   String, // generated address for the email
    callbackRes         :   Object // the callback when address is paid
  });
  module.exports = mongoose.model('Email', emailSchema);
  
subject: add callback, to, from, and type fields to mailSchema