mailsync
The package downloads source code from SourceForge and a Greek university mirror (ftp.ntua.gr), both plausible hosts for open-source projects; the latter is not whitelisted but is a legitimate academic institution hosting public software, and the downloaded content is source code built locally, not a prebuilt executable, so the risk is low.
Triggered rules
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package downloads source code from SourceForge and a Greek university mirror (ftp.ntua.gr), both plausible hosts for open-source projects; the latter is not whitelisted but is a legitimate academic institution hosting public software, and the downloaded content is source code built locally, not a prebuilt executable, so the risk is low.
1 higher static finding superseded - not the current verdict (shown for transparency)
source_untrusted_domain
One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).
-
PKGBUILD:14
"http://ftp.ntua.gr/pub/net/mail/imap/imap-${_imapver}.tar.gz"
PKGBUILD
1 offending line(s) highlighted# Maintainer: Adrián Pérez de Castro <aperez@igalia.com>
_imapver='2007f'
pkgname=mailsync
pkgdesc='Synchronizes a collection of mailboxes using a 3-way diff'
url=http://mailsync.sourceforge.net/
pkgver=5.2.7
pkgrel=1
license=(GPL-2.0-only)
arch=(x86_64 i686)
depends=(pam)
makedepends=(autoconf automake)
options=(zipman)
source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver}/${pkgname}_${pkgver}-1.tar.gz"
"http://ftp.ntua.gr/pub/net/mail/imap/imap-${_imapver}.tar.gz"
1006_openssl1.1_autoverify.patch
c-client-2006k_GENTOO_amd64-so-fix.patch
c-client-static-link.patch)
sha512sums=('d0379071fa77380d295e1fbbc0fd0e9401c49893d5d6079d4a59fbaf62011ae6870a1ee25672e9f0557f410555827a4ffc53c3b93507b589a4916569c04ee8cf'
'7c3e1d9927872001e768ff2ddbcf3af74078243efe58dd70e01d966856b7611134e4b579818691a954bade9acaeeda6f2f30f40d812b8aa20990de5cb90d5d35'
'7ecbe52adc6e3d1deee05790745642f794150ffaebf51c0cf689dc036eea9c7d80e643648aac37bf0aa83ac138b8bb63abfad3b540bc9440de3456162dfabae5'
'213f06e133704ed2bb9fc6900edb7a4505bf6965409ecf76502bf9cafdf7c981bca552479f8ffaa1a355d2f1c1c08dbe0453fa5bce06590f6627d0e622c70879'
'0a005f179eff42778160e7d43d6ec1a5c571db194eec8259e4e41efb3ffa5d7473677b1d41d6e242e348cc2561cea55b67ba5e04befcb851214b312386bd691a')
prepare () {
cd "${srcdir}/imap-${_imapver}"
# Straight out of the "imap" PKGBUILD.
sed \
-e "s:-g -fno-omit-frame-pointer -O6:\${CFLAGS}:" \
-e "s:SSLDIR=/usr/local/ssl:SSLDIR=/usr:" \
-e "s:SSLCERTS=\$(SSLDIR)/certs:SSLCERTS=/etc/ssl/certs:" \
-i src/osdep/unix/Makefile
patch -p1 -i "${srcdir}/c-client-2006k_GENTOO_amd64-so-fix.patch"
patch -p1 -i "${srcdir}/1006_openssl1.1_autoverify.patch"
cd "$srcdir/$pkgname"
patch -p1 -i "$srcdir/c-client-static-link.patch"
autoreconf -fvi
}
build () {
# Needed with modern compilers that have more of those turned on by default.
local wflags=(
-Wno-error=implicit-function-declaration
-Wno-error=incompatible-pointer-types
-Wno-error=format-security
)
local ldlibs=(
-lgssapi_krb5
-lkrb5
-lk5crypto
-lcom_err
-lpam
-lssl
-lcrypto
)
# Ditto, from the "imap" PKGBUILD.
cd "${srcdir}/imap-${_imapver}"
yes "y" | make -j1 lnp \
EXTRAAUTHENTICATORS=gss \
PASSWDTYPE=pam \
SPECIALAUTHENTICATORS=ssl \
SSLTYPE=unix \
EXTRACFLAGS="${CFLAGS} -fPIC ${wflags[*]}" \
EXTRALDFLAGS="${LDFLAGS} ${ldlibs[*]}"
cd "${srcdir}/${pkgname}"
./configure --with-c-client="${srcdir}/imap-${_imapver}" --prefix=/usr --sysconfdir=/etc LDFLAGS="${ldlibs[*]}"
make
}
package () {
cd "${srcdir}/${pkgname}"
make install DESTDIR="${pkgdir}"
# Move manual page to a proper location
install -m755 -d "${pkgdir}/usr/share/man/man1"
mv "${pkgdir}/usr/share/doc/mailsync/mailsync.1" \
"${pkgdir}/usr/share/man/man1"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-11-01 00:21:48 | Low | 2 |
| 2026-10-31 00:07:41 | Low | 2 |
| 2026-10-30 00:29:30 | Low | 2 |
| 2026-10-29 00:13:55 | Low | 2 |
| 2026-10-28 00:06:54 | Low | 2 |
| 2026-10-27 00:23:28 | Low | 2 |
| 2026-10-26 00:12:40 | Low | 2 |
| 2026-10-25 00:20:48 | Low | 2 |
| 2026-10-24 00:14:55 | Low | 2 |
| 2026-10-23 00:02:19 | Low | 2 |
| 2026-10-22 00:13:10 | Low | 2 |
| 2026-10-21 00:12:50 | Low | 2 |
| 2026-10-20 00:10:31 | Low | 2 |
| 2026-10-19 00:03:55 | Low | 2 |
| 2026-10-18 00:06:55 | Low | 2 |
| 2026-10-17 00:21:55 | Low | 2 |
| 2026-10-16 00:12:47 | Low | 2 |
| 2026-10-15 00:28:05 | Low | 2 |
| 2026-10-14 00:06:47 | Low | 2 |
| 2026-10-13 00:23:45 | Low | 2 |