Hello and thank you for your very useful software!
In the documentation in the section called Advanced set-up there is an option --out-poll-run retry:5
Whatever I try, I cannot get it to work. The version I have is 2.6.1 for Windows, downloaded and installed about two months ago, I think it's still the latest (or maybe you did a commit in the meantime but kept the same version number?).
I tried both command line and setting it in the cfg-file. However I try E-MailRelay simply refuses to start when I use this option (using cfg: invalid option "out-poll-run", using cmd: too many non-option arguments).
Is there extra information available about this particular option? I looked in the doc folder but didn't see anything relevant.
Somehow I got the impression that this is a "coming soon"-feature but I'm not sure where I got it from. Is this feature simply not released yet but somehow it ended up in the docs early?
I saw the provided example script emailrelay-resubmit.js but if this feature is available built-in I'd much prefer using that rather than setup a separate scheduled task to run that script in combination with --poll.
Kind regards
Sorry, that's my mistake. As you guessed, the online documentation was generated from un-released code, so there is no "--poll-run" in v2.6.x. There was a support ticket several years ago where I floated the idea and I have implemented it ready for v2.7, but it is not yet released.
Ok thanks for responding so fast! From the tone of your response I gather that v2.7 will still take a while to be released and that I should just setup a scheduled task using the example script.
As a kind of feedback for you I ran the example script through LLM (sorry!) and it warned me that if there were many bad files it would read them all every time doing unnecessary repeated work. It suggested doing a check against file.DateLastModified as a safeguard. Something like this:
Again, thank you!
I made some changes to the example script, I thought I'd share for anyone interested. This version adds some safety and control features like skipping files that are too new or too old, limiting how many emails it processes at once and avoiding overwriting existing files. It includes some error handling and reporting, a bit more reliability, a summary, and I tried to minimize impact on system performance.
I tested it a little already (works so far) and will be testing it more in the coming days. Don't hesitate to tell me if you spot anything.
Edit: this is meant for Windows.
Here is a link to the original script if you want to compare.
Last edit: Jos A 2026-05-20