From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Martin Marshall Newsgroups: gmane.emacs.bugs Subject: bug#61380: 30.0.50; rmail-summary-output deleting wrong email Date: Thu, 09 Feb 2023 00:44:46 -0500 Message-ID: <875ycbpf3l.fsf@martinmarshall.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7273"; mail-complaints-to="usenet@ciao.gmane.io" To: 61380@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 09 06:46:15 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pPzl7-0001j8-Om for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Feb 2023 06:46:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pPzkz-0007ch-1L; Thu, 09 Feb 2023 00:46:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pPzkw-0007cE-Ln for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2023 00:46:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pPzkw-0001e2-DO for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2023 00:46:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pPzkv-0003TC-Vd for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2023 00:46:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Martin Marshall Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 Feb 2023 05:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61380 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.167592150113239 (code B ref -1); Thu, 09 Feb 2023 05:46:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Feb 2023 05:45:01 +0000 Original-Received: from localhost ([127.0.0.1]:57207 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pPzjw-0003RC-87 for submit@debbugs.gnu.org; Thu, 09 Feb 2023 00:45:01 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:53296) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pPzjr-0003R1-81 for submit@debbugs.gnu.org; Thu, 09 Feb 2023 00:44:59 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pPzjq-0007HA-V9 for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2023 00:44:54 -0500 Original-Received: from mail-ot1-x32e.google.com ([2607:f8b0:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pPzjn-0001Gz-MQ for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2023 00:44:54 -0500 Original-Received: by mail-ot1-x32e.google.com with SMTP id g15-20020a9d6b0f000000b0068db1940216so259832otp.5 for ; Wed, 08 Feb 2023 21:44:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=martinmarshall-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=p0i3YE8dvfMtD2ezOdIdPLWVKOfnghoyY0C7mzrlnus=; b=Lw826X66B2/46xYprlCpkaAfOaY4mu9mHv+AqkTVZmGeZN57bg2gwnZtlqxbOaiuWy B3TwXwQZZjd6vMiZvj8dstY6gte8c7Ln5aP+T9ymE2EL6p9FyNp6gBXEyaDuHnAsmNuZ WHHetcCFKHTfcpBchhKaNM58fvH8i6w/vZWUsf2tr243qR1KWwYbPd5kVUNkJc/BlDc5 u27JQAXckaLSDQWjr/HJ6JzKhspHFJU5cOdgQ7BlFGEKKe6tr9O/jmgV6IKg1ie/Ijxv jeQ6JJrFz6URnNGf/eS//dAlYsYoCk4lvfTzN6VOhtDEbhMCFStFXkLLDOeC+00sQWqv NlZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=p0i3YE8dvfMtD2ezOdIdPLWVKOfnghoyY0C7mzrlnus=; b=KoDOov+9bojEQ4Y0jQw7m5BSlM1UJ+XNGHeqL1QnQ5qrT6MRduEX94rKtHrScf+/g+ 1oLF3JJZUVH3FCWJL9lzrlt/2bkPACW7qlV3nGlJuDLPWM56VxPJDCFpSY2bqY9Nvw77 wyhoxFAp2u7SSzJV8U3xf+2NyC1zkZQtLwtRaqo3b8t1jW0blva9ddmPy9fDavhdzKFF AJVnZtoWLtjZM67Q49daGLSec66+Inv6UMorobeBArN4qptTJhrtBZHmJBacCli6XSey B9wK2R8Y/grIeumjgyT13Yh7Skbfx4XPK69YmP285uHFR6b4kwvxUo4Y+n4jDLyzsa+n XN2w== X-Gm-Message-State: AO0yUKXgN4vA/kVG/yjxnLvrA9glQMbXcAxlseejc408UzBUKMc9fzXs W5k+xS6+88zxFWiTXkycqIpaJvdaUbVPyggB+48= X-Google-Smtp-Source: AK7set9NCokZOyz4fDJKZXoTz+82hkfY0gPmW7/ugUsnh5hML0yDwoQ2+SOFD1ziLU4h4/x7bhD9IQ== X-Received: by 2002:a9d:7654:0:b0:68d:72c8:10a9 with SMTP id o20-20020a9d7654000000b0068d72c810a9mr5514190otl.9.1675921488908; Wed, 08 Feb 2023 21:44:48 -0800 (PST) Original-Received: from localhost (68-252-220-225.lightspeed.tukrga.sbcglobal.net. [68.252.220.225]) by smtp.gmail.com with ESMTPSA id z19-20020a056830129300b0068bbb818c64sm237792otp.25.2023.02.08.21.44.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Feb 2023 21:44:47 -0800 (PST) Received-SPF: none client-ip=2607:f8b0:4864:20::32e; envelope-from=law@martinmarshall.com; helo=mail-ot1-x32e.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:255186 Archived-At: Greetings, Bug description: When both rmail-delete-after-output and rmail-output-reset-deleted-flag are enabled, calling rmail-summary-output marks for deletion the email *following* the selected email. Expected behavior: The *selected* email header should be marked for deletion after the same email has been copied to the destination folder. Steps to reproduce: This is reproducible with "emacs -Q", but we need a dummy mbox file and destination file. So here's a (probably overly) detailed process for setting that up and then reproducing the bug. Create and enter a directory for the files: $ mkdir ~/temp $ cd ~/temp Download sample mbox file from GitHub, and remove blank lines from the top of the file: (It's not my file, but it will work to reproduce the bug.) $ wget -nd https://raw.githubusercontent.com/qsnake/git/master/t/t5100/samp= le.mbox $ sed -i '/[^[:space:]]/,$!d' sample.mbox Create an empty file to which we can output one of the messages from the sample file, and start Emacs. $ touch destination $ emacs -Q In the *scratch* buffer, paste the following: (setq rmail-delete-after-output t rmail-output-reset-deleted-flag t) Then evaluate it. C-x C-e Now open the sample mbox folder and bring up the summary window. C-u M-x rmail RET sample.mbox RET h Go to an email in the summary window and call rmail-summary-output to copy it to destination and delete it from sample.mbox. I'll jump to the 3rd email, which is from an address at kernel.org. 3 j o temp/destination RET The selected email number 3 was copied to the destination folder. However, it should have also been marked for deletion and wasn't. Instead, email number 4 was marked for deletion. Best regards. In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.30, cairo version 1.16.0) Windowing system distributor 'The X.Org Foundation', version 11.0.12101004 System Description: Guix System Configured using: 'configure CONFIG_SHELL=3D/gnu/store/4y5m9lb8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5.= 1.8/bin/bash SHELL=3D/gnu/store/4y5m9lb8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5.1.8/bin= /bash --prefix=3D/gnu/store/igny5mwgmpw4nw1a171sn372ci8qz7gf-emacs-next-29.0.60-= 0.ac7ec87 --enable-fast-install --with-modules --with-cairo --with-native-compilation --disable-build-details' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB Important settings: value of $EMACSLOADPATH: /home/martin/.guix-profile/share/emacs/site-lisp= :/gnu/store/igny5mwgmpw4nw1a171sn372ci8qz7gf-emacs-next-29.0.60-0.ac7ec87/s= hare/emacs/30.0.50/lisp value of $EMACSNATIVELOADPATH: /home/martin/.guix-profile/lib/emacs/nativ= e-site-lisp value of $LC_MONETARY: en_US.UTF-8 value of $LC_NUMERIC: en_US.UTF-8 value of $LC_TIME: en_US.UTF-8 value of $LANG: en_US.utf8 locale-coding-system: utf-8-unix Major mode: =F0=9F=93=9C Minor modes in effect: flyspell-mode: t minibuffer-electric-default-mode: t marginalia-mode: t which-function-mode: t flymake-mode: t winner-mode: t save-place-mode: t savehist-mode: t repeat-mode: t recentf-mode: t pixel-scroll-precision-mode: t global-auto-revert-mode: t electric-pair-mode: t delete-selection-mode: t vertico-reverse-mode: t vertico-mouse-mode: t vertico-mode: t consult-notes-denote-mode: t global-corfu-mode: t corfu-mode: t auto-insert-mode: t mini-navblock-mode: t mini-formfeed-as-line-mode: t dynamic-completion-mode: t display-time-mode: t mini-tweak-themes-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tab-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t column-number-mode: t line-number-mode: t auto-fill-function: do-auto-fill indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t abbrev-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr shortdoc textsec uni-scripts idna-mapping ucs-normalize uni-confusable textsec-check shr-color color qp rect cape ffap windmove org-appear flyspell ispell flymake-proselint org-indent oc-basic org-element org-persist org-id org-refile avl-tree ol-rmail org-mouse ol-irc ol-info ol-eww eww url-queue shr pixel-fill kinsoku url-file svg xml dom browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util url-parse url-vars mm-url gnus nnheader range ol-doi org-link-doi ol-docview doc-view image-mode exif ol-bibtex bibtex iso8601 ol-bbdb ob-python python treesit ob-perl org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-src ob-comint org-pcomplete pcomplete org-list org-footnote org-faces org-entities noutline outline ob-emacs-lisp ob-core ob-eval org-cycle org-table ol org-fold org-fold-core org-keys oc org-loaddefs cal-menu calendar cal-loaddefs org-version org-compat org-macs emacsbug cl-print mwim rmail-spam-filter rmailedit rmailkwd rmailmm message sendmail mailcap yank-media puny rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader mail-parse rfc2231 rmailsort rmailsum undigest executable geiser-mode geiser-xref geiser-compile geiser-guile info-look transient edmacro kmacro geiser geiser-debug geiser-repl geiser-image geiser-capf geiser-doc geiser-menu geiser-autodoc geiser-edit etags fileloop generator geiser-completion geiser-eval geiser-connection tq geiser-syntax geiser-log geiser-popup view geiser-impl geiser-custom geiser-base scheme tabify rmailout rmail auth-source password-cache json map rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils help-fns radix-tree cus-edit cus-start magit-base magit-section format-spec crm eieio eieio-core dash mule-util jka-compr vc-git diff-mode vc-dispatcher minibuf-eldef marginalia face-remap info ehelp add-log comp comp-cstr vc-svn disp-table which-func imenu hl-line time-date checkdoc lisp-mnt flymake-proc flymake compile comint ansi-osc ansi-color warnings thingatpt winner saveplace savehist repeat recentf tree-widget wid-edit pixel-scroll cua-base subr-x autorevert filenotify elec-pair delsel init my-settings vertico-reverse consult-vertico vertico-mouse vertico consult-notes-denote denote xdg dired-x dired-aux dired dired-loaddefs xref project byte-opt bytecomp byte-compile ring consult-notes consult bookmark text-property-search pp compat compat-29 mini-packages pdf-loader corfu mini-expansions easy-expand skeleton expand mini-bindings mini-builtins cl-macs autoinsert mini-mode-line find-func mini-menus mini-core pcase cl-seq cl-extra help-mode icons cl-loaddefs cl-lib modus-vivendi-tinted-theme completion time cus-load my-pre-custom-settings gv easy-mmode modus-themes kbd-autoloads link-hint-autoloads markdown-mode-autoloads minimap-autoloads mwim-autoloads vundo-autoloads free-keys-autoloads denote-autoloads org-appear-autoloads elfeed-autoloads olivetti-autoloads cape-autoloads marginalia-autoloads esup-autoloads sr-speedbar-autoloads corfu-autoloads vertico-autoloads magit-popup-autoloads geiser-guile-autoloads geiser-autoloads edit-indirect-autoloads bui-autoloads guix-autoloads rx modus-themes-autoloads showtip-autoloads pos-tip-autoloads popup-autoloads sdcv-autoloads flymake-proselint-autoloads async-autoloads with-editor-autoloads dash-autoloads magit-autoloads everywhere-autoloads expand-region-autoloads pretty-speedbar-autoloads compat-autoloads consult-autoloads avy-autoloads embark-autoloads tablist-autoloads pdf-tools-autoloads mu4e-autoloads auctex-autoloads tex-site emms-autoloads guix-emacs early-init rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit xinput2 x multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 936381 31637) (symbols 48 34023 6) (strings 32 152466 7215) (string-bytes 1 4620632) (vectors 16 86624) (vector-slots 8 2246791 81933) (floats 8 487 506) (intervals 56 53506 3437) (buffers 984 27)) --=20 Martin Marshall law@martinmarshall.com