Package Details: imapfilter 2.8.2-1

Git Clone URL: https://aur.archlinux.org/imapfilter.git (read-only, click to copy)
Package Base: imapfilter
Description: A mail filtering utility for processing IMAP mailboxes
Upstream URL: https://github.com/lefcha/imapfilter
Licenses: MIT
Submitter: Snowman
Maintainer: buzo
Last Packager: buzo
Votes: 51
Popularity: 0.002912
First Submitted: 2007-03-31 22:38 (UTC)
Last Updated: 2023-12-29 22:42 (UTC)

Dependencies (4)

Required by (0)

Sources (1)

Latest Comments

1 2 3 4 Next › Last »

ekollof commented on 2024-04-24 10:17 (UTC) (edited on 2024-04-24 10:20 (UTC) by ekollof)

This patch fixes the build:

diff --git a/PKGBUILD b/PKGBUILD
index 92061f5..19719fd 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -23,8 +23,8 @@ build() {
   # in that case, uncomment next line.
   # LDFLAGS="-Wl,--hash-style=gnu -Wl"

-  sed -i "s/MYCFLAGS =/MYCFLAGS=${CFLAGS}/" src/Makefile
-  sed -i "s/MYLDFLAGS =/MYLDFLAGS=${LDFLAGS}/" src/Makefile
+  sed -i "s@MYCFLAGS =@MYCFLAGS=${CFLAGS}@" src/Makefile
+  sed -i "s@MYLDFLAGS =@MYLDFLAGS=${LDFLAGS}@" src/Makefile

   make PREFIX=/usr SSLCAFILE=/etc/ssl/certs/ca-certificates.crt all
 }

ekollof commented on 2024-04-24 10:14 (UTC)

Seeing the same build error

jamespo commented on 2024-04-09 17:06 (UTC)

I get this error on build:

==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
sed: -e expression #1, char 281: unknown option to `s'
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: imapfilter-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
imapfilter - exit status 4

hcartiaux commented on 2022-10-27 13:57 (UTC)

Updated, thanks for the reminder, I missed your initial comment @Freso.

Freso commented on 2022-10-26 20:55 (UTC)

Just a repeat of my comment from >1 year ago, quoting the wiki directly: “Warning: The downloaded source filename must be unique because the SRCDEST directory can be the same for all packages. For instance, using the version number of the project as a filename potentially conflicts with other projects with the same version number. In this case, the alternative unique filename to be used is provided with the syntax source=('unique_package_name::file_uri'); e.g. source=("$pkgname-$pkgver.tar.gz::https://github.com/coder/program/archive/v$pkgver.tar.gz").”

Freso commented on 2021-06-17 09:57 (UTC)

Please rename the source file so that it is unique. See the warning at https://wiki.archlinux.org/title/PKGBUILD#source for details.

muhaha commented on 2020-10-02 09:18 (UTC) (edited on 2020-10-06 14:07 (UTC) by muhaha)

Update: It turns out that the time on my server had gotten badly out of sync because I for some reason didn't have the systemd-timesyncd.service enabled, but after enabling it everything worked like a charm :D

Old problem
I am not able to make imapfilter work with imap.fastmail.com

imapfilter: initiating SSL connection to imap.fastmail.com; error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
imapfilter: login request to muhaha@fastmail.com@imap.fastmail.com failed
stack traceback:
        [C]: in ?
        [C]: in function 'error'
        /usr/share/imapfilter/account.lua:81: in field '_check_result'
        /usr/share/imapfilter/account.lua:100: in field '_login_user'
        /usr/share/imapfilter/account.lua:59: in global 'IMAP'
        ./accounts.lua:3: in main chunk
        [C]: in function 'require'
        /home/services/.imapfilter/config.lua:198: in main chunk

It used to work, but for some reason it stopped. However, it looks like it works with imap.gmail.com
Does anyone have an idea to was coursing the problem?

I am not able to make imapfilter work with imap.fastmail.com

imapfilter: initiating SSL connection to imap.fastmail.com; error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
imapfilter: login request to muhaha@fastmail.com@imap.fastmail.com failed
stack traceback:
        [C]: in ?
        [C]: in function 'error'
        /usr/share/imapfilter/account.lua:81: in field '_check_result'
        /usr/share/imapfilter/account.lua:100: in field '_login_user'
        /usr/share/imapfilter/account.lua:59: in global 'IMAP'
        ./accounts.lua:3: in main chunk
        [C]: in function 'require'
        /home/services/.imapfilter/config.lua:198: in main chunk

It used to work, but for some reason it stopped. However, it looks like it works with imap.gmail.com
Does anyone have an idea to was coursing the problem?

mathieu.clabaut commented on 2020-06-08 19:52 (UTC)

Hello, The build failed because I'm using a not default buildir which then generate a CFLAGS containing /, which in turns makes sed fail.

Replacing / with # in the sed expression solves the problem:

   sed -i "s#MYCFLAGS =#MYCFLAGS=${CFLAGS}#" src/Makefile                                                
   sed -i "s#MYLDFLAGS =#MYLDFLAGS=${LDFLAGS}#" src/Makefile  

hcartiaux commented on 2020-01-22 11:57 (UTC)

My bad, it's fixed

rahix commented on 2020-01-20 08:24 (UTC) (edited on 2020-01-20 08:26 (UTC) by rahix)

Sorry, I should have clarified it better: It needs to be added to the make all in line 28 for the CA file path to be picked up correctly. Like this:

make PREFIX=/usr SSLCAFILE=/etc/ssl/certs/ca-certificates.crt all