Create a feed importer for your mailing list

  1. Go to Site Building>Feed Importers>List.
  2. Clone the Mailhandler nodes importer
  3. Fill in the Name field, i.e. Group1. If your name includes spaces and/or upper-case characters click the Edit link and give the feed importer a machine-readable name.
  4. Fill in the Description field and click Create.
  5. Under Basic settings click the Settings link.
  6. If you want to fetch new messages every cron cycle, change Minimum refresh period to As often as possible. If not, choose the appropriate interval
  7. Import on submission should be checked by default.
  8. Click Save.
  9. Under Parser, click the settings link.
  10. In the Command plugins box Header processor and Default commands processor should be selected by default. If you will allow file uploading, select Files processor as well.
  11. Under Authentication plugin select “From” address authentication. If you installed the Multiple Emal Addresses module, select Multiple Email Authentication.
  12. In the Available commands box Status will be present. You can create additional commands, including the standard Mailhandler commands, to which you can map data. Place each command on a separate line:


status

type

comment

format

og_public

og_groups

taxonomy

promote

sticky

  1. Set Default commands appropriately:


type: discussion (The node type to be created by incoming emails)

og_groups: [nid] (The nid of the group node)

status: 0 (0=unpublished, 1=published)

comment: 0 (0=disabled, 1=read only, 2=read/write)

moderate: 1 (0=no moderation, 1=moderated

og_public: 1 (0= private, 1=pubic – available to all site visitors with permission to view the node type)

taxonomy: [term name1, term name2, ... ] (if a taxonomy term is to be applied to all posts to the group)

promote: 1 (0=not promoted, 1=promoted — needed only to promote all posts)

sticky: 1 (1=sticky — needed only if all posts are sticky)

  1. Click Save.
  2. Under the Processor click the Settings link.
  3. In the Content type dropdown select the node type you will use with this group -- Discussion for a discussion group, Announcement for a notification group.
  4. In the Input format dropdown select the input format for processing nodes created from incoming emails. If you upgraded Mailhandler mailboxes from an earlier version some input formats probably were created during the upgrade. One may be identified as group1@example.com, or something like that. Assuming you will use a common format for all nodes created via email, select one of these. We'll make necessary adjustments later.
  5. Start typing Listmaster in the Author autocomplete box.
  6. Check the Authorize box below that.
  7. Select one of the behaviors under Update existing nodes. I prefer Do not update.
  8. Click Save.
  9. Next, under Processer, select Mappings.
  10. By default some fields in the email (Source) will be mapped to node fields (Target), i.e., Message subject -> Title, User ID -> User ID, Body -> Body. Make sure to add Status -> Published Status and og_groups -> Organic Group(s). If you have a taxonomy associated with the node type and you used the taxonomy: [term name] command, map Taxonomy -> Taxonomy - List Name. If you allow file attachments, map Attachments -> FileField.
Projects