mailsync

maintainer aperez · 0 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged 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

LOW AI review downgraded a static finding 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)
MEDIUM source=() URL on a non-standard host 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
1# Maintainer: Adrián Pérez de Castro <aperez@igalia.com>
2_imapver='2007f'
3pkgname=mailsync
4pkgdesc='Synchronizes a collection of mailboxes using a 3-way diff'
5url=http://mailsync.sourceforge.net/
6pkgver=5.2.7
7pkgrel=1
8license=(GPL-2.0-only)
9arch=(x86_64 i686)
10depends=(pam)
11makedepends=(autoconf automake)
12options=(zipman)
13source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver}/${pkgname}_${pkgver}-1.tar.gz"
14 "http://ftp.ntua.gr/pub/net/mail/imap/imap-${_imapver}.tar.gz"
15 1006_openssl1.1_autoverify.patch
16 c-client-2006k_GENTOO_amd64-so-fix.patch
17 c-client-static-link.patch)
18sha512sums=('d0379071fa77380d295e1fbbc0fd0e9401c49893d5d6079d4a59fbaf62011ae6870a1ee25672e9f0557f410555827a4ffc53c3b93507b589a4916569c04ee8cf'
19 '7c3e1d9927872001e768ff2ddbcf3af74078243efe58dd70e01d966856b7611134e4b579818691a954bade9acaeeda6f2f30f40d812b8aa20990de5cb90d5d35'
20 '7ecbe52adc6e3d1deee05790745642f794150ffaebf51c0cf689dc036eea9c7d80e643648aac37bf0aa83ac138b8bb63abfad3b540bc9440de3456162dfabae5'
21 '213f06e133704ed2bb9fc6900edb7a4505bf6965409ecf76502bf9cafdf7c981bca552479f8ffaa1a355d2f1c1c08dbe0453fa5bce06590f6627d0e622c70879'
22 '0a005f179eff42778160e7d43d6ec1a5c571db194eec8259e4e41efb3ffa5d7473677b1d41d6e242e348cc2561cea55b67ba5e04befcb851214b312386bd691a')
23
24prepare () {
25 cd "${srcdir}/imap-${_imapver}"
26
27 # Straight out of the "imap" PKGBUILD.
28 sed \
29 -e "s:-g -fno-omit-frame-pointer -O6:\${CFLAGS}:" \
30 -e "s:SSLDIR=/usr/local/ssl:SSLDIR=/usr:" \
31 -e "s:SSLCERTS=\$(SSLDIR)/certs:SSLCERTS=/etc/ssl/certs:" \
32 -i src/osdep/unix/Makefile
33
34 patch -p1 -i "${srcdir}/c-client-2006k_GENTOO_amd64-so-fix.patch"
35 patch -p1 -i "${srcdir}/1006_openssl1.1_autoverify.patch"
36
37 cd "$srcdir/$pkgname"
38 patch -p1 -i "$srcdir/c-client-static-link.patch"
39 autoreconf -fvi
40}
41
42build () {
43 # Needed with modern compilers that have more of those turned on by default.
44 local wflags=(
45 -Wno-error=implicit-function-declaration
46 -Wno-error=incompatible-pointer-types
47 -Wno-error=format-security
48 )
49 local ldlibs=(
50 -lgssapi_krb5
51 -lkrb5
52 -lk5crypto
53 -lcom_err
54 -lpam
55 -lssl
56 -lcrypto
57 )
58
59 # Ditto, from the "imap" PKGBUILD.
60 cd "${srcdir}/imap-${_imapver}"
61 yes "y" | make -j1 lnp \
62 EXTRAAUTHENTICATORS=gss \
63 PASSWDTYPE=pam \
64 SPECIALAUTHENTICATORS=ssl \
65 SSLTYPE=unix \
66 EXTRACFLAGS="${CFLAGS} -fPIC ${wflags[*]}" \
67 EXTRALDFLAGS="${LDFLAGS} ${ldlibs[*]}"
68
69 cd "${srcdir}/${pkgname}"
70 ./configure --with-c-client="${srcdir}/imap-${_imapver}" --prefix=/usr --sysconfdir=/etc LDFLAGS="${ldlibs[*]}"
71 make
72}
73
74package () {
75 cd "${srcdir}/${pkgname}"
76 make install DESTDIR="${pkgdir}"
77
78 # Move manual page to a proper location
79 install -m755 -d "${pkgdir}/usr/share/man/man1"
80 mv "${pkgdir}/usr/share/doc/mailsync/mailsync.1" \
81 "${pkgdir}/usr/share/man/man1"
82}
83

Scan history

Scanned at (UTC)SeverityRules
2026-08-03 00:08:14 LOW 2
2026-08-02 00:16:08 LOW 2
2026-08-01 00:11:18 LOW 2
2026-07-31 00:14:10 LOW 2
2026-07-30 00:17:23 LOW 2
2026-07-29 00:25:53 LOW 2
2026-07-28 00:07:28 LOW 2
2026-07-27 00:24:32 LOW 2
2026-07-26 00:07:32 LOW 2
2026-07-25 00:13:44 LOW 2
2026-07-24 00:02:28 LOW 2
2026-07-23 00:14:47 LOW 2
2026-07-22 00:29:32 LOW 2
2026-07-21 00:24:15 LOW 2
2026-07-20 00:19:49 LOW 2
2026-07-19 00:17:08 LOW 2
2026-07-18 00:14:48 LOW 2
2026-07-17 00:06:16 LOW 2
2026-07-16 00:05:41 LOW 2
2026-07-15 00:09:25 LOW 2

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion