Github messages for mblaze
 help / color / mirror / Atom feed
* [PR PATCH] mcom: remove needless invocations of awk
@ 2023-04-09 20:55 readmemyrights
  2023-04-10 10:42 ` [PR PATCH] [Updated] " readmemyrights
  2023-04-10 11:38 ` [PR PATCH] [Closed]: " readmemyrights
  0 siblings, 2 replies; 3+ messages in thread
From: readmemyrights @ 2023-04-09 20:55 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 326 bytes --]

There is a new pull request by readmemyrights against master on the mblaze repository

https://github.com/readmemyrights/mblaze master
https://github.com/leahneukirchen/mblaze/pull/239

mcom: remove needless invocations of awk
Fixes #238.


A patch file from https://github.com/leahneukirchen/mblaze/pull/239.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-239.patch --]
[-- Type: text/x-diff, Size: 2059 bytes --]

From 63739502acefd23e2f5307921c7e88db1e5d5f34 Mon Sep 17 00:00:00 2001
From: Sekulum Forka <dictatorofturkmenistan@protonmail.com>
Date: Sun, 9 Apr 2023 22:50:45 +0200
Subject: [PATCH] mcom: remove needless invocations of awk

Fixes #238.
---
 mcom | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/mcom b/mcom
index 397cb5f..9db1255 100755
--- a/mcom
+++ b/mcom
@@ -276,7 +276,7 @@ fi
 				commajoin | sed 's/^/Cc: /'
 			printf '%s' "$hdrs" | mhdr -M -h bcc - |
 				commajoin | sed 's/^/Bcc: /'
-			printf '%s\n' "$hdrs" | awk '{ print }' |
+			printf '%s\n' "$hdrs" |
 				msed "/to/d; /cc/d; /bcc/d; /body/d" -
 		} | msed "/cc/a//; /bcc/a//; /subject/a//; /from/a/$default_from/" - | sed '/^$/d'
 		msgid
@@ -298,7 +298,7 @@ fi
 			printf '%s' "$hdrs" | mhdr -M -h bcc - |
 				commajoin | sed 's/^/Bcc: /'
 			COLUMNS=10000 mscan -f 'Subject: Fwd: [%f] %s' "$@" 2>/dev/null | sed 1q
-			printf '%s\n' "$hdrs" | awk '{ print }' |
+			printf '%s\n' "$hdrs" |
 				msed "/to/d; /cc/d; /bcc/d" -
 		} | msed "/cc/a//; /bcc/a//; /from/a/$default_from/" - | sed '/^$/d'
 		msgid
@@ -335,7 +335,7 @@ fi
 				commajoin | sed 's/^/Resent-To: /'
 			printf '%s' "$hdrs" | mhdr -M -h resent-cc - |
 				commajoin | sed 's/^/Resent-Cc: /'
-			printf '%s\n' "$hdrs" | awk '{ print }' |
+			printf '%s\n' "$hdrs" |
 				msed "/resent-to/d; /resent-cc/d" -
 		} |
 			msed "/resent-to/a//; /resent-from/a/$default_from/" - | sed '/^$/d'
@@ -368,11 +368,11 @@ fi
 				       notmine |grep -Fv -e "$to" |
 				       ouniq |commajoin)"
 			printf 'Bcc: \n'
-			printf '%s\n' "$hdrs" | awk '{ print }' |
+			printf '%s\n' "$hdrs" |
 				msed "/body/d" -
 		fi | sed '/^$/d'
 		printf 'Subject: Re: %s\n' "$(COLUMNS=10000 mscan -f '%S' "$1")"
-		if ! printf '%s\n' "$hdrs" | awk '{ print }' |
+		if ! printf '%s\n' "$hdrs" |
 		     mhdr -h from: - >/dev/null; then
 			addr=$(maddr -a -h delivered-to:to:cc:bcc: "$1" | replyfrom | head -n1)
 			[ -n "$addr" ] && from=$(maddr -h reply-from "$MBLAZE/profile" | grep -Fi "<$addr>" | head -n1)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-04-10 11:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-09 20:55 [PR PATCH] mcom: remove needless invocations of awk readmemyrights
2023-04-10 10:42 ` [PR PATCH] [Updated] " readmemyrights
2023-04-10 11:38 ` [PR PATCH] [Closed]: " readmemyrights

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).