Gonçalo Duarte wrote:
> Thanks Paul,
> 
> I did what you told me but I still can't work on the code.
> 
> I commented all function insert_messages from pipe.c and if I send an
> email from a remote station the message is saved in dbmail database. I
> thought that without that code this was impossible.

Because you are still using the wrong binary files!

1. build static binaries:
./configure --enable-shared=no --enable-static=yes --with-mysql

2. make with debugging symbols CFLAGS+=-g

3. don't run make install !!!

4. use the new static binaries against a debugging/test database

cat testmsg.eml | /home/myname/src/dbmail/dbmail-smtp -f
/etc/dbmail/dbmail-debug.conf

5. Don't send mail from a remote system to test during
debugging/development (unless you know what you are doing).

If you want to get really funky, install 'check' and use --with-check
during the configure run. That way you can do 'make check' and thereby
run the (unit)tests in the check_dbmail_XXX.c files.

There are also test scripts for imap in test-scripts/testimap.py that
are setup to run against the static build binaries in the source tree.

Finally, you might look at debian/rules to see how I've configured it
both for development and for production packaging.

-- 
  ________________________________________________________________
  Paul Stevens                                      paul at nfg.nl
  NET FACILITIES GROUP                     GPG/PGP: 1024D/11F8CD31
  The Netherlands________________________________http://www.nfg.nl
_______________________________________________
Dbmail-dev mailing list
Dbmail-dev@dbmail.org
http://twister.fastxs.net/mailman/listinfo/dbmail-dev

Reply via email to