khal icon indicating copy to clipboard operation
khal copied to clipboard

Importing .ics files from neomutt is broken

Open teonnik opened this issue 2 years ago • 4 comments

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 

teonnik avatar Jul 05 '22 17:07 teonnik

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.

Role92 avatar Jul 07 '22 13:07 Role92

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 avatar Jul 07 '22 19:07 teonnik

@teonnik thank you for reporting that bug.

Can you confirm it worked with khal 0.10.4?

geier avatar Jul 11 '22 20:07 geier

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

bbbart avatar Oct 01 '22 19:10 bbbart