PHPackages                             ramon/mail-reply - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. ramon/mail-reply

ActiveFlarum-extension[Mail &amp; Notifications](/categories/mail)

ramon/mail-reply
================

Reply-by-email for Flarum: unique per-user/per-discussion Reply-To addresses plus inbound email processing (parse, strip quotes/signatures, post reply).

2.0.0(2mo ago)0105[2 PRs](https://github.com/ram0ng1/mail-reply/pulls)MITPHPCI failing

Since Apr 21Pushed 2mo agoCompare

[ Source](https://github.com/ram0ng1/mail-reply)[ Packagist](https://packagist.org/packages/ramon/mail-reply)[ RSS](/packages/ramon-mail-reply/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (3)Dependencies (2)Versions (6)Used By (0)

Mail Reply — Flarum v2
======================

[](#mail-reply--flarum-v2)

Reply-by-email for Flarum 2, inspired by GitHub and Discourse.

What it does
------------

[](#what-it-does)

1. **Unique Reply-To per notification.** When Flarum sends an email notification (new post, mention, etc.) this extension injects a header like:

    ```
    Reply-To: reply+ab12cd34ef@reply.example.com

    ```

    The token encodes the recipient user + the discussion and is HMAC-signed against a server secret, so it cannot be forged.
2. **Inbound email processing.** When the user replies to that email, your MTA (or an inbound provider like Mailgun/Postmark) forwards the message to:

    - `POST /api/mail-reply/inbound` (HTTP webhook, with a shared secret), or
    - `php flarum mail-reply:process` (STDIN pipe, for Postfix/Exim aliases).

    The extension verifies the token, strips quoted history and signatures, and creates a `CommentPost` on behalf of the original recipient.

Configure
---------

[](#configure)

Set these via the admin settings UI (Flarum settings repo keys):

KeyDescription`ramon-mail-reply.domain`Domain for the synthetic Reply-To (e.g. `reply.example.com`). Leave blank to disable.`ramon-mail-reply.webhook_secret`Shared secret required in the `X-Mail-Reply-Token` header on inbound webhook calls.`ramon-mail-reply.secret`(Optional) HMAC key for tokens. Falls back to `APP_KEY`.`ramon-mail-reply.token_ttl_days`Token lifetime in days (default: 30).`ramon-mail-reply.strip_signatures``true` to run the full reply parser (default), `false` to only trim quoted lines.Mailgun / Postmark / SendGrid route
-----------------------------------

[](#mailgun--postmark--sendgrid-route)

Point the inbound route at:

```
POST https://yourforum.tld/api/mail-reply/inbound
Header: X-Mail-Reply-Token:

```

Postfix alias (STDIN pipe)
--------------------------

[](#postfix-alias-stdin-pipe)

```
reply:   "|/usr/bin/php /var/www/flarum/flarum mail-reply:process"

```

Install
-------

[](#install)

```
composer require ramon/mail-reply
php flarum migrate
php flarum extension:enable ramon-mail-reply
```

Admin panel
-----------

[](#admin-panel)

The extension ships with a small admin settings panel (domain, webhook secret, HMAC key, token TTL, signature stripping, "via email" badge toggle).

Forum badge
-----------

[](#forum-badge)

Posts created from an inbound email reply are flagged (`posts.via_mail_reply`) and rendered with a small "via email" badge next to the post author. The badge can be turned off from the admin settings page (`Show "via email" badge on replies`).

Build
-----

[](#build)

```
cd js
npm install
npm run build
```

Outputs `js/dist/admin.js` and `js/dist/forum.js`; both are loaded automatically by `extend.php`.

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance86

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~13 days

Total

3

Last Release

68d ago

Major Versions

0.2.0-beta → 2.0.02026-05-18

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13917322?v=4)[Ramon Guilherme](/maintainers/ram0ng1)[@ram0ng1](https://github.com/ram0ng1)

---

Top Contributors

[![ram0ng1](https://avatars.githubusercontent.com/u/13917322?v=4)](https://github.com/ram0ng1 "ram0ng1 (5 commits)")

---

Tags

mailflaruminbound emailreply-by-email

### Embed Badge

![Health badge](/badges/ramon-mail-reply/health.svg)

```
[![Health](https://phpackages.com/badges/ramon-mail-reply/health.svg)](https://phpackages.com/packages/ramon-mail-reply)
```

###  Alternatives

[flarum-lang/russian

Russian language pack for Flarum.

12128.3k](/packages/flarum-lang-russian)[flarum-lang/french

French language pack to localize the Flarum forum software plus its official and third-party extensions.

1938.7k](/packages/flarum-lang-french)[fof/webhooks

Automatically notify Discord, Slack, and Microsoft Teams when events happen on your Flarum forum.

2420.0k](/packages/fof-webhooks)[fof/subscribed

Additional user subscriptions for your forum

1232.4k2](/packages/fof-subscribed)[fof/discussion-language

Specify the language a discussion is written in &amp; sort by language

1034.8k7](/packages/fof-discussion-language)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
