* [PR PATCH] mcom: Add sendhook
@ 2022-04-22 7:05 Anachron
2023-10-27 8:28 ` [PR PATCH] [Updated] " Anachron
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: Anachron @ 2022-04-22 7:05 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 508 bytes --]
There is a new pull request by Anachron against master on the mblaze repository
https://github.com/Anachron/mblaze master
https://github.com/leahneukirchen/mblaze/pull/226
mcom: Add sendhook
This allows to execute commands after a mail has been sent.
Requires a modification of $MBLAZE/profile (new header: `sendhook`).
For now commands with spaces are not allowed, as this would complicate the code.
Closes #204
A patch file from https://github.com/leahneukirchen/mblaze/pull/226.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-226.patch --]
[-- Type: text/x-diff, Size: 1106 bytes --]
From c17f5c76eebea170e27add0d23b1f03faa17fffe Mon Sep 17 00:00:00 2001
From: Anachron <gith@cron.world>
Date: Fri, 22 Apr 2022 08:38:36 +0200
Subject: [PATCH] mcom: Add sendhook
---
mcom | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/mcom b/mcom
index d60070e..5bcfdc7 100755
--- a/mcom
+++ b/mcom
@@ -104,6 +104,7 @@ sendmail=$(mhdr -h sendmail "$MBLAZE/profile")
sendmail_args=$(mhdr -h sendmail-args "$MBLAZE/profile")
sendmail="${sendmail:-sendmail} ${sendmail_args:--t}"
default_from=$(mhdr -h local-mailbox "$MBLAZE/profile")
+sendhook=$(mhdr -h sendhook "$MBLAZE/profile")
defaultc=e
@@ -440,7 +441,7 @@ while :; do
if $sendmail <"$draftmime"; then
if [ "$outbox" ]; then
mv "$draftmime" "$draft"
- mflag -d -S "$draft"
+ ${sendhook:-mflag -d -S} "$draft"
else
rm "$draft" "$draftmime"
fi
@@ -458,7 +459,7 @@ while :; do
stampdate "$draft"
if $sendmail <"$draft"; then
if [ "$outbox" ]; then
- mflag -d -S "$draft"
+ ${sendhook:-mflag -d -S} "$draft"
else
rm "$draft"
fi
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PR PATCH] [Updated] mcom: Add sendhook
2022-04-22 7:05 [PR PATCH] mcom: Add sendhook Anachron
@ 2023-10-27 8:28 ` Anachron
2024-01-01 8:38 ` Anachron
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Anachron @ 2023-10-27 8:28 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 513 bytes --]
There is an updated pull request by Anachron against master on the mblaze repository
https://github.com/Anachron/mblaze master
https://github.com/leahneukirchen/mblaze/pull/226
mcom: Add sendhook
This allows to execute commands after a mail has been sent.
Requires a modification of $MBLAZE/profile (new header: `sendhook`).
For now commands with spaces are not allowed, as this would complicate the code.
Closes #204
A patch file from https://github.com/leahneukirchen/mblaze/pull/226.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-226.patch --]
[-- Type: text/x-diff, Size: 1106 bytes --]
From c17f5c76eebea170e27add0d23b1f03faa17fffe Mon Sep 17 00:00:00 2001
From: Anachron <gith@cron.world>
Date: Fri, 22 Apr 2022 08:38:36 +0200
Subject: [PATCH] mcom: Add sendhook
---
mcom | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/mcom b/mcom
index d60070e..5bcfdc7 100755
--- a/mcom
+++ b/mcom
@@ -104,6 +104,7 @@ sendmail=$(mhdr -h sendmail "$MBLAZE/profile")
sendmail_args=$(mhdr -h sendmail-args "$MBLAZE/profile")
sendmail="${sendmail:-sendmail} ${sendmail_args:--t}"
default_from=$(mhdr -h local-mailbox "$MBLAZE/profile")
+sendhook=$(mhdr -h sendhook "$MBLAZE/profile")
defaultc=e
@@ -440,7 +441,7 @@ while :; do
if $sendmail <"$draftmime"; then
if [ "$outbox" ]; then
mv "$draftmime" "$draft"
- mflag -d -S "$draft"
+ ${sendhook:-mflag -d -S} "$draft"
else
rm "$draft" "$draftmime"
fi
@@ -458,7 +459,7 @@ while :; do
stampdate "$draft"
if $sendmail <"$draft"; then
if [ "$outbox" ]; then
- mflag -d -S "$draft"
+ ${sendhook:-mflag -d -S} "$draft"
else
rm "$draft"
fi
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: mcom: Add sendhook
2022-04-22 7:05 [PR PATCH] mcom: Add sendhook Anachron
2023-10-27 8:28 ` [PR PATCH] [Updated] " Anachron
@ 2024-01-01 8:38 ` Anachron
2024-08-28 16:39 ` Anachron
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Anachron @ 2024-01-01 8:38 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 188 bytes --]
New comment by Anachron on mblaze repository
https://github.com/leahneukirchen/mblaze/pull/226#issuecomment-1873226257
Comment:
Can this be added before new release?
@leahneukirchen
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: mcom: Add sendhook
2022-04-22 7:05 [PR PATCH] mcom: Add sendhook Anachron
2023-10-27 8:28 ` [PR PATCH] [Updated] " Anachron
2024-01-01 8:38 ` Anachron
@ 2024-08-28 16:39 ` Anachron
2024-08-28 16:39 ` Anachron
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Anachron @ 2024-08-28 16:39 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 150 bytes --]
New comment by Anachron on mblaze repository
https://github.com/leahneukirchen/mblaze/pull/226#issuecomment-2315814969
Comment:
Can this be merged?
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: mcom: Add sendhook
2022-04-22 7:05 [PR PATCH] mcom: Add sendhook Anachron
` (2 preceding siblings ...)
2024-08-28 16:39 ` Anachron
@ 2024-08-28 16:39 ` Anachron
2024-08-28 16:41 ` Anachron
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Anachron @ 2024-08-28 16:39 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 150 bytes --]
New comment by Anachron on mblaze repository
https://github.com/leahneukirchen/mblaze/pull/226#issuecomment-2315814969
Comment:
Can this be merged?
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: mcom: Add sendhook
2022-04-22 7:05 [PR PATCH] mcom: Add sendhook Anachron
` (3 preceding siblings ...)
2024-08-28 16:39 ` Anachron
@ 2024-08-28 16:41 ` Anachron
2024-08-28 16:41 ` Anachron
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Anachron @ 2024-08-28 16:41 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 188 bytes --]
New comment by Anachron on mblaze repository
https://github.com/leahneukirchen/mblaze/pull/226#issuecomment-1873226257
Comment:
Can this be added before new release?
@leahneukirchen
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: mcom: Add sendhook
2022-04-22 7:05 [PR PATCH] mcom: Add sendhook Anachron
` (4 preceding siblings ...)
2024-08-28 16:41 ` Anachron
@ 2024-08-28 16:41 ` Anachron
2024-09-11 20:07 ` [PR PATCH] [Closed]: " leahneukirchen
2024-09-11 20:07 ` leahneukirchen
7 siblings, 0 replies; 9+ messages in thread
From: Anachron @ 2024-08-28 16:41 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 157 bytes --]
New comment by Anachron on mblaze repository
https://github.com/leahneukirchen/mblaze/pull/226#issuecomment-2315819804
Comment:
Hey, whats the state here?
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PR PATCH] [Closed]: mcom: Add sendhook
2022-04-22 7:05 [PR PATCH] mcom: Add sendhook Anachron
` (5 preceding siblings ...)
2024-08-28 16:41 ` Anachron
@ 2024-09-11 20:07 ` leahneukirchen
2024-09-11 20:07 ` leahneukirchen
7 siblings, 0 replies; 9+ messages in thread
From: leahneukirchen @ 2024-09-11 20:07 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 368 bytes --]
There's a closed pull request on the mblaze repository
mcom: Add sendhook
https://github.com/leahneukirchen/mblaze/pull/226
Description:
This allows to execute commands after a mail has been sent.
Requires a modification of $MBLAZE/profile (new header: `sendhook`).
For now commands with spaces are not allowed, as this would complicate the code.
Closes #204
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: mcom: Add sendhook
2022-04-22 7:05 [PR PATCH] mcom: Add sendhook Anachron
` (6 preceding siblings ...)
2024-09-11 20:07 ` [PR PATCH] [Closed]: " leahneukirchen
@ 2024-09-11 20:07 ` leahneukirchen
7 siblings, 0 replies; 9+ messages in thread
From: leahneukirchen @ 2024-09-11 20:07 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 198 bytes --]
New comment by leahneukirchen on mblaze repository
https://github.com/leahneukirchen/mblaze/pull/226#issuecomment-2344606705
Comment:
I rewrote this to follow style and be used instead of outbox.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2024-09-11 20:07 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-22 7:05 [PR PATCH] mcom: Add sendhook Anachron
2023-10-27 8:28 ` [PR PATCH] [Updated] " Anachron
2024-01-01 8:38 ` Anachron
2024-08-28 16:39 ` Anachron
2024-08-28 16:39 ` Anachron
2024-08-28 16:41 ` Anachron
2024-08-28 16:41 ` Anachron
2024-09-11 20:07 ` [PR PATCH] [Closed]: " leahneukirchen
2024-09-11 20:07 ` leahneukirchen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).