From mboxrd@z Thu Jan 1 00:00:00 1970 Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2001:558:fe21:29:69:252:207:36; helo=resqmta-ch2-04v.sys.comcast.net; envelope-from=eklhad@comcast.net; receiver= Received: from resqmta-ch2-04v.sys.comcast.net (resqmta-ch2-04v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:36]) by hurricane.the-brannons.com (Postfix) with ESMTPS id 860CF788CB for ; Wed, 6 Jun 2018 10:07:21 -0700 (PDT) Received: from resomta-ch2-08v.sys.comcast.net ([69.252.207.104]) by resqmta-ch2-04v.sys.comcast.net with ESMTP id Qb7jfeSaV40iXQbu4fjYiY; Wed, 06 Jun 2018 17:07:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20161114; t=1528304840; bh=GLNc3IdUfOEMSoyCPtfg1Ax8DK0bumZ8sFbzZZ/Qlik=; h=Received:Received:To:From:Reply-to:Subject:Date:Message-ID: Mime-Version:Content-Type; b=XZl3TG0nL5e4BuNMz57Ppw8xj14kDOrzZD1vyf8DCHohUOE5N3+9R6WE/Bsqi5s1q sjjGPoh1T21xWLnR1aE46FmXx4YsLeVSAMpig4+rK1CG/Fl/OQrrlrp5VyJzS2VwEu C1XCPN5D8OWPKiyIfkClXlwkEq7OqPUF6e8B6bH/mLAoX6ymM83BAoYVJXIkFl5q79 +msGxMO6qK0lOXMT0ok36BZLLxQkzEOg9XpkvdjbK5XJnLlJlfIg+8suLZ4XETLu98 Gh75Dd0nyKievxhSiYe1r3z+wYyL5fmuFcNBcIkKgfJxB2FzRCD+cJO+b/Wp0jYkG7 LsDNPQjtqvnFQ== Received: from unknown ([IPv6:2601:408:c300:8f09:21e:4fff:fec2:a0f1]) by resomta-ch2-08v.sys.comcast.net with ESMTPA id Qbu3fYJYtmOP9Qbu4fwDTd; Wed, 06 Jun 2018 17:07:20 +0000 To:edbrowse-dev@edbrowse.org From: Karl Dahlke Reply-to: Karl Dahlke User-Agent: edbrowse/3.7.3 Subject: [edbrowse-dev] batch move and batch delete Date: Wed, 06 Jun 2018 13:07:19 -0400 Message-ID: <20180506130719.eklhad@comcast.net> X-BeenThere: edbrowse-dev@edbrowse.org List-Id: Edbrowse Development List Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfN89k9v9lV6s4PBkaMumytLIP+MqBAlW1gvqdD+RUEbUfjgA4GNTnTnMnuXovdC02e8DPzMkZLbyzf+VqbwPH+djx3qcrNzP3XaRN7yFl+AB/4hfACmv lumvuXYG7PXiH2XP3AGkkq+jPucemlIH2GptYxoSWfFDrJ47+17rDnJIol004VTYxCQHfBz24xK+HYg+tZM3PhxOa1XgWy03OLvcvJzFotxvrP5KlColJgvW If any of you are brave enough to try it: ... Beware, a bug might delete emails you didn't expect. I've tested it here, but I don't have hundreds of messages to move around either. This is from the updated users guide. If there are 300 emails in your spam folder, there is an easy way to delete them all. Type v to view them all, just to make sure a valid email didn't wind up here. You don't want to delete anything good by mistake. Then type b for batch mode, then d to delete. Poof, they're all gone. In the same way, you can batch move all the messages to another folder. However, move is more useful with the from clause. If the current message is from Fred Flintstone, type f, and edbrowse will print "from Fred Flintstone". Then type m cartoon, and all the messages from Fred Flintstone will move to the cartoon folder. You know what's interesting? When my friend Erwin sends me an email, and I look at it through imap, or pop3 for that matter, there is sender and subject and size, but no date and time. Run at db3 and you can see why. parseHeaderDate fails on mer., 06 juin 2018 14:52:10 +0200 Oops! That's something I never thought of. Our routine expects English day and month, not French. So almost all the emails in Erwin's imap will show no date/time. I could change the routine to recognize English or French, but is there a more general approach? Not that I can think of. Just brute force programming. Identify the language first, which isn't trivial, then use the days and months in that language. I'll see if there's a way to do this that isn't totally painful. Karl Dahlke