From: codesoap <codesoap@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] mcom: do not match shebang in needs_multipart()
Date: Mon, 04 Jan 2021 19:21:20 +0100 [thread overview]
Message-ID: <20210104182120.f61-mSjELtvvDKyxr6mFIRkUlf9nHOCPOGz7SFDLiXA@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-fa6558a0-26e0-48f6-803f-f5a8af34f6a8-mblaze-196@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 409 bytes --]
There is an updated pull request by codesoap against master on the mblaze repository
https://github.com/codesoap/mblaze shebang
https://github.com/leahneukirchen/mblaze/pull/196
mcom: do not match shebang in needs_multipart()
Avoids matching lines like `#!/usr/bin/env sh`. Also require at least one character after `/`.
A patch file from https://github.com/leahneukirchen/mblaze/pull/196.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-shebang-196.patch --]
[-- Type: text/x-diff, Size: 596 bytes --]
From e37d2102e32977e4f17fb9c560fb0bcd6743b4be Mon Sep 17 00:00:00 2001
From: codesoap <codesoap@mailbox.org>
Date: Mon, 4 Jan 2021 18:55:48 +0100
Subject: [PATCH] mcom: do not match shebang in needs_multipart()
Avoids matching lines like '#!/usr/bin/env sh'.
---
mcom | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mcom b/mcom
index f0de75c..c378b33 100755
--- a/mcom
+++ b/mcom
@@ -75,7 +75,7 @@ stripempty() {
needs_multipart() {
mhdr -h attach "$1" >/dev/null ||
- grep -q '^#[^ ]*/[^ ]* ' "$1"
+ grep -qE '^#[a-zA-Z]+/[a-zA-Z0-9+.;=#-]+ ' "$1"
}
do_mime() {
next prev parent reply other threads:[~2021-01-04 18:21 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-04 17:59 [PR PATCH] " codesoap
2021-01-04 18:04 ` leahneukirchen
2021-01-04 18:05 ` leahneukirchen
2021-01-04 18:14 ` codesoap
2021-01-04 18:15 ` leahneukirchen
2021-01-04 18:16 ` leahneukirchen
2021-01-04 18:16 ` leahneukirchen
2021-01-04 18:19 ` codesoap
2021-01-04 18:21 ` codesoap [this message]
2021-01-04 18:22 ` codesoap
2021-01-04 18:27 ` [PR PATCH] [Closed]: " leahneukirchen
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=20210104182120.f61-mSjELtvvDKyxr6mFIRkUlf9nHOCPOGz7SFDLiXA@z \
--to=codesoap@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).