1st step done.

2nd step I think it's done cause in configure CFLAGS have -g

3rd step - I ran make install when I first install dbmail. I don't run when
I change code.

4th step - Didn't understand well. I'm programming remotely on a local
computer and accessing the server with Putty, that's why I send a mail from
this pc to see if the server is doing what I want. How can I know that I'm
USING the static binary files?

2007/10/30, Paul J Stevens <[EMAIL PROTECTED]>:
>
> 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
>



-- 
A humanidade está a perder os seus maiores génios...Aristóteles faleceu...
Newton bateu as botas... Einstein morreu... e eu não me estou a sentir lá
muito bem...
_______________________________________________
Dbmail-dev mailing list
Dbmail-dev@dbmail.org
http://twister.fastxs.net/mailman/listinfo/dbmail-dev

Reply via email to