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 C618B431FBD for ; Fri, 5 Feb 2010 00:58:38 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.07 X-Spam-Level: X-Spam-Status: No, score=-0.07 tagged_above=-999 required=5 tests=[AWL=-0.071, BAYES_50=0.001] autolearn=unavailable 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 RDtfuflNo7Ez for ; Fri, 5 Feb 2010 00:58:36 -0800 (PST) Received: from mail-fx0-f223.google.com (mail-fx0-f223.google.com [209.85.220.223]) by olra.theworths.org (Postfix) with ESMTP id 778AA431FAE for ; Fri, 5 Feb 2010 00:58:36 -0800 (PST) Received: by fxm23 with SMTP id 23so509516fxm.2 for ; Fri, 05 Feb 2010 00:58:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:from:to:cc:subject :in-reply-to:references:date:message-id:mime-version:content-type; bh=xYiupAGIEOTz1GILmFkupj3wirp7Vx1y+KUXqHwGY1I=; b=aunP1VU7E7GwgZFkJU9pIsNbIAcFk4JamDopZu9Wk9z4luMDKhH/atEYulN9bd1oSN SC0dFd039bq/zS0wWLv8aANLk2hgrtTXMnWGbMrvJpSwn2CHzQ4yMPSIo6PTIQeEatt2 w0uktE2Jo31GaHSnDK/oK5iv2n8Iw304IG1Dg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; b=UFYrcvk+DzUflNROjNrX3Dox/bBXcuOBNvcGkyJlyTmAKgRKZHmAFSKAntbGYyzZqu peSb/fpEqJMAiF7PWJHhXeNhKN2qTbzFgHZgCFUL2p7PflqAoHMxAqi1kDa4Js+NhwBz 8AbCLTCizRaK8ig4Jm+UXhSSN+6ozcQ78Jj3A= Received: by 10.223.15.133 with SMTP id k5mr2255393faa.39.1265360315710; Fri, 05 Feb 2010 00:58:35 -0800 (PST) Received: from kunyang (vawpc43.ethz.ch [129.132.59.11]) by mx.google.com with ESMTPS id b17sm1822219fka.46.2010.02.05.00.58.33 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 05 Feb 2010 00:58:34 -0800 (PST) Sender: Jed Brown From: Jed Brown To: Carl Worth In-Reply-To: <87k4uspvr7.fsf@yoom.home.cworth.org> References: <87r5ripfy2.fsf@yoom.home.cworth.org> <1259450376-24523-1-git-send-email-jed@59A2.org> <1259450376-24523-2-git-send-email-jed@59A2.org> <87k4uspvr7.fsf@yoom.home.cworth.org> Date: Fri, 05 Feb 2010 10:00:31 +0100 Message-ID: <873a1gys40.fsf@59A2.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: notmuch@notmuchmail.org Subject: Re: [notmuch] [PATCH 2/2] notmuch-reply.c: Handle munged `Reply-To' headers. 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: Fri, 05 Feb 2010 08:58:39 -0000 On Thu, 04 Feb 2010 12:54:20 -0800, Carl Worth wrote: > And I'm glad I did because that turned up a bug in the patch, (using > == instead of != for the return value of strcasestr resulted in *all* > messages with a Reply-To header being considered as munged). Yikes, I've been using this thing for two months and hadn't noticed. > Here's one cleanup I made which you might find interesting as a style > issue (where I prefer naming a function based on what it *does* rather > than on what it's being *used* for): Yup, I do the same, but must have been too lazy to think of a decent name. Jed