Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 16C04431FBD for ; Mon, 14 Jul 2014 06:25:28 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.099 X-Spam-Level: X-Spam-Status: No, score=-0.099 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, UNPARSEABLE_RELAY=0.001] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8lg8MLryJo+W for ; Mon, 14 Jul 2014 06:25:20 -0700 (PDT) Received: from smtp.pobox.com (smtp.pobox.com [208.72.237.35]) by olra.theworths.org (Postfix) with ESMTP id 89E27431FBC for ; Mon, 14 Jul 2014 06:25:20 -0700 (PDT) Received: from smtp.pobox.com (unknown [127.0.0.1]) by pb-smtp0.pobox.com (Postfix) with ESMTP id 5AEB125B47 for ; Mon, 14 Jul 2014 09:25:02 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=date :message-id:from:subject:to:in-reply-to:references; s=sasl; bh=Y fCXoPtKlVjT7jW/Xvu7YR0AvJM=; b=lD0M9Nq9VGVJm+us3vjjWMz13wywFNcYt p+8A2C92LuJivt39a9a3JOfp2qigFZL/gh/E/N/8CC0wvm7PtfGXeNPGl2FIfjMH CHpRARxJZcBNQ5i93asx64Zyd/b/1SpCeevwIZ+c+OGOsAbAWBRz327HGoZTT1XS NVmyrlzHKw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=date:message-id :from:subject:to:in-reply-to:references; q=dns; s=sasl; b=vKACqh Xa2b5q5QloMR89VTWGXwKz1bPjVdQhy5CRTAC9PtuFX7wlqmvIf7CYUewwRrkhri oH/oZPomRetTZQy+murOqjgY7BSadXyB3RIJbEfq/nhywQvLa/3lLb6ykOXZAMBO T4gf2xtOO46Pb7b0fFPyKdBeydvNRjnGwX9MA= Received: from pb-smtp0.int.icgroup.com (unknown [127.0.0.1]) by pb-smtp0.pobox.com (Postfix) with ESMTP id 0843325B46 for ; Mon, 14 Jul 2014 09:25:01 -0400 (EDT) Received: from ouroboros.ramov.inet (unknown [178.218.165.9]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pb-smtp0.pobox.com (Postfix) with ESMTPSA id F150E25B3F for ; Mon, 14 Jul 2014 09:24:54 -0400 (EDT) Received: from localhost (1000@localhost [local]); by localhost (OpenSMTPD) with ESMTPA id bce2a1d8; for ; Mon, 14 Jul 2014 15:25:10 +0200 (CEST) Date: Mon, 14 Jul 2014 15:25:10 +0200 (CEST) Message-Id: <11514334886126561373.enqueue@ouroboros.ramov.inet> From: Sime Ramov Subject: Re: notmuch-reply date format To: notmuch@notmuchmail.org In-Reply-To: <20140714130431.GB4660@mit.edu> References: <1722345767858996112.enqueue@ouroboros.ramov.inet> <20140714130431.GB4660@mit.edu> X-Pobox-Relay-ID: 3E7C2854-0B5A-11E4-A58B-9903E9FBB39C-45584858!pb-smtp0.pobox.com X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jul 2014 13:25:28 -0000 * Austin Clements [Mon, 14 Jul 2014 09:04:31 -0400]: > First, are you sure this is the right place to modify reply > attribution? The Emacs frontend builds its own reply template. I'm not > sure what the other frontends do. I'm not using any frontends, only CLI. > Assuming the CLI is the right place for you to change this, you > probably want to call notmuch_message_get_date, then localtime, then > strftime. The call to notmuch_message_get_header returns the literal > text from the message's Date: header, while notmuch_message_get_date > returns the parsed Date: header as a time_t. Thanks, will try.