summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--b4/attest.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/b4/attest.py b/b4/attest.py
index 5e3d384..8ae939e 100644
--- a/b4/attest.py
+++ b/b4/attest.py
@@ -110,6 +110,10 @@ def mutt_filter() -> None:
logger.error('Error: Mutt mode expects a message on stdin')
sys.exit(1)
inb = sys.stdin.buffer.read()
+ # Quick exit if we don't find x-patch-sig
+ if inb.find(b'X-Patch-Sig:') < 0:
+ sys.stdout.buffer.write(inb)
+ return
try:
msg = email.message_from_bytes(inb)
if msg.get('x-patch-sig'):