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:
Clément DOUIN
2026-06-01 15:19:45 +02:00
parent 3a1a981b8c
commit 662bd26eb1
151 changed files with 864 additions and 1291 deletions
+1 -1
View File
@@ -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"))