mblaze, a Maildir-focused command line mail client
 help / color / mirror / code / Atom feed
From: Wolfgang Jenkner <wjen...@inode.at>
To: mblaze@googlegroups.com
Subject: [PATCH] Fix non-POSIX sed usage
Date: Sat, 08 Jul 2017 01:50:02 +0200	[thread overview]
Message-ID: <ERIFOUX552.2EM5XM0OT64EL@inode.at> (raw)

[-- 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


             reply	other threads:[~2017-07-07 23:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-07 23:50 Wolfgang Jenkner [this message]
2017-07-08 18:49 ` Leah Neukirchen
2017-07-12 18:22   ` Wolfgang Jenkner
2017-07-12 19:12     ` Leah Neukirchen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ERIFOUX552.2EM5XM0OT64EL@inode.at \
    --to="wjen..."@inode.at \
    --cc=mblaze@googlegroups.com \
    --subject='Re: [PATCH] Fix non-POSIX sed usage' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this 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).