mblaze, a Maildir-focused command line mail client
 help / color / mirror / code / Atom feed
* [PATCH] Fix non-POSIX sed usage
@ 2017-07-07 23:50 Wolfgang Jenkner
  2017-07-08 18:49 ` Leah Neukirchen
  0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Jenkner @ 2017-07-07 23:50 UTC (permalink / raw)
  To: mblaze

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

Thanks for writing mblaze!

Here is a small bug: When replying to a message containing

 Message-Id: <dddddddddddddddddddddddddddddddddd@d>
 References: <aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa@a> <bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb@b> <ccccccccccccccccccccccccccccccc@c>

mrep(1) on FreeBSD 11 produces

 References:
  =?UTF-8?Q?_<aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa@a>n<bbbbbbbbbbbbbbbbbbbbbb?=
  =?UTF-8?Q?bbbbbbbbbbbbbbb@b>n<ccccccccccccccccccccccccccccccc@c>?=
  <dddddddddddddddddddddddddddddddddd@d>

Here's a patch:


[-- Attachment #2: 0001-Fix-non-POSIX-sed-usage.patch --]
[-- Type: text/x-diff, Size: 580 bytes --]

From 1cd9d1567310f21fb2f7ef62c655b679b72dbf7e Mon Sep 17 00:00:00 2001
From: Wolfgang Jenkner <wjen...@inode.at>
Date: Thu, 6 Jul 2017 18:41:14 +0200
Subject: [PATCH] Fix non-POSIX sed usage

---
 mcom | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/mcom b/mcom
index 0a3d219..63a0894 100755
--- a/mcom
+++ b/mcom
@@ -13,7 +13,8 @@ notmine() {
 }
 
 reffmt() {
-	sed 's/^[^<]*//g;s/[^>]*$//g;s/>[^<]*</>\n</g' | uniq | sed 's/^/ /'
+	sed 's/^[^<]*//g;s/[^>]*$//g;s/>[^<]*</>\
+</g' | uniq | sed 's/^/ /'
 }
 
 msgid() {
-- 
2.13.2


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

end of thread, other threads:[~2017-07-12 19:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-07 23:50 [PATCH] Fix non-POSIX sed usage Wolfgang Jenkner
2017-07-08 18:49 ` Leah Neukirchen
2017-07-12 18:22   ` Wolfgang Jenkner
2017-07-12 19:12     ` Leah Neukirchen

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mblaze/

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