-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parsing Envelope #15
Comments
The envelope function should be what you need. However, it is pub(crate), i.e., not exposed via a public API. Can you tell me a bit about your use case? Trying to understand if it would make sense to expose something like |
Actually, I like the idea of having an "ecosystem" of composable nom functions. Thus, I would be happy to expose (all) parsers via |
I'm using SQLite to store mail messages for my IMAP server. Currently I store envelope information as data blob inside this database. I don't know, maybe I should store all envelope fields as separate columns. That way I would just construct new Please commit yourself, if its not a problem for you, I'll be out for a weekend. |
Ok, before I do anything, I want to ask. |
I think |
Hey @FelixPodint, Sorry, I didn't had too much time to look into it. Thanks for taking care!
I also think mod parse should stay for now.
Agree. I also prefer this solution. But maybe with a minor change: as far as I know, crates that use types from a dependency in their public API may reexport the dependency under the same name. Thus, I changed my mind, and think that we should reexport all parsers via
Can you elaborate? Do we have to change that? |
Maybe
OK lets stop and think for a moment.
Currently we have parse module, which has functions to convert raw bytes to structs, and we have an Something like this:
|
Is the proposal of a From my view we can first expose the parsers via an use imap_codec::internal::envelope::envelope; Second step, maybe in a separate issue?, would be to discuss how to unify the |
Agree, got a little to exited. |
Hehe, no worries :-) |
Hi,
Is there a way to parse raw bytes
&[8u]
,Vec<u8>
toEnvelope
struct?Thanks.
With respect,
Felix P.
The text was updated successfully, but these errors were encountered: