MCPcopy Create free account
hub / github.com/clawshell/clawshell / login

Method login

src/email.rs:331–339  ·  view source on GitHub ↗
(&mut self, username: &str, password: &str)

Source from the content-addressed store, hash-verified

329 }
330
331 fn login(&mut self, username: &str, password: &str) -> Result<(), EmailServiceError> {
332 let command = format!("LOGIN {} {}", imap_quote(username), imap_quote(password));
333 self.run_command(&command)
334 .map(|_| ())
335 .map_err(|error| match error {
336 EmailServiceError::Api(message) => EmailServiceError::Authentication(message),
337 other => other,
338 })
339 }
340
341 fn logout(&mut self) {
342 let _ = self.run_command("LOGOUT");

Callers 1

connect_and_loginFunction · 0.80

Calls 1

run_commandMethod · 0.80

Tested by

no test coverage detected