aboutsummaryrefslogtreecommitdiff
path: root/src/imap/mail_view.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/imap/mail_view.rs')
-rw-r--r--src/imap/mail_view.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/imap/mail_view.rs b/src/imap/mail_view.rs
index 365e535..baeb2af 100644
--- a/src/imap/mail_view.rs
+++ b/src/imap/mail_view.rs
@@ -261,7 +261,7 @@ impl<'a> FetchedMail<'a> {
Self::Partial(AnyPart::Msg(msg))
}
- fn as_anypart(&self) -> Result<&AnyPart<'a>> {
+ pub fn as_anypart(&self) -> Result<&AnyPart<'a>> {
match self {
FetchedMail::Full(x) => Ok(&x),
FetchedMail::Partial(x) => Ok(&x),
@@ -269,7 +269,7 @@ impl<'a> FetchedMail<'a> {
}
}
- fn as_msg(&self) -> Result<&Message<'a>> {
+ pub fn as_msg(&self) -> Result<&Message<'a>> {
match self {
FetchedMail::Full(AnyPart::Msg(x)) => Ok(&x),
FetchedMail::Partial(AnyPart::Msg(x)) => Ok(&x),
@@ -277,7 +277,7 @@ impl<'a> FetchedMail<'a> {
}
}
- fn as_imf(&self) -> Option<&imf::Imf<'a>> {
+ pub fn as_imf(&self) -> Option<&imf::Imf<'a>> {
match self {
FetchedMail::Full(AnyPart::Msg(x)) => Some(&x.imf),
FetchedMail::Partial(AnyPart::Msg(x)) => Some(&x.imf),