mirror of
https://github.com/pimalaya/himalaya.git
synced 2026-06-15 20:07:57 +08:00
refactor: remove composer and reader
Composers and readers did not work as expected. It is just not possible for himalaya to spawn a command that spawns $EDITOR, piping and redirection cannot satisfy all the needs. Either the $EDITOR does not spawn (hangs over), either himalaya does not collect any output from edition. The simplest way is to use an intermediate temp file, or use process substitution. For eg., using mml: mml compose >(himalaya message send) You can also write into a file then feed himalaya with it.
This commit is contained in:
+1
-1
@@ -32,7 +32,7 @@ pub struct M2dirMailboxCreateCommand {
|
||||
}
|
||||
|
||||
impl M2dirMailboxCreateCommand {
|
||||
pub fn execute(self, printer: &mut impl Printer, client: M2dirClient) -> Result<()> {
|
||||
pub fn execute(self, printer: &mut impl Printer, client: &mut M2dirClient) -> Result<()> {
|
||||
client.init_store()?;
|
||||
client.create_mailbox(&self.m2dir_name.inner)?;
|
||||
printer.out(Message::new("m2dir folder successfully created"))
|
||||
|
||||
Reference in New Issue
Block a user