{ComposerExtension, AccountStore} = require 'nylas-exports' class SignatureComposerExtension extends ComposerExtension @prepareNewDraft: (draft) -> accountId = AccountStore.current().id signature = NylasEnv.config.get("nylas.account-#{accountId}.signature") return unless signature insertionPoint = draft.body.indexOf('
" + signature + draft.body.substr(insertionPoint) module.exports = SignatureComposerExtension