Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 944888 - net-mail/fdm-2.2-r2: Unable to fetch mail
Summary: net-mail/fdm-2.2-r2: Unable to fetch mail
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-25 08:28 UTC by Alexis
Modified: 2024-11-27 00:09 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Output of `emerge --info` (emerge.info,10.69 KB, text/plain)
2024-11-25 08:28 UTC, Alexis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexis 2024-11-25 08:28:09 UTC
After upgrading to fdm-2.2-r2 from -r1, i was unable to fetch mail:

```
$ fdm -a flexibeast-gmail fetch
flexibeast-gmail: connection closed
flexibeast-gmail: fetching error. aborted
flexibeast-gmail: 0 messages processed in 0.925 seconds
```

Downgrading to -r1 fixes the issue. Running `diff -u` on -r1 vs -r2 produces, snipping changes to the copyright line:

```
@@ -29,6 +29,9 @@
 
 PATCHES=(
 	"${FILESDIR}"/${PN}-2.2-configure-strlcpy.patch
+	"${FILESDIR}"/${P}-pcre2.patch
+	"${FILESDIR}"/${P}-uaf.patch
+	"${FILESDIR}"/${P}-pop3-utf8.patch
 )
```

Commenting out the pop3-utf8.patch line and rebuilding fixes the issue.

Will attach `emerge --info` output. 

Reproducible: Always
Comment 1 Alexis 2024-11-25 08:28:43 UTC
Created attachment 911840 [details]
Output of `emerge --info`
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-25 10:24:51 UTC
commit 2eb7c97b5c6e84778b9a569795dc326994848ecb
Author: Sam James <sam@gentoo.org>
Date:   Sun Feb 11 11:00:21 2024 +0000

    net-mail/fdm: backport misc fixes

    * Backport fallout fix for libpcre2 port
    * Backport fix for use-after-free
    * Backport fix for POP3 servers w/ UTF8

    Signed-off-by: Sam James <sam@gentoo.org>

My fault, apparently.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-25 10:25:36 UTC
I can drop that patch, but could you try building upstream master and confirm it's also broken, and if so, file a bug upstream and link it here? That'd be much appreciated.
Comment 4 Larry the Git Cow gentoo-dev 2024-11-26 07:03:41 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6eec61998a5548c266dbe496be1473314b9d8e76

commit 6eec61998a5548c266dbe496be1473314b9d8e76
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-11-26 07:02:48 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-11-26 07:03:20 +0000

    net-mail/fdm: drop broken pop3 patch
    
    The pop3 patch was a backport from upstream master but it appears broken.
    
    Drop it straight-to-stable.
    
    Bug: https://github.com/nicm/fdm/issues/140
    Closes: https://bugs.gentoo.org/944888
    Signed-off-by: Sam James <sam@gentoo.org>

 net-mail/fdm/fdm-2.2-r3.ebuild | 56 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 56 insertions(+)
Comment 5 Alexis 2024-11-27 00:09:18 UTC
Sorry i wasn't able to get to this sooner! i was hoping to do so yesterday, but life intervened .... Thanks for resolving this.