From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qJyTE3okaGFk5gAAgWs5BA (envelope-from ) for ; Thu, 14 Oct 2021 14:37:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 6DMbD3okaGHIaQAAbx9fmQ (envelope-from ) for ; Thu, 14 Oct 2021 12:37:14 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 195155FBF for ; Thu, 14 Oct 2021 14:37:13 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 2FB992C197; Thu, 14 Oct 2021 08:37:08 -0400 (EDT) Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [IPv6:2a0b:5c81:1c1::37]) by mail.notmuchmail.org (Postfix) with ESMTPS id 8C4E12C18A for ; Thu, 14 Oct 2021 08:37:04 -0400 (EDT) Received: from guru.guru-group.fi (unknown [IPv6:2a02:2380:1:9:5054:ff:feb7:a4bc]) (using TLSv1.2 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: too) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 007DD1B0007F; Thu, 14 Oct 2021 15:37:00 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1634215021; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Dy6Kr7dt7tg6E8OWZGFe02rzJonFlsps3X0qrDNABls=; b=Dgb9/PA7K2qyP+igNdCd3kA7Ko+DHXE4ywne6MqpCn8KkwGsRedqpeaqWBEvrCSkC4xpvo UrMRue82LJUU2Z1AOGZBql6QhqgjmE31eh02UEFB36+TYQTn2F0F9I1Za8XyMm+ivXIdvQ QZzKaown3jIM8n3Dt5qDIYGfNwblDBlqFi73PERRXXhy7nGign8LEpxwqAU2OrBqgE6yVp iIZMbfHmUFbdkF8KjTRFhYJwGSno0DpVSPLUAwNgRDnaAMFWaoNU9ckVLZjgoC93gTpJFh E9k9zWlBCek2PTheRdrQKB5+96oaW4ztEQBDUt6DOk12KuS2DxI7lL+9/IG5zQ== From: Tomi Ollila To: Martin Jambor , notmuch@notmuchmail.org Subject: Re: Emacs notmuch extracts text attachments as if they had Windows (CRLF) encoding In-Reply-To: References: User-Agent: Notmuch/0.33+54~gcaf4513 (https://notmuchmail.org) Emacs/27.1 X-Face: HhBM'cA~ MIME-Version: 1.0 ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1634215021; a=rsa-sha256; cv=none; b=k3IWmFdcj40cTjWnrY6w6eq4HPZq/HIXBzzR4aaTRP8iwL8RK0RXDTaRx3eIlZV2B7GcVH S4g3rr+qPRrSYW5h0vWUQdnoyQv4Dtg3f+Pe6+Ycs3ANYT0c1sOys/MD/Wv+5LRZEwvJoM SbTSnnopx7ZCICUjVwlITT2VG08ytUNkPG6c1amOFf5t/sLosc6PPCx4DCWeeboaf0invJ 4DtAMrBh3+C0tGAhTnWrO0zqNeflWREkYM7JzyMdU9JJglzMm+OT9qjva8NDa9QkiY71u/ QTCq1kXs3ij09KHGjAFbGejssJtFUqczwin2yMbud2N59f8oRIcSaFPJSsOvrg== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=too smtp.mailfrom=tomi.ollila@iki.fi ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1634215021; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Dy6Kr7dt7tg6E8OWZGFe02rzJonFlsps3X0qrDNABls=; b=OmrC7S95cgobWC+1lBqPd5UoHiScnIgxCluWdzjJ9xrHw33NKGOK5GQWHHSZ/Fdj7jgfqt dg37Xb0DEwce6c5sxqv9b0845XiJg7bn/aa585wgpaCGkdj2/YfowCBY+VTNAh2ZY4VDH2 yKmnpJEBs+QeTwCjoEWExLwr9jeKNjlK984F6VV/KEYypt2uIyEBJBDGgLhC+dEOCZmtSl Ol3Wt2gdutykulziZl20R7IJWi7xxz1o4zYZ26cY9xZUMGs1OV5IpJHCXnPYB9kvi7RylM OysgwmAKYLU8Uqew4awCOlgL62jui+AZ7WVOw7uTuWOMM2YgPrss9qQogWQJAA== Message-ID-Hash: IA7ARWSWZT3XVCF6OFDBLKHPKHFJJ2E3 X-Message-ID-Hash: IA7ARWSWZT3XVCF6OFDBLKHPKHFJJ2E3 X-MailFrom: tomi.ollila@iki.fi X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1634215033; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=pNhme5Yj0VFWkd8DM9qeOdr4xSqnOO6T2yToKSyJwu4=; b=fN/QIb6UGCsGTYKiqCPZtxpkyJ+4Kzi+QJWhQsv1H7ifvsrwP/SA4UnTk2sfFZQ+8R0MyH f30TqNYRndAcsCANipbPPSp6lzbXp7JBmvpl8yPSLaDoYW3zm5l9Xut6n//wTAzP7/erze 80sANevkLmxDzjGc4GylkRSQ/u8yfhV3RsnpzxBKfpONfbjUV5kmRnwKOTC2wVIDVocuUH QfNsErIORIiiqzX0K/wIwX/V4e5SJHrBL1D4TCju0swxb7yRjBIxxITrGvX/VldjihF6AI AQ+4d7XC9udS+5pmwL1ff2zT55vGhMu0eXsLCeOLb9xtd6Xa42JtHAr5jnBeeQ== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1634215033; a=rsa-sha256; cv=fail; b=ghudiEo8vyj5biHdUthTPauRFnojjBLK8TPrvKX5Y+G7zjr42rP0CCLrau5dYfAJVsFc+8 0IqwRkNyk9gfI6pGG8IGWD/OZj4G8sH+Qg6t+r2hDTCsUgc2sRLvPXsGt1gt4+TfD0AANC 4d0pkHGn1EkDNLyqJEIvvvVsGuJupH4qAdBRpGrS7CY4rYswGMMK8TBMhQ37XLwd2ewz/Q +CgZNvouuH6p176UMON2S+mVJsWt8A5A/a+Je5Dk4/9pDWH9iVHLZjEG7FxQaytcZR2r0G seug5CZ5kMXTnrnDDlFRfGEafTU2o7DuMFEx9l7Ju4j3xMTQAovMVQ25k7C+WA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b="Dgb9/PA7"; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 0.83 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b="Dgb9/PA7"; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 195155FBF X-Spam-Score: 0.83 X-Migadu-Scanner: scn1.migadu.com X-TUID: 7G9YuIfBuhfx On Wed, Oct 13 2021, Martin Jambor wrote: > Hi, > > I have stumbled upon strange behavior of emacs-notmuch. When I extract > (some?) plain text attachments into files using notmuch-show-save-part > (by pressing ".s"), the file they end up in has Windows encoding of line > ends (CRLF) even though both the machine used to send and receive the > email are Linux ones. > > I can reproduce the issue with the attached example email. Emacs > notmuch extracts the attachment into a windows encoding file while mutt > or metamail does not. > > Can anyone else reproduce this behavior? Any ideas how to fix it? Are you talking about this attachment in the gzipped email content: ---1609908220-525021627-1633684545=:5930 Content-Type: text/plain; charset=US-ASCII; name=status Content-Transfer-Encoding: BASE64 Content-Description: test Content-Disposition: attachment; filename=status U3RhdHVzDQo9PT09PT0NCg0KVGhlIEdDQyBkZXZlbG9wbWVudCBicmFuY2gg ... NTgzMS5odG1sDQo= ---1609908220-525021627-1633684545=:5930-- I manually extracted the BASE64 content, it does have the CRLF line endings... > > Thanks a lot, > > Martin