mirror of
https://github.com/soywod/himalaya.git
synced 2024-07-08 18:45:13 +00:00
make mdir inbox condition case insensitive
This commit is contained in:
parent
984eb8c9f7
commit
d79c6c40a7
|
@ -43,7 +43,7 @@ impl<'a> MaildirBackend<'a> {
|
||||||
pub fn get_mdir_from_dir(&self, dir: &str) -> Result<maildir::Maildir> {
|
pub fn get_mdir_from_dir(&self, dir: &str) -> Result<maildir::Maildir> {
|
||||||
// If the dir points to the inbox folder, creates a maildir
|
// If the dir points to the inbox folder, creates a maildir
|
||||||
// instance from the root folder.
|
// instance from the root folder.
|
||||||
if dir == "inbox" {
|
if dir.to_lowercase() == "inbox" {
|
||||||
self.validate_mdir_path(self.mdir.path().to_owned())
|
self.validate_mdir_path(self.mdir.path().to_owned())
|
||||||
.map(maildir::Maildir::from)
|
.map(maildir::Maildir::from)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue