summaryrefslogtreecommitdiff
path: root/src/cmd/raw.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/raw.rs')
-rw-r--r--src/cmd/raw.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/raw.rs b/src/cmd/raw.rs
index 76c875f..9fe7620 100644
--- a/src/cmd/raw.rs
+++ b/src/cmd/raw.rs
@@ -19,8 +19,8 @@ pub fn raw(md_path: PathBuf, req: &[u8]) -> Result<Vec<u8>> {
std::io::Error::new(IOErrKind::NotFound, format!("mail {} not found", &r.mid))
})?;
- match r.path {
- None => {
+ match r.path.as_deref() {
+ Some("") | None => {
let mut mh = MIMEHeader::new();
mh.maintype = "message".to_owned();