$feeds_importer = new stdClass(); $feeds_importer->disabled = FALSE; /* Edit this to true to make a default feeds_importer disabled initially */ $feeds_importer->api_version = 1; $feeds_importer->id = 'discussion_reply_email_importer'; $feeds_importer->config = array( 'name' => 'Discussion reply email importer', 'description' => 'Imports email replies to discussion as discussion replies', 'fetcher' => array( 'plugin_key' => 'MailhandlerFetcher', 'config' => array( 'filter' => 'MailhandlerFilters', ), ), 'parser' => array( 'plugin_key' => 'OaMailParser', 'config' => array( 'available_commands' => 'status', 'authenticate_plugin' => 'MailhandlerAuthenticateDefault', 'require_contextual_nid' => 0, 'filter_email' => 1, ), ), 'processor' => array( 'plugin_key' => 'FeedsNodeProcessor', 'config' => array( 'expire' => '-1', 'author' => 0, 'authorize' => 0, 'mappings' => array( 0 => array( 'source' => 'authenticated_uid', 'target' => 'uid', 'unique' => FALSE, ), 1 => array( 'source' => 'body_text', 'target' => 'body', 'unique' => FALSE, ), 2 => array( 'source' => 'attachments', 'target' => 'field_oa_media', 'unique' => FALSE, ), 3 => array( 'source' => 'contextual_nid', 'target' => 'oa_parent', 'unique' => FALSE, ), 4 => array( 'source' => 'contextual_space_id', 'target' => 'og_group_ref', 'unique' => FALSE, ), 5 => array( 'source' => 'contextual_section_id', 'target' => 'oa_section_ref', 'unique' => FALSE, ), ), 'update_existing' => '2', 'input_format' => 'plain_text', 'skip_hash_check' => 0, 'bundle' => 'oa_discussion_post', ), ), 'content_type' => 'oa_discussion_post', 'update' => 0, 'import_period' => '900', 'expire_period' => 3600, 'import_on_create' => 1, 'process_in_background' => 1, );