pimalaya / himalaya

CLI to manage emails
https://pimalaya.org
MIT License
3.18k stars 96 forks source link

`himalaya` 1.0.0-beta wizard writes a config file that causes panics on most commands #497

Open echo-bravo-yahoo opened 1 week ago

echo-bravo-yahoo commented 1 week ago
~ ❯ himalaya
Cannot find configuration at /Users/REDACTED/Library/Application Support/himalaya/config.toml.
> Would you like to create one with the wizard? Yes

Configuring your default account

> Email address: REDACTED@gmail.com
> Account name: gmail
> Full display name: REDACTED
> Downloads directory: ~/Downloads

Warning: Google passwords cannot be used directly, see:
https://github.com/pimalaya/himalaya?tab=readme-ov-file#configuration

> Default backend: IMAP
> IMAP hostname: imap.gmail.com
> IMAP encryption: SSL/TLS
> IMAP port: 993
> IMAP login: REDACTED@gmail.com
> IMAP authentication strategy: Ask my password, then save it in the configuration file (not safe)
> IMAP password: REDACTED
> Backend for sending messages: SMTP
> SMTP hostname: smtp.gmail.com
> SMTP encryption: SSL/TLS
> SMTP port: 465
> SMTP login: REDACTED@gmail.com
> SMTP authentication strategy: Ask my password, then save it in the configuration file (not safe)
> SMTP password: REDACTED
> Where to save the configuration? /Users/REDACTED/Library/Application Support/himalaya/config.toml
Writing configuration to /Users/REDACTED/Library/Application Support/himalaya/config.toml…
Done! Exiting the wizard…

The application panicked (crashed).
Message:  assertion failed: self.is_char_boundary(new_len)
Location: /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/alloc/src/string.rs:1407
~ ❯ himalaya accounts list                                                                               task !2/385

| NAME                               | BACKENDS                               | DEFAULT                             |
|------------------------------------|----------------------------------------|-------------------------------------|
| gmail                              | IMAP, SMTP                             | yes                                 |
~ ❯ himalaya

The application panicked (crashed).
Message:  assertion failed: self.is_char_boundary(new_len)
Location: /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/alloc/src/string.rs:1407
soywod commented 3 days ago

Looks like a char is breaking the table system managed by comfy-table. Could you try to identify which one by playing with pagination --page-size 1 and --page?