mailman3-courier-mta/docs/courier-to-mailman3.md

47 lines
1.9 KiB
Markdown
Raw Normal View History

# courier-to-mailman3.py
This is our current version trying to communicate between courier and mailman3.
## Changes
### 2024 May 29
* First change is changing the name to match what I have on the server.
* Second change is to have the `#!` path hopefully pointing in the right place.
* Which I screwed up. I think I was typing in the wrong window.
* It's not failing on command line.
2024-05-29 21:44:19 -07:00
* Still failing, let's get some logging.
* Moved logging initialization, and included print statements.
* OK, it's logging now (it may have been but not in the right location)
* It wasn't formatting correctly.
* Testing different way to handle formatting.
* Nope used `Format` not `Formater`.
* This is not working
* Reverting to previous formatting
* No idea what steps we've gone through to get here.
* Let's try again.
* OK, basicSettings all set at once.
* This sorts it, now let's get a date format working
* Now let's see if this works...
* Date format set:
* Level and File set in variable
* Format had errors with `$` used instead of `%`
* Clean up logging to not log what was logged for logging diagnostics.
* Logging host and port on same line.
* OK, parsing port number, and setting default.
* Logging error (I hope), when lmtp fails to be created.
* Maybe this is better?
* Catch exception, log based on that?
* Hm, go with bare "Exception"... The catch wasn't what was failing.
* Let's try that instead?
* Oh man... Variable not properly defined (or more derferenced.)
* OK, it's failing further along, so maybe this works?
* I see...
2024-05-30 00:25:10 -07:00
* The parsing of the environment variables is failing, but let's try this.
* That's not doing it... Might need to create users?
2024-05-30 01:07:44 -07:00
* OK, let's see if what I need is in the headers...
* Using the "To" header... Let's see if that gets us anywhere.
* It's not finding it.
* Oh man `To` vs `'To'`
* Progress... But getting, "line too long" this seems like I need the
replace that I had before.