Use a more robust condition in wait_for_email_transfer
authorJuliana Rodrigueiro <juliana.rodrigueiro@intra2net.com>
Wed, 6 Feb 2019 10:57:52 +0000 (11:57 +0100)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Thu, 7 Feb 2019 15:50:39 +0000 (16:50 +0100)
commit68d12e8a2236824fa081ca324a6e4b53ffcf26ad
treef3b67cb53ccdcb0bdf63fbe459f11394d935753d
parent99b0addb01b6552598b3c208da2a3048779953c8
Use a more robust condition in wait_for_email_transfer

This solution uses 'postqueue -j' command, which will produce an
empty list for stdout only when there are no more emails in the
queue. We become independent of the format of the output (byte,
string, specific characters, etc)
src/arnied_wrapper.py