You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To be able to use the comprehensive RFC2047 decoder in internal/coding
What I got:
Unable to import internal module.
I see that the internal/coding package was made in #212, but the functionality looks extremely useful (and would solve a use-case for me). I see that I can access decoded headers via Envelope.GetHeader()/DecodeHeaders(), but what I really need is just coding.RFC2047Decode() rather than populating an Envelope or parsing from []byte.
Is there a strong reason for coding being internal, and/or would you consider exposing RFC2047Decode() in a non-internal package?
Thanks for your work on enmime! It's saved me a lot of head-scratching.
The text was updated successfully, but these errors were encountered:
usedbytes
changed the title
Export coding module?
Export coding package?
Feb 7, 2023
Yeah, I'd be OK with having enmime.RFC2047Decode (or perhaps DecodeRFC2047) that calls the internal package. I don't want to expose the rest of it though.
usedbytes
added a commit
to usedbytes/enmime
that referenced
this issue
Feb 12, 2023
What I did:
Tried to decode RFC2047 headers
What I expected:
To be able to use the comprehensive RFC2047 decoder in
internal/coding
What I got:
Unable to import internal module.
I see that the
internal/coding
package was made in #212, but the functionality looks extremely useful (and would solve a use-case for me). I see that I can access decoded headers viaEnvelope.GetHeader()
/DecodeHeaders()
, but what I really need is justcoding.RFC2047Decode()
rather than populating anEnvelope
or parsing from[]byte
.Is there a strong reason for
coding
being internal, and/or would you consider exposingRFC2047Decode()
in a non-internal package?Thanks for your work on
enmime
! It's saved me a lot of head-scratching.The text was updated successfully, but these errors were encountered: