aboutsummaryrefslogtreecommitdiff
path: root/src/session.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2022-06-13 12:25:19 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2022-06-13 12:25:19 +0200
commit7113809cb7b9f0e73d942b295e693675301d1565 (patch)
tree801d5a201507f9b8721b21048615689b85edfcd7 /src/session.rs
parentbdae537fe7dbf9c7fc731af3f427400055ea03cf (diff)
downloadaerogramme-7113809cb7b9f0e73d942b295e693675301d1565.tar.gz
aerogramme-7113809cb7b9f0e73d942b295e693675301d1565.zip
Improve SELECT
Diffstat (limited to 'src/session.rs')
-rw-r--r--src/session.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/session.rs b/src/session.rs
index 4e8b301..78d5ffc 100644
--- a/src/session.rs
+++ b/src/session.rs
@@ -72,10 +72,11 @@ pub struct Instance {
pub mailstore: Arc<Mailstore>,
pub creds: Option<Credentials>,
pub selected: Option<Mailbox>,
+ pub username: Option<String>,
}
impl Instance {
fn new(mailstore: Arc<Mailstore>, rx: mpsc::Receiver<Message>) -> Self {
- Self { mailstore, rx, creds: None, selected: None, }
+ Self { mailstore, rx, creds: None, selected: None, username: None, }
}
//@FIXME add a function that compute the runner's name from its local info