bug-mailfromd


Search for: Advanced

Re: [Bug-mailfromd] uncaught exception e_eof: EOF on


Marc <Marc@xxxxxxxxxxxxxxxxx> ha escrit:

> Has something changed related to this txt lookup, it seems to always
> generate "uncaught exception e_eof: EOF on"

First of all, why do you have to call external program when you can do
the same using dns_query()[1]?

As to your question: nothing changed and it not always generates this
error.  Any input function (getline, in particular) throws e_eof on end
of file. In your case, if "dig" outputs something, getline() returns first
line from its output.  If the output is empty (no txt found), getline()
throws e_eof.

Regards,
Sergey

[1] https://www.gnu.org.ua/software/mailfromd/manual/dns_005fquery.html