From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/87330 Path: news.gmane.org!.POSTED!not-for-mail From: Julien Danjou Newsgroups: gmane.emacs.gnus.general Subject: Immediate expire on imap Date: Fri, 13 Jan 2017 12:22:55 +0100 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1484306658 24216 195.159.176.226 (13 Jan 2017 11:24:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 13 Jan 2017 11:24:18 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (darwin) To: ding@gnus.org Original-X-From: ding-owner+M35550@lists.math.uh.edu Fri Jan 13 12:24:14 2017 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cRzxZ-0004LE-IJ for ding-account@gmane.org; Fri, 13 Jan 2017 12:23:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.87) (envelope-from ) id 1cRzwq-00027i-6d; Fri, 13 Jan 2017 05:23:08 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1cRzwo-000274-Ie for ding@lists.math.uh.edu; Fri, 13 Jan 2017 05:23:06 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.87) (envelope-from ) id 1cRzwm-0005yB-1n for ding@lists.math.uh.edu; Fri, 13 Jan 2017 05:23:06 -0600 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by quimby.gnus.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1cRzwk-0002oo-6n for ding@gnus.org; Fri, 13 Jan 2017 12:23:02 +0100 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 7DAA1208C0 for ; Fri, 13 Jan 2017 06:22:57 -0500 (EST) Original-Received: from frontend2 ([10.202.2.161]) by compute4.internal (MEProxy); Fri, 13 Jan 2017 06:22:57 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=danjou.info; h= content-type:date:from:message-id:mime-version:subject:to :x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=K6y RDs91sj9/8euyG0hz4rvkFgA=; b=rXoV4Ck7yiyg7wECOI6tQ65IeX785kJiCuJ O/XVPUivAByBBmAadv3ZrICeBA38to5p4DWdhwqJVyFGOkxAnupLnppDnHtuavxp 2cYz5WqMQ0gD8IpgJszoXYX52JtWAGysI3HQywVrekvXwJ1YBIcBVLtBJSwjk2LL +m+X36VA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-sender:x-me-sender:x-sasl-enc :x-sasl-enc; s=smtpout; bh=K6yRDs91sj9/8euyG0hz4rvkFgA=; b=PhN1k Mn1YoA41DLMegfg6qirsmUsm13O/n9YUBpDzStbbvbSkxL2mPo0YdRvrNP3B6T3L CeRgdo2FqIG9SUFALvlCY+AK6DECxhFBzH8/0PJse1Sijt9WgD9Vaan9Hc/DkNaC V8FU4ZXI5d61XPFaqLqV4YYDeXyzCot7snlBmE= X-ME-Sender: X-Sasl-enc: Qqdcws8RkUqTblMfUniPTMf3EFLwshhOSuqN4YAYWYdp 1484306577 Original-Received: from abydos (unknown [176.159.32.89]) by mail.messagingengine.com (Postfix) with ESMTPA id 0AAEA24752 for ; Fri, 13 Jan 2017 06:22:56 -0500 (EST) Mail-Followup-To: ding@gnus.org List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:87330 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi folks, I'm trying to expire some of my mails with 'immediate with nnimap, but I think it actually does not really work. It only work with mail that are before yesterday. I see the following as the potential problem: (defun nnimap-find-expired-articles (group) (let ((cutoff (nnmail-expired-article-p group nil nil))) (when cutoff (with-current-buffer (nnimap-buffer) (let ((result (nnimap-command "UID SEARCH SENTBEFORE %s" (format-time-string (format "%%d-%s-%%Y" (upcase (car (rassoc (nth 4 (decode-time cutoff)) parse-time-months)))) cutoff)))) (and (car result) (delete 0 (mapcar #'string-to-number (cdr (assoc "SEARCH" (cdr result))))))))))) If `nnmail-expiry-wait` is 'immediate then (nnmail-expired-article-p group nil nil) returns (current-time), which is translated in e.g. 13-JAN-2017 by `nnimap-find-expired-articles`. So if the message is expired today, well, it does no seem to work. Sounds like a little bug to me, and I'm hoping that someone will help me fixing it before I commit random garbage to the trunk. ;-) It has been a long time since I played on that! =2D-=20 Julien Danjou # Free Software hacker # https://julien.danjou.info --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJYeLiPAAoJEGEbqVCLeKXCqWgQAKxb2vKUKeAt1Pr3eTB4jU+b juXRLRq/xhvFmQBpdGuxPm/phLnh09Sm8QWN6RONArau2MdEdNDT1Dsv66bm+L3x Wm4qBcbU4iQW+Kh+fxNXYqQhCd5RbmgdJ2UU4Qzj/P73Mx1tB3j8KdWKS0O/pN3P PiBu1DGjLS3XIr4yoIwWNn1uKHDU/GPU6eYmy2/PnmRo7+wOB48d93UDsXKgY9jo PqoghGPHKsAmjfsG8zDYNm93T7vajPhYECYu8+6eiU93BZFkG/0Ojoe810uuXfgX 0osNPQzHequQd6PDWKChfqhSApT2PYetiNkyLMdCwJtu0cc2+G8tLZ48s80ON5eU Mu0DJ1ym4Dz9GiGCHNCppLhlmNk4T26asGOEEpLNsLFTXpCvPRgLhVa194WvNHJ9 Y33PIK0tQbtOHY7RXka2wNYSazJg1u9AWG1rQ7elCfHEn42KUFpW+kGUnjBc0M49 HRDCR8brC2Q/CsTXGgPX2DmuM8Dy6gsrbePxyKfDI/Y7zmEGuHni8qjCx9c/4nQD CqRYqDW01pibT+PW1v5o+m1RDdTaWIinwzQGZq9EEGrTGa2PcARbAH4vf9dPjWFB 5BlTWq7sIicWoPdjT5VL4Ck7Vwd3clh/Bc64RvxXksYLyX/2Sh+xaM21CbET29Xh vnNXkB66aMlgjbB84muJ =7w8n -----END PGP SIGNATURE----- --=-=-=--