mirror of
https://github.com/pimalaya/himalaya.git
synced 2026-06-17 21:37:55 +08:00
make mdir inbox condition case insensitive
This commit is contained in:
@@ -43,7 +43,7 @@ impl<'a> MaildirBackend<'a> {
|
||||
pub fn get_mdir_from_dir(&self, dir: &str) -> Result<maildir::Maildir> {
|
||||
// If the dir points to the inbox folder, creates a maildir
|
||||
// instance from the root folder.
|
||||
if dir == "inbox" {
|
||||
if dir.to_lowercase() == "inbox" {
|
||||
self.validate_mdir_path(self.mdir.path().to_owned())
|
||||
.map(maildir::Maildir::from)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user