Re: Fetchmail reports "input in flex scanner failed"

Matthias Andree <[email protected]>
Newsgroups gmane.mail.fetchmail.user
Message-ID <[email protected]>
Am 21.05.19 um 00:40 schrieb Dmitry Katsubo via Fetchmail-users:
> Dear fetchamil users,
>
> I have noticed that sometimes fetchamil reports the following to the output:
>
>   input in flex scanner failed
>
> I think this happens because ~/.fetchmailrc becomes (temporary) unavailable (input/output error), however it's difficult for me to strace this situation. Can it be the reason of such error? If so, is
> it possible to rephrase this error message so that it is more verbose?

Dmitry,

Flex does not currently generate code to break down and relay the error
in detail has been written yet.

With flex 2.6.4, the error gets reported if ferror() returns an error
state and errno isn't EINTR.

Fetchmail isn't made to cope with files being intermittently
unavailable. Make sure the file is readable at all times.
For instance, if your $HOME is on NFS, you must use "hard" mounts (which
block until the file server is available), so that you have reliable
semantics for file I/O.

HTH
Matthias
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.