aboutsummaryrefslogtreecommitdiffstats
path: root/interimap
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2022-02-23 00:35:41 +0100
committerGuilhem Moulin <guilhem@fripost.org>2022-02-23 21:23:55 +0100
commiteeed44617b8b2bf4c941f6de334a9006804615fb (patch)
treee91570238753a4168e07c99f84fa4f7017e1f981 /interimap
parenta7bae9d4eb282fe805834b8f4185a019fc9bb246 (diff)
Don't assume Net::IMAP::InterIMAP is always in @INC.
And make the installation path configurable at `make` time. Moreover, adjust the 'test' target so the site directory and interimap/pullimap path are configurable with INTERIMAP_I and INTERIMAP_PATH respectively. That way one can run `tests/run foo` to check the source, `make test` to check what's been built, and we also have the possibility to check the installed program e.g. for autopkgtests.
Diffstat (limited to 'interimap')
-rwxr-xr-xinterimap1
1 files changed, 1 insertions, 0 deletions
diff --git a/interimap b/interimap
index 7525f9f..9ba5d06 100755
--- a/interimap
+++ b/interimap
@@ -32,6 +32,7 @@ use DBD::SQLite::Constants ':file_open';
use Fcntl qw/F_GETFD F_SETFD FD_CLOEXEC/;
use List::Util 'first';
+use lib "./lib";
use Net::IMAP::InterIMAP 0.5.6 qw/xdg_basedir read_config compact_set/;
# Clean up PATH