From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS4983 192.198.162.0/23 X-Spam-Status: No, score=-3.3 required=3.0 tests=AWL,BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id E64BB1F44D for ; Thu, 11 Apr 2024 22:32:49 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=hUanbGDv; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712874770; x=1744410770; h=message-id:date:to:from:subject: content-transfer-encoding:mime-version; bh=M9OZnRzR+6XL7m/w+IfB/znSoj3RfDzshltar0JTxiI=; b=hUanbGDvKu5A03BF+nIPPo89nLC0TpZCrcpeqFlBG8izGcN64t1eu4DP Ha6evH+eyCCOr7qtGzAKVhcRNaMTzwtz+gIrbIk54KE7AVbtcomI5IKUW cPiVeUNaGSSfv5oJ/acfdw6Xows+MA5s5HXdU38Y9Whx5rQ3pIu9AOLEw 5E41hpCt/HsXA2JG/UaaCqVJJGFPuZTGCLYF6XebJHYHkg0CSjMd2Zo2B iJSfRhIvUdmRt8rt67vAHruNX+k8c3GXaXZYKEaOd1464Y6WNMAWFdzt5 IFsK7SXFM5RI7Gqe0PHRvn0oM6S7zhVIS+38u3S+O44A7q8isPCdDVMfG w==; X-CSE-ConnectionGUID: AiPoJma+SmuodqPT0QhOsw== X-CSE-MsgGUID: eWpRiHJHQeS6nYp79KxL0g== X-IronPort-AV: E=McAfee;i="6600,9927,11041"; a="33713642" X-IronPort-AV: E=Sophos;i="6.07,194,1708416000"; d="scan'208";a="33713642" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Apr 2024 15:32:49 -0700 X-CSE-ConnectionGUID: aEQxNSWnT9uHdzIB/se3HA== X-CSE-MsgGUID: qPVcBissSs+0xOju+m5VaA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,194,1708416000"; d="scan'208";a="25711442" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orviesa003.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 11 Apr 2024 15:32:49 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 11 Apr 2024 15:32:48 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 11 Apr 2024 15:32:47 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Thu, 11 Apr 2024 15:32:47 -0700 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.168) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Thu, 11 Apr 2024 15:32:47 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LUVTc7tekoMTV9m6qunGR3E+GHQFAB8chkCn5L/ze3wnsaKv4BE7UnAtE9GcRk27GeW3H6NX6wB2cOwyc9kNZam0zH2iZahk/rqpPBfkSJczfXAc4ga1G1lOnRiigkdduxp5fNKN3c4sfyh7MfcFRKZ8VjEBaAl4U11dnxdzo94JFe+EhTp7YtQ35L1fRO4B8eJQD9q2pYeAMQCw7YXXn4Yv7uNVcBFygxNTUd7KPrn4TTsWkHZCkEKIeoDJSpZX3l/UMbQU1DOh7wn89msuar+8iE2MU/bi0AtHR2Ij8WrP7iRXtNTxs/7caKEg2YPks05XBWtv/aLgX2HBPHPDGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=xauvy31q+5I3E+3FHRPk61fTszAv/je50WFCiRtjttU=; b=oSLMJVc1G4zGg7CPUx+fZ8ALGroIk2MATknjKKbL0Bi3J8RRrSoM3Pfsxz19/uxxzGNQ5DsPPXon/htgYVuzDQLiL9/Bbc+FJ4aH/YAyoH3L59K4wT6vHq774p9OXPQvs+wpFjZ6Q6PEDnKvr0rr9ZhEEFs/m73HlwWQe3EutY1TjQWD3w7cePQ5S5LjARXp90whEi1tV8MknwdQZUYEpgu5UGaf0ViSlRkc6G4hzc7oL8FK+8oZFrLtGzfK9V5T+tNlVR1E/8pXiM9hoyR6TBSgKcqfFCpu53UM86uMoMNUfFJrG5MLdftv5E7KzG/qVlFrdsPSSF1ah0nNB7bkFg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from CO1PR11MB5089.namprd11.prod.outlook.com (2603:10b6:303:9b::16) by SA1PR11MB6821.namprd11.prod.outlook.com (2603:10b6:806:29d::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7430.46; Thu, 11 Apr 2024 22:32:45 +0000 Received: from CO1PR11MB5089.namprd11.prod.outlook.com ([fe80::b383:e86d:874:245a]) by CO1PR11MB5089.namprd11.prod.outlook.com ([fe80::b383:e86d:874:245a%5]) with mapi id 15.20.7452.019; Thu, 11 Apr 2024 22:32:45 +0000 Message-ID: <3c335d9a-f0dd-43c3-b1e1-ce94cc291ecb@intel.com> Date: Thu, 11 Apr 2024 15:32:43 -0700 User-Agent: Mozilla Thunderbird Content-Language: en-US To: From: Jacob Keller Subject: downloading t.mbox.gz messages are not sorted in expected order Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: MW4P223CA0006.NAMP223.PROD.OUTLOOK.COM (2603:10b6:303:80::11) To CO1PR11MB5089.namprd11.prod.outlook.com (2603:10b6:303:9b::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PR11MB5089:EE_|SA1PR11MB6821:EE_ X-MS-Office365-Filtering-Correlation-Id: 82dc496d-4798-4bb4-8621-08dc5a774edd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: SWsQuLAr8YgoJm+2vWzno/NdrVCYUL7h46d5O/1Iu/1g/SpoUfO1gF7C8CcHv7ymC3PleXjknNiJPwaPh6/ZiIPqllIVccyDoDJ5lLp5Gu4ubzB0h8OEYtv0XK2xJ60mm3AJgKMu5E4S3JhBQvt85/fh9nAC37NPauuiZmKfz+g+RrFviY26OCNIX8yOOZk88QG+kuMBOpNcU7KsXhZXcIYilhAmRRBnwPqsY9GyV712kSajXlLMTdvgOVLdwUWp+LKZt8tHJ2kINwq7MgNL5M6pxUVXQHBy1PYqBQHBI9pm1kruaK5Ah4ZEsUOCeCJHDrApUW9mcu1lVbLRtKFRTMy43tv/JHFkSLJVRCNObfG0YUKUWcRbg78SPld9zruUz96qve41qWVFRnLf18PnfV8FSOjN02l63dJXudTiJrz3uFLCroy77GXKSkMnVERBB+VjQVvwWoPnFPgKjb28WxJENyosyrqsZWkg1SzkqkqTL6ufzeNe/g29DRqSbW2s12wNX3jwUc0BkkKKu9GpZqXkca5seuRt5UH0gsPkQ+Z/MSaXzz7NU9foeR5Icxe5gyq1zVfoNSoqEtqhxraahHhOhuS8QI+hkFtsTP9RG4N4BtuFooojxymBqffUS2HsEYKRPBVnWMOF1tZZRqESX60aEzGCg8NML3ZSo3L228E= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO1PR11MB5089.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(1800799015)(376005)(366007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?dkpXR1NON2JwaTZqcE1Ic3JzTWhaVGhCSE9WcmJwNWIrQ2ZMa0JOb3lPMERV?= =?utf-8?B?QWJDdmVvMWFBQit4OXJvYXRGVmpVNE9EVUIzQkxyZVJDYm0zM2Vwbyt1ZmVJ?= =?utf-8?B?MHpuUldiekpJWitzTGFLeTN1N242UVJaR2luQy82eFVtU0ZFVE81T1kyTTlG?= =?utf-8?B?YmJWbHB3aDhkcGtRNEszc0VtaWRFdFB0UXpJcWhacnZQVHJSL2xIZW9tNWdK?= =?utf-8?B?amRicWpOb0grZjFVYkhmMGQ2R2xUc2xVOUdmU3ZUUkluTXowbFZpaWNzNVBs?= =?utf-8?B?Q0N1Wn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laFV6RDM0UXE3QXJm?= =?utf-8?B?QmJrZi9iclp5VHRPZW5JL1JDYjVZaTNTL1JpQ0JJcVFwTENjekZsc1cySmlL?= =?utf-8?B?OFE9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: 82dc496d-4798-4bb4-8621-08dc5a774edd X-MS-Exchange-CrossTenant-AuthSource: CO1PR11MB5089.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Apr 2024 22:32:45.2125 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: lAld19e6IzguvUQJNxm/6aw6+mX9jBdqcSeRnyKSTHh8yFrMxs7bBW557ocOlTmUNhx26qDO00GPlL3SZxCv9BzOczcme9JNQy276kdomBU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR11MB6821 X-OriginatorOrg: intel.com List-Id: Hi, I sometimes download patch series off of public inbox hosted servers to apply with git-am. Occasionally I have found that these do not apply cleanly because the thread is not sorted in patch order. For an example, see https://lore.kernel.org/lkml/20240308230557.805580-1-alex.williamson@redhat.com/ This thread shows up and the links are all in order on the HTML view, but if I download the t.mbox and split it using git mailsplit, I get the following: $ git mailsplit t.mbox -osplit $ cd split $ for f in *; do echo $f ; grep '^Subject:' $f; done > 0001 > Subject: [PATCH v2 0/7] vfio: Interrupt eventfd hardening > 0002 > Subject: [PATCH v2 2/7] vfio/pci: Lock external INTx masking ops > 0003 > Subject: [PATCH v2 3/7] vfio: Introduce interface to flush virqfd inject workqueue > 0004 > Subject: [PATCH v2 1/7] vfio/pci: Disable auto-enable of exclusive INTx IRQ > 0005 > Subject: [PATCH v2 4/7] vfio/pci: Create persistent INTx handler > 0006 > Subject: [PATCH v2 6/7] vfio/platform: Create persistent IRQ handlers > 0007 > Subject: [PATCH v2 5/7] vfio/platform: Disable virqfds on cleanup > 0008 > Subject: [PATCH v2 7/7] vfio/fsl-mc: Block calling interrupt handler without trigger > 0009 > Subject: RE: [PATCH v2 5/7] vfio/platform: Disable virqfds on cleanup > 0010 > Subject: RE: [PATCH v2 6/7] vfio/platform: Create persistent IRQ handlers > 0011 > Subject: RE: [PATCH v2 7/7] vfio/fsl-mc: Block calling interrupt handler > 0012 > Subject: Re: [PATCH v2 1/7] vfio/pci: Disable auto-enable of exclusive INTx > 0013 > Subject: Re: [PATCH v2 2/7] vfio/pci: Lock external INTx masking ops > 0014 > Subject: Re: [PATCH v2 3/7] vfio: Introduce interface to flush virqfd inject > 0015 > Subject: Re: [PATCH v2 4/7] vfio/pci: Create persistent INTx handler > 0016 > Subject: Re: [PATCH v2 5/7] vfio/platform: Disable virqfds on cleanup > 0017 > Subject: Re: [PATCH v2 6/7] vfio/platform: Create persistent IRQ handlers > 0018 > Subject: Re: [PATCH v2 7/7] vfio/fsl-mc: Block calling interrupt handler > 0019 > Subject: Re: [PATCH v2 1/7] vfio/pci: Disable auto-enable of exclusive INTx > 0020 > Subject: Re: [PATCH v2 6/7] vfio/platform: Create persistent IRQ handlers > I'm not really sure why messages appear in this order in the t.mbox file. The messages appear sorted properly when viewing the thread via the next and previous links and in the summary of links at the HTML display.. Any ideas? It is rather frustrating to have to realize that an mbox is not sorted and I have to split and sort it manually... I tried looking through the the public-inbox to see if I could figure it out but its not clear to me. Maybe its because of how thread_html uses walk_thread to go in a particular order where was the mbox code seems to just iterate over messages in the thread and go in essentially a random order? Thanks, Jake