From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EFwEK0fC5mElWQEAgWs5BA (envelope-from ) for ; Tue, 18 Jan 2022 14:36:07 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id mJtoJ0fC5mEcCQEAauVa8A (envelope-from ) for ; Tue, 18 Jan 2022 14:36:07 +0100 Received: from mail.notmuchmail.org (yantan.tethera.net [IPv6:2a01:4f9:c011:7a79::1]) (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 7B6332FB0E for ; Tue, 18 Jan 2022 14:36:07 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id CC7445F6BE; Tue, 18 Jan 2022 13:36:03 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 5DF685F5E1 for ; Tue, 18 Jan 2022 13:36:01 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id B020A5FC01; Tue, 18 Jan 2022 08:36:00 -0500 (EST) Received: (nullmailer pid 2916879 invoked by uid 1000); Tue, 18 Jan 2022 13:35:59 -0000 From: David Bremner To: Kevin Foley , notmuch@notmuchmail.org Subject: Re: Dealing with Missing Date Headers In-Reply-To: <87bl0aysvl.fsf@kevinjfoley.me> References: <87bl0aysvl.fsf@kevinjfoley.me> Date: Tue, 18 Jan 2022 09:35:59 -0400 Message-ID: <87czkpw4hs.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: KLIBRHR7TWJWLUN73IBVGO7HZWK6FTEI X-Message-ID-Hash: KLIBRHR7TWJWLUN73IBVGO7HZWK6FTEI X-MailFrom: david@tethera.net 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; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1642512967; 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-owner:list-unsubscribe:list-subscribe:list-post; bh=C/ntCG8EJqiU7qpy8YwL/0k9o/1hy40CKvkZP2Vcvgc=; b=ZwSVc0TVhwN3cDRlicmCWftAw0hTirfDsp7+Yi3el7PeX0hlwIsSg+Ft4XbDjosUA9cdmI FeGdbpju/nMSX97Mm0WS2s/2WmY+mlCqa0ao4B6KyQh5JoJcWjtGIrgafdOp1j5Uw3/n2I PwSTNoJiwSO2u5FcybNI6Q/TxQCKo8na7APDq3VqUQHuVaBD73VfhtAyt9RINz5tCKzvd5 7IBiEjQLmyzNEdgXObodlbIp+ryLysttOGdGQjZFMOaOLhZb8Ard3VOk6/lYCtLfcP7k06 WWcsMlPSzByMIbFsOkwWO6XVOYmV/2NVZdtntdft/7LsU5NLSXsTk/5hICUrkQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642512967; a=rsa-sha256; cv=none; b=lMkWvdrrbhFbpn7bt4j/pVWow7NZIncST9x5c10YwtQWPFadqB+6cgPJSdL1U6+9UWIsk7 n6yLlvEV/dI2fJxJzYl8BD4g6xLpRoi9K8efNrOLAZIYKD3SEKiUEmF13xp3riq5uXkuGu ytUqw4OL08uk2rxfHt+Dx71/u1uB3lwgE0JULZmKCAA+rBH7Gp53OfmtrOc6sfQkuJbYeS 47d4nJ1lMIfpehC6BOWBE7w7I55vik+EfFDMnMMmZnUcEWhGiizOhFCNeoZOVrsjOz+vjF /od93hAaBauCavDscZeUif0T0ulZuf8xNmP9hXZrxFhO6Yy02EbTRNbBwCd6Ww== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -2.32 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 7B6332FB0E X-Spam-Score: -2.32 X-Migadu-Scanner: scn1.migadu.com X-TUID: nKuuDC71wagF Kevin Foley writes: > Has anyone ever dealt with missing "Date" headers? My emails from Etrade > in particular are missing them for whatever reason. > > My only thought is to possibly use `sed` or something similar to add a > "Date" header based on the dates in one of the "Received" headers but > I'm not crazy about this idea. > > I also plan to reach out to Etrade to see if they'll resolve it for > future messages. If you access to .forward style processing on the delivery host (a relatively uncommon case, but perhaps less so among notmuch users) then adding time of delivery could be done by piping messages through formail -a $(date -R) formail is part of procmail; if that is not available the functionality could probably be replaced by a short python script, which would likely be more robust than a sed pipeline.