Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Declare all instance variables

  • Loading branch information...
commit f5d953f91cf5ff4dfbab62dc0f6f0882e2d360e9 1 parent 154e70f
@smfreegard smfreegard authored
Showing with 17 additions and 0 deletions.
  1. +12 −0 connection.js
  2. +4 −0 mailbody.js
  3. +1 −0  transaction.js
View
12 connection.js
@@ -122,12 +122,22 @@ function setupClient(self) {
function Connection(client, server) {
this.client = client;
this.server = server;
+ this.remote_ip = null;
+ this.remote_host = null
+ this.remote_port = null;
+ this.remote_info = null;
this.current_data = null;
this.current_line = null;
+ this.greeting = null;
+ this.hello_host = null;
this.state = STATE_PAUSE;
+ this.loop_code = null;
+ this.loop_msg = null;
this.uuid = uuid();
this.notes = {};
+ this.transaction = null;
this.tran_count = 0;
+ this.capabilities = null;
this.early_talker_delay = config.get('early_talker_delay') || 1000;
this.banner_includes_uuid = config.get('banner_includes_uuid') ? true : false;
this.deny_includes_uuid = config.get('deny_includes_uuid') ? true : false;
@@ -141,6 +151,7 @@ function Connection(client, server) {
this.hooks_to_run = [];
this.start_time = Date.now();
this.last_reject = '';
+ this.max_bytes = null;
this.totalbytes = 0;
this.rcpt_count = {
accept: 0,
@@ -152,6 +163,7 @@ function Connection(client, server) {
tempfail: 0,
reject: 0,
};
+ this.data_post_start = null;
this.proxy = false;
this.proxy_timer = false;
setupClient(this);
View
4 mailbody.js
@@ -17,6 +17,10 @@ function Body (header, options) {
this.options = options || {};
this.bodytext = '';
this.body_text_encoded = '';
+ this.body_encoding = null;
+ this.boundary = null;
+ this.ct = null;
+ this.decode_function = null;
this.children = []; // if multipart
this.state = 'start';
this.buf = new Buffer(buf_siz);
View
1  transaction.js
@@ -19,6 +19,7 @@ function Transaction() {
this.banner = null;
this.data_bytes = 0;
this.header_pos = 0;
+ this.body = null;
this.parse_body = false;
this.notes = {};
this.header = new Header();
Please sign in to comment.
Something went wrong with that request. Please try again.