Skip to content
Discussion options

You must be logged in to vote

Hi,

I get it working with the following code:

const axios = require('axios');
const simpleParser = require('mailparser').simpleParser;
const stringify = require ('string.ify')

exports.register = function() {
    this.loginfo('dropbox plugin registered');
};

exports.hook_data = function (next, connection) {
    return next();
};

exports.hook_data_post = function (next, connection) {
    const plugin = this;
    plugin.loginfo('hook_data_post called');

    if (!connection.transaction.message_stream) {
        plugin.logerror('No message_stream available');
        return next();
    }

    plugin.loginfo('message_stream type: ' + typeof connection.transaction.message_stream);
    plugin.l…

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
2 replies
@dspangenberg
Comment options

@msimerson
Comment options

Answer selected by msimerson
Comment options

You must be logged in to vote
8 replies
@aleho
Comment options

@msimerson
Comment options

@aleho
Comment options

@msimerson
Comment options

@aleho
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants