email_to_rss
Email to RSS turns messages from an IMAP mailbox folder into a private RSS feed, so newsletters and other emails can be read in any feed reader.
This module is useful when you want to follow email-only content without using your inbox as the reading interface. Configure an IMAP account and folder, run a sync, and Drupal will publish the fetched messages as an RSS feed protected by a secret token in the feed URL.
Features
- Fetches email messages from a configured IMAP folder.
- Publishes fetched messages as an RSS 2.0 feed.
- Supports HTML email bodies using
content:encoded. - Deduplicates messages by Message-ID.
- Provides a private, token-protected feed URL.
- Allows administrators to configure the feed limit.
- Includes manual “Sync now” and “Delete all entries” actions.
- Runs sync during Drupal cron.
Common use cases include reading newsletters in an RSS reader, archiving selected emails as a feed, or creating a self-hosted alternative to email-to-feed services.
Post-Installation
After installing the module, go to Administration → Configuration → Web services → Email to RSS.
Configure the IMAP connection details:
- Host
- Port
- Encryption
- Username
- Folder
- Feed entry limit
The IMAP password is not stored in Drupal configuration. Set it using the environment variable EMAIL_TO_RSS_IMAP_PASSWORD.
The settings page displays the private RSS feed URL. Treat this URL as secret. Anyone with the tokenized URL can read the feed.
Use Sync now to fetch messages immediately, or let Drupal cron fetch new messages automatically. Use Delete all entries to clear the local message mirror.
Additional Requirements
- Drupal 10 or 11.
- PHP 8.2 or later.
- The Composer library
webklex/php-imap, installed automatically when the module is installed with Composer. - An IMAP-accessible email account.
Recommended modules/libraries
No additional Drupal modules are required.
A regular cron setup is recommended so new messages are fetched automatically.
Similar projects
Aggregator in Drupal core consumes RSS feeds. Email to RSS does the reverse: it creates an RSS feed from email messages.
Simplenews sends newsletters from Drupal. Email to RSS reads messages from an external mailbox and exposes them as a feed.
External services such as Kill the Newsletter provide similar email-to-feed functionality as a hosted service. Email to RSS provides a self-hosted Drupal-based option.
Supporting this Module
Use the Drupal.org issue queue to report bugs, request features, or submit patches.
Community Documentation
Community documentation, walkthroughs, and examples can be added here as they become available.