feature: adding getmail as an alternative to fetchmail#2803
feature: adding getmail as an alternative to fetchmail#2803georglauterbach merged 40 commits intodocker-mailserver:masterfrom
getmail as an alternative to fetchmail#2803Conversation
2cbdfee to
f1b8d3f
Compare
polarathene
left a comment
There was a problem hiding this comment.
Partial review as the browser crashed, but this was salvaged thankfully.
polarathene
left a comment
There was a problem hiding this comment.
Remainder of review completed 😀
There was a problem hiding this comment.
I used this online crontab tool, which should link to an example of every 29th minute. You'll see that it's only within an hour, then it resets. So every 50th minute would be always at 50 minutes past the current hour, technically every hour at that point.. same with every 31 minutes. (EDIT: For clarity, look at the lines above the input that shows the scheduled times when the duration does not divide an hour evenly)
Thus I think the actual max is 30? (Every 30 minutes) Otherwise it's effectively hourly from then on, and anything after 60 likewise ends up being every hour (just with no offset).
I don't know cron that well, the other maintainers can provide feedback on that.
I'm going to batch commit the suggestions, so only the remaining feedback after (3 items left) that needs to be addressed 👍
su -sdecision deferred to another reviewer.xoauthdocs link.- Adding tests (once everything else is approved).
georglauterbach
left a comment
There was a problem hiding this comment.
Looks very good, just some minor stylistic issues. I hope you can just batch-commit my suggestions :)
|
This can now be merged when the comments are resolved :) |
|
Applied my own review feedback as well to make the final reviews faster :) |
georglauterbach
left a comment
There was a problem hiding this comment.
From a scripts perspective, LGTM. I hope all tests pass now :)
polarathene
left a comment
There was a problem hiding this comment.
I will batch commit these changes.
Fixes some typos, and uses permalinks instead of referencing lines on the master branch which is not a stable reference we can rely on.
polarathene
left a comment
There was a problem hiding this comment.
We still may want to consider tests.
If I understand this feature correctly. We could test it by having two DMS containers running, and treating one of them as the remote mail-server (the role of gmail for example)?
Additionally, here is the getmail6 bats test file that uses DMS to handle it's testing. I haven't looked through it properly yet.
|
Yes, I'd like to see some tests as well - good idea :) |
|
I've assigned myself, but welcome anyone else to tackle the remaining task of getting some tests sorted. This is a low priority for me and may not be something I can work on until December. |
georglauterbach
left a comment
There was a problem hiding this comment.
Looks good to me now :) Maybe @casperklein want to have another look at this as well, and I think there is one comment from him that should also be resolved. But overall, nice work 🚀
Co-authored-by: Casper <[email protected]>
casperklein
left a comment
There was a problem hiding this comment.
Just some small change requests. Otherwise ready to merge.
Co-authored-by: Casper <[email protected]>
|
@casperklein I went ahead and applied your feedback at this point. If all checks pass, I will take care of merging this (so we can get it into v12.2.0/v13.0.0). |
|
It seems I can't merge because of the request for changes that's still blocking 🫠 I could circumvent this as an administrator, but I won't 😂 I enabled auto-merge, so as soon as you approve @casperklein this PR will be merged. |
|
Documentation preview for this PR is ready! 🎉 Built with commit: 38d9adb |
Description
Adding getmail as an alternative to Fetchmail
Fixes #2513
Type of change
Checklist:
docs/)all of no_container.bats show fails
test_helper.bats has a fails:
✗ wait_for_smtp_port_in_container returns immediately when port found in 10400ms [10400]
318 tests, 9 failures, 4 skipped in 2025 seconds
I don't believe these are to do with my additions.
I've added a stub for testing but since getmail doesn't run as as daemon like fetchmail I'm not sure how to test.
Added some docs and basic config examples.
Not sure that putting the [options] section into a seperate file that is appended to each of the fetch configs as you might actually want different configs for different sources.
Note I'm downloading the sid version of getmail6 as the stable one is quite a bit out of date.