[PR #33] [MERGED] Add external command support #72

Closed
opened 2026-02-26 18:33:14 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/decke/smtprelay/pull/33
Author: @benubois
Created: 5/7/2021
Status: Merged
Merged: 5/10/2021
Merged by: @decke

Base: masterHead: command


📝 Commits (2)

  • d8860fc Added external command support.
  • 3f627d3 Move AddReceivedLine before further processing.

📊 Changes

3 files changed (+35 additions, -5 deletions)

View changed files

📝 config.go (+3 -2)
📝 main.go (+29 -3)
📝 smtprelay.ini (+3 -0)

📄 Description

Hi,

I attempted to implement #32.

This adds a way to pipe emails to an external command, similar to pipe(8) from Postfix.

This is configured with a new command option like:

command = /path/to/script 

I'd happily accept any feedback on the implementation as this is the first go I've written.

No worries if this is not a good fit for the project.

Thanks!


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/decke/smtprelay/pull/33 **Author:** [@benubois](https://github.com/benubois) **Created:** 5/7/2021 **Status:** ✅ Merged **Merged:** 5/10/2021 **Merged by:** [@decke](https://github.com/decke) **Base:** `master` ← **Head:** `command` --- ### 📝 Commits (2) - [`d8860fc`](https://github.com/decke/smtprelay/commit/d8860fc91779819aca3ce77683d68e7bcd18309a) Added external command support. - [`3f627d3`](https://github.com/decke/smtprelay/commit/3f627d3281e2b6e4313222d07b55758e4bfdadc1) Move AddReceivedLine before further processing. ### 📊 Changes **3 files changed** (+35 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `config.go` (+3 -2) 📝 `main.go` (+29 -3) 📝 `smtprelay.ini` (+3 -0) </details> ### 📄 Description Hi, I attempted to implement #32. This adds a way to pipe emails to an external command, similar to [pipe(8)](http://www.postfix.org/pipe.8.html) from Postfix. This is configured with a new `command` option like: ``` command = /path/to/script ``` I'd happily accept any feedback on the implementation as this is the first go I've written. No worries if this is not a good fit for the project. Thanks! --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 18:33:14 +03:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/smtprelay#72
No description provided.