---
README.md | 2 +-
contrib/vmt-completion.bash | 2 +-
src/att.rs | 16 ++++++++--------
src/cat.rs | 4 ++--
src/mime.rs | 4 ++--
src/pick.rs | 6 +++---
src/show.rs | 4 ++--
7 files changed, 19 insertions(+), 19 deletions(-)
diff --git a/README.md b/README.md
index 5ecba13..77448c8 100644
--- a/README.md
+++ b/README.md
@@ -131,7 +131,7 @@ OPTIONS:
-a, --attachments Show attachment marker (can be slow)
-A, --attachments-only Show only mails with attachment (can be slow)
-d, --date Show date
- -e, --emtpy Show empty mailboxes (default: hide)
+ -e, --empty Show empty mailboxes (default: hide)
-h, --help Print help information
-m, --multiple Allow selection of multiple mails
```
diff --git a/contrib/vmt-completion.bash b/contrib/vmt-completion.bash
index d7e84f4..3c9b5a8 100644
--- a/contrib/vmt-completion.bash
+++ b/contrib/vmt-completion.bash
@@ -3,7 +3,7 @@
VMT_ARGS="--account= --config= --help --version"
VMT_CMDS="att cat help ls mime pick show sync"
-VMT_PICK_ARGS="--attachments --attachments-only --date --emtpy --help --multiple"
+VMT_PICK_ARGS="--attachments --attachments-only --date --empty --help --multiple"
VMT_LS_ARGS="--all --help --long --real-name"
diff --git a/src/att.rs b/src/att.rs
index f6d270b..b0172b6 100644
--- a/src/att.rs
+++ b/src/att.rs
@@ -171,7 +171,7 @@ fn run_ls(l: &Ls, acc: &config::Account) {
date: true,
attachments: true,
attachments_only: true,
- emtpy: false,
+ empty: false,
uri: Some(uri.clone()),
};
let picked = pick::pick(p, acc);
@@ -199,7 +199,7 @@ fn run_ls(l: &Ls, acc: &config::Account) {
date: true,
attachments: true,
attachments_only: true,
- emtpy: false,
+ empty: false,
uri: None,
};
let picked = pick::pick(p, acc);
@@ -228,7 +228,7 @@ fn run_cat(c: &Cat, acc: &config::Account) {
date: true,
attachments: true,
attachments_only: true,
- emtpy: false,
+ empty: false,
uri: Some(uri.clone()),
};
let picked = pick::pick(p, acc);
@@ -255,7 +255,7 @@ fn run_cat(c: &Cat, acc: &config::Account) {
date: true,
attachments: true,
attachments_only: true,
- emtpy: false,
+ empty: false,
uri: None,
};
let picked = pick::pick(p, acc);
@@ -268,7 +268,7 @@ fn run_cat(c: &Cat, acc: &config::Account) {
date: true,
attachments: true,
attachments_only: true,
- emtpy: false,
+ empty: false,
uri: None,
};
let picked = pick::pick_attachment(p, acc, &mail);
@@ -288,7 +288,7 @@ fn run_save(s: &Save, acc: &config::Account) {
date: true,
attachments: true,
attachments_only: true,
- emtpy: false,
+ empty: false,
uri: Some(uri.clone()),
};
let picked = pick::pick(p, acc);
@@ -315,7 +315,7 @@ fn run_save(s: &Save, acc: &config::Account) {
date: true,
attachments: true,
attachments_only: true,
- emtpy: false,
+ empty: false,
uri: None,
};
let picked = pick::pick(p, acc);
@@ -340,7 +340,7 @@ fn run_save(s: &Save, acc: &config::Account) {
date: true,
attachments: true,
attachments_only: true,
- emtpy: false,
+ empty: false,
uri: None,
};
let picked = pick::pick_attachment(p, acc, &mail);
diff --git a/src/cat.rs b/src/cat.rs
index f1bb9b9..778703e 100644
--- a/src/cat.rs
+++ b/src/cat.rs
@@ -43,7 +43,7 @@ pub fn run(c: Cat, acc: &config::Account) {
date: true,
attachments: false,
attachments_only: false,
- emtpy: false,
+ empty: false,
uri: Some(uri.clone()),
};
let picked = pick::pick(p, acc);
@@ -66,7 +66,7 @@ pub fn run(c: Cat, acc: &config::Account) {
date: true,
attachments: false,
attachments_only: false,
- emtpy: false,
+ empty: false,
uri: None,
};
let picked = pick::pick(p, acc);
diff --git a/src/mime.rs b/src/mime.rs
index d182637..2eba131 100644
--- a/src/mime.rs
+++ b/src/mime.rs
@@ -84,7 +84,7 @@ fn run_ls(l: &Ls, acc: &config::Account) {
date: true,
attachments: true,
attachments_only: false,
- emtpy: false,
+ empty: false,
uri: Some(uri.clone()),
};
let picked = pick::pick(p, acc);
@@ -113,7 +113,7 @@ fn run_ls(l: &Ls, acc: &config::Account) {
date: true,
attachments: true,
attachments_only: false,
- emtpy: false,
+ empty: false,
uri: None,
};
let picked = pick::pick(p, acc);
diff --git a/src/pick.rs b/src/pick.rs
index 33a7c35..91296e0 100644
--- a/src/pick.rs
+++ b/src/pick.rs
@@ -31,7 +31,7 @@ pub struct Pick {
pub attachments_only: bool,
/// Show empty mailboxes (default: hide)
#[clap(short, long)]
- pub emtpy: bool,
+ pub empty: bool,
/// URI of mailbox to pick mail in (omit to pick mailbox interactively)
pub uri: Option<String>,
}
@@ -217,7 +217,7 @@ pub fn pick(p: Pick, a: &config::Account) -> Vec<vomit::Mail> {
}
},
None => {
- let mailboxes = vomit::load_mailboxes(&PathBuf::from(a.maildir()), true, !p.emtpy);
+ let mailboxes = vomit::load_mailboxes(&PathBuf::from(a.maildir()), true, !p.empty);
let selected = skim_mailboxes(mailboxes, false);
match selected.iter().next() {
@@ -252,7 +252,7 @@ pub fn pick(p: Pick, a: &config::Account) -> Vec<vomit::Mail> {
// TODO is this needed?
// pub fn pick_mailbox(p: Pick, a: &config::Account) -> vomit::Mailbox {
-// let mailboxes = vomit::load_mailboxes(&PathBuf::from(a.maildir()), true, !p.emtpy);
+// let mailboxes = vomit::load_mailboxes(&PathBuf::from(a.maildir()), true, !p.empty);
// let selected = skim_mailboxes(mailboxes, false);
// match selected.iter().next() {
diff --git a/src/show.rs b/src/show.rs
index e6ba573..2289666 100644
--- a/src/show.rs
+++ b/src/show.rs
@@ -98,7 +98,7 @@ fn run_show(s: &Show, acc: &config::Account) {
date: true,
attachments: true,
attachments_only: false,
- emtpy: false,
+ empty: false,
uri: Some(uri.clone()),
};
let picked = pick::pick(p, acc);
@@ -121,7 +121,7 @@ fn run_show(s: &Show, acc: &config::Account) {
date: true,
attachments: true,
attachments_only: false,
- emtpy: false,
+ empty: false,
uri: None,
};
let picked = pick::pick(p, acc);
--
2.36.1