Closed mundschenk-at closed 7 years ago
@tonioo I'll continue working on the other issues/PRs once this one has been successfully merged.
@tonioo Regarding single quotes: I'll replace them, I just didn't want to touch existing lines only for that reason.
@mundschenk-at ok thanks. Have you seen the other comments I made?
@tonioo Yes. I'll replace the domain
method with split_mailbox
tonight. I didn't get around to it yesterday because the return signature necessitates a few more changes. All others are in, except for the getattr
call. While very elegant, I'm not totaly convinced. There might be routines that should not depend the prog
(i.e. "try with this method, if it fails, try another one")? Or maybe that's too complicated thinking.
According to your current code, my proposal is fine. If you want a "try and guess" mechanism, then it won't work.
Yeah, I was wondering if we might need such a mechanism. But then again, the parser is looking at individual lines, so having a "try and guess" mechanism is of doubtful usability. Also, a "guessing" parser function could just call another method if necessary.
@mundschenk-at great! Thank you for your work.
The PR also adds code to explicitly ignore unknown RRD data and adds tags for all debug messages. Both of these commits are probably not strictly necessary, so I'm open to dropping them.