JMAP getMessageList with filter returns HTTP Error 500

Robert Stepanek rsto at
Fri Mar 3 07:31:17 EST 2017

Hi Daniel,

On Fri, Mar 3, 2017, at 09:00, Daniel Gultsch wrote:
> I'm trying to add filters to my getMessageList query. (getMessageList
> without filters works fine); However when executing
> [["getMessageList",{"filter":{"text":"test"},"fetchThreads":true,"fetchMessages":true},"mLol25TE7ZFb"]]
> I get an HTTP 500 error in return. 

I can't reproduce this error.

Are you testing with latest master? Have you rebuilt Cyrus completely
after the latest fetch from the Git repo?
Note that Cyrus needs to be built with the --enable-xapian and
--enable-jmap for JMAP support since last week.

E.g. this is how I rebuild. Be careful! This will wipe any files that
aren't tracked in Git.

make distclean
rm -rf /usr/cyrus/*
git clean -f -x -d
autoreconf -v -i
automake -v -i
CFLAGS="-g -fPIC -W -Wall -Wextra -Werror" \
CC="gcc" \
CXX="g++" \
XAPIAN_CONFIG="$CYRUSLIBS/bin/xapian-config-1.5" \
./configure \
    --prefix=/usr/cyrus \
    --with-cyrus-prefix=/usr/cyrus \
    --enable-autocreate \
    --enable-http \
    --enable-xapian \
    --enable-jmap \
    --enable-unit-tests \
    --enable-replication \
    --enable-nntp \
    --enable-murder \
    --enable-calalarmd \
    --with-lmdb \
    --enable-idled && \
    make sieve/sieve-lex.c && \
    perl -p -i -e "s/int yyl;/yy_size_t yyl;/" sieve/sieve-lex.c && \
    make -j16 && \
    make -j16 check &&  \
    make install && \
    cp tools/mkimap /usr/cyrus/bin/mkimap

If the problem persists, please open an issue on the Github tracker.
I'll meet you there :)


More information about the Cyrus-devel mailing list