Package Details: fetchmail 6.4.1-1

Git Clone URL: (read-only)
Package Base: fetchmail
Description: A remote-mail retrieval utility
Upstream URL:
Licenses: GPL
Submitter: arojas
Maintainer: victor3d
Last Packager: victor3d
Votes: 6
Popularity: 0.52
First Submitted: 2019-04-03 06:19
Last Updated: 2019-10-13 17:38

Latest Comments

haawda commented on 2019-10-13 16:47

pkgdesc="A remote-mail retrieval utility"
optdepends=('tk: for using fetchmailconf'
            'python2: for using fetchmailconf')
         'fetchmail.tmpfiles' 'fetchmail.sysusers' 'fetchmail.service')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  sed -i 's|/usr/bin/env python|/usr/bin/env python2|'
  PYTHON=python2 ./configure --prefix=/usr --with-ssl=/usr

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
  install -d -o 90 -g nobody "${pkgdir}/var/lib/fetchmail"
  cd -
  install -D -m644 fetchmail.tmpfiles "$pkgdir"/usr/lib/tmpfiles.d/fetchmail.conf
  install -D -m644 fetchmail.sysusers "$pkgdir"/usr/lib/sysusers.d/fetchmail.conf
  install -D -m644 fetchmail.service "$pkgdir"/usr/lib/systemd/system/fetchmail.service

amish commented on 2019-05-14 04:48

--syslog is not required. As anything printed on stderr will automatically go to journald logs. Or if you still want it then you add "set syslog" in /etc/fetchmailrc

Agree to removing "-d 900".

Also in fetchmail.sysusers file - please remove hardcoded number 90 as UID. As Arch is slowly avoiding to have fixed UID assigned to user.

Use z option of tmpfiles.d to change ownership and mode of /var/lib/fetchmail and /etc/fetchmailrc... But I am not sure if it should be done or not.

eimis commented on 2019-05-13 18:29

hey why not add --syslog fetchmail arg to the .service ExecStart, so that journald logs it?

Also, how about omit the -d 900 arg, and instead have set daemon 900 in /etc/fetchmailrc, so that people can change the polling interval without overriding the .service file?

Lastly, could chown fetchmail.fetchmail /var/lib/fetchmail /etc/fetchmailrc; chmod 600 /etc/fetchmailrc be done on install? Otherwise fetchmail refuses to start saying the executing user must own the config file and the .pid file can't be created

And thanks for maintaining this!!