khal
khal copied to clipboard
Importing .ics files from neomutt is broken
After the most recent update to khal
I get the following error when I try to import an .ics
file from neomutt with the binding macro attach \Ck "<pipe-message>khal import <enter>"
:
warning: /dev/tty does not exist, importing might not work
.... <event info> ....
Do you want to import this event into `private`? [y/N]: Aborted!
Press any key to continue...
and the event is not imported.
khal version: 0.10.5 neomutt: 20220429
System:
OS: Arch Linux x86_64
Host: 20L7CTO1WW ThinkPad T480s
Kernel: 5.18.9-arch1-1
Shell: zsh 5.9
WM: sway
Terminal: foot
CPU: Intel i7-8550U (8) @ 4.000GHz
GPU: Intel UHD Graphics 620
You can put this in your mailcap
file:
text/calendar; khal import %s;
With this line, .ics
files can just be opened from the attachment view, since they have the unique mimetype text/calendar
.
I am aware that this is an option but I have text/calendar; vcal %s; copiousoutput
in my mailcap already... this allows me to view the event within neomutt. That is why I have macro attach \Ck "<pipe-message>khal import <enter>"
defined, so that I can do the equivalent of what you suggest with it by pressing Ctrl+k
.
@teonnik thank you for reporting that bug.
Can you confirm it worked with khal 0.10.4?
I cannot confirm if it worked before, but I am getting the exact same error message, either when trying to import an .ics through a mutt macro, or directly from the command line.
Using 0.10.5