Fix transport_maps function for non-existent domains
The postfix_transport_maps function had a bug causing
2012-04-15 17:40:22 CEST LOG: statement: SELECT transport FROM postfix_transport_map('logcheck', 'domine.madduck.net');
2012-04-15 17:40:22 CEST ERROR: query returned no rows
when the domain was not in the database. This would make did be NULL and make
the query fail.
This patch moves the tid query until after a check for did. If the latter is
NULL, the function RETURNs (rather than fails).
======================
VirtualMailManager API
======================
:Author: Pascal Volk <neverseen@users.sourceforge.net>
:Date: |today|
:Release: |version|
Contents:
.. toctree::
:maxdepth: 1
:numbered:
vmm.rst
vmm_config.rst
vmm_emailaddress.rst
vmm_alias.rst
vmm_relocated.rst
vmm_errors.rst
vmm_constants_error.rst
Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`