From nobody Mon Sep 09 11:00:04 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4X2P4N5dSTz5W39C for ; Mon, 09 Sep 2024 11:00:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4X2P4N3VMMz3x6Q for ; Mon, 9 Sep 2024 11:00:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725879604; a=rsa-sha256; cv=none; b=azkcckYttEhga5J5znNM2Ft3b6C3XXVMdkciO0qP0GLQJN3EZfzELxsIX/lr4U0qFjBHFV p0kwTJRrWzHA8blYl+WWWxNXyzKqboNPQrO9A1iF5JPbOGrq+ZNsohm1S6+kv7rjxFdAJ7 JmtD7fPnJZ6CLFPMKDZx2iAyTmJo77SVyv2zTzPAsR9dtCP9o+dIkAxNLKe7gGJmKPIUxJ GI6aY8LNaHGeCRKtrN3NFS7CxRiqjrCW2G6zq0lBdj+ulrFtjh0hH/qSrfND5K96Pu3zca 1QPusV5ee3e2S3dDCv4YmKelCUCrrWN3YrpD5uMBAYOgnOeYBtQymnrCsP37Vw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725879604; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NZWAk2gdNPiTx7WQd6l9wtgHPa8vcEFeeT1BePET5zw=; b=Ccxv6S2xu+r5kS91XFbLNxn76bwxan9zbfc07yScnIY16ULDyttl4w/W4vHQ1Dxjzy/o7w kb03mqOzOxUPuAoCnvps5B3v2rb5qaJLUGqJHL76hT5UCJcK86ihFq1oxjYwk/b15NT3e6 1hNz1PSMAlu6AQrFyZkWNaSt0GZS39Rw3YggXO6L5u3fvu+CWr5OCAmlL8LqayOUDWPrvm ZpRlpehR6cnOCFmVQzBVsHeuQSKGK9ZmZyZvjLToy462G4bZUd6rNcEDW3gF1eKLrNYSKT dAEChDuUYHVVGdVl9QJTFBXWfApV10/GXBydNfjaYu0fabIDpfsmGX5Sky1lTA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4X2P4N30Gcz10yw for ; Mon, 9 Sep 2024 11:00:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 489B04IQ010649 for ; Mon, 9 Sep 2024 11:00:04 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 489B04PS010642 for bugs@FreeBSD.org; Mon, 9 Sep 2024 11:00:04 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 281131] Potential DMA (DragonflyBSD Mail Agent) Bug Date: Mon, 09 Sep 2024 11:00:04 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 14.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: vermaden@interia.pl X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D281131 --- Comment #3 from Slawomir Wojciech Wojtczak --- (In reply to Ed Maste from comment #1) More explanations: # Mail becomes invisible in mail (/usr/bin/mail) application. # That's what the Bug Report's example shows. # # Precondition to make the phenomenon most easily visible: #=20 # In case the ~/mbox is empty: # Problem starts to be visible only after the second and following=20 # reception of new mail.=20 Every time you open "mail" on the shell command line after new=20 mail has arrived in the user's system mailbox, then=20 this list of new mail in the system mail box is shown, and=20 the single messages can be read correctly.=20 The phenomenon becomes=20 visible only after that:=20 After having read all new messages for the first time,=20 the user quits the application by pressing 'q'.=20 This moves the new messages from=20 the account's system mailbox /var/mail/ (it was put there by 'dma' local message delivery) into=20 the users ~/mbox file. (this is done by '/usr/bin/mail') Still, everything looks fine.=20 #=20 # Hint: ~/mbox should end with and empty separator line (0xA0xA) # after the last message # (this prepares for concatenation of new messages incoming later, # in the next '/usr/bin/mail'-invocation.) # but it doesn't add a final empty line by itself. # 'mail' just moves messages previously prepared by 'dma'. #=20 Now, we get new mail, let's say 5 minutes later. We open '/usr/bin/mail'. It shows the new-mail list from=20 /var/mail/, we read them, then we leave with 'q' Like always, leaving via 'q' moves the mail we have just read=20 from: /var/mail/ into: ~/mbox Now, we want to look at our saved mail once again. Via "/usr/bin/mail -f". There is at least one message missing in the list of header lines=20 shown within '/usr/bin/mail'. Just repeat the example, given in the first report.=20 Compare the number of messages in ~/mbox against=20 the number of messages shown via "/usr/bin/mail -f".=20 ### This is easily repeatable out of the box with a new installation of=20 14.1-RELEASE-p4 into any jail (VNET jail, vlan-jail, doesn't matter.) ### Everything is caused by dma delivery into /var/mail/.=20 'dma' doesn't add a final empty line after the last new message in=20 system mail boxes. This causes concatenation problems when the last message is moved into=20 another mailbox, or when whole mailboxes are concatenated.=20 ### Again: Repeat the example, and count the number of mails. You have to read and save new mail =3D=3D> at least twice <=3D=3D=20 to see it. You'll see it by using "/usr/bin/mail -f", afterwards. Greetings. --=20 You are receiving this mail because: You are the assignee for the bug.=