pimutils / pimutils/khal

bug: parsing issue in `DESCRIPTION`

Open
#1,441 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
3.1k
Forks
233
Avg merge
1h 44m
Merged PRs (30d)
1

Description

Describe the bug
Khal does not report a --json=description field on some .ics I have here (specifically a Teams .ics).

I guess its a parsing problem in the following: I have anonymized that stuff:

DESCRIPTION:Hi team!\nIt's time for our weekly update meeting, where we
  celebrate our wins, brainstorm ideas, and explore new opportunities.\nTo ma
 ke the most of our time together, please share any topics you'd like to disc
 uss on Slack beforehand (our friendly auto-reminder will nudge you 😉).\nLet
 's support each other and continue doing incredible things!\nSee you there!\
 nlaksjdf\n\n_________________________________________________________
 _______________________\nMicrosoft Teams Need help?<https://aka.ms/JoinTeams
 Meeting?omkt=en-GB>\nJoin the meeting now<https://teams.microsoft.com/l/meet
 up-join/19%3ameeting_OTFmMGY3MDMt5MjEwZjVlM2M5%40thre
 ad.v2/0?context=%7b%22Tid%22%3a%22f6c2556a-c4fb-4ab1-a2c7-9e220df11c43%22%2c
 %22Oid%22%3a%22b098ed7f-b9ae-41b8-82e8-302edfa3f704%22%7d>\nMeeting ID: 12034
 265 067 079 6\nPasscode: klajsdfl\n________________________________\nDial in
  by phone\n+41 43 211 12 10,,745116261#<tel:+12341234,,12341234#> Switze
 rland, Zurich\nFind a local number<https://dialin.teams.microsoft.com/f24fe5
 aa-5933-459f-bea7-c123412341234?id=1234>\nPhone conference ID: 132 234 123
 #\nFor organisers: Meeting options<https://teams.microsoft.com/meetingOpti
 ons/?organizerId=b098ed7f-b9ae-41b8-1234-302e704&tenantId=f6c255-c4fb
 -4ab1-a2c7-9e220df11c43&threadId=19_meeting_OTFmMGY3MDMtMDdiLTlkY2It
 ZjY5MjEwZjVlM2M5@thread.v2&messageId=0&language=en-GB> | Reset dial-in PIN<h
 ttps://dialin.teams.microsoft.com/usp/pstnconferencing>\n___________________
 _____________________________________________________________\n
RRULE:FREQ=WEEKLY;UNTIL=20260124T140000Z;INTERVAL=3;BYDAY=TH;WKST=MO

If applicable: Stack Trace
No stack trace, it just reports no description for that .ics.

To Reproduce
Steps to reproduce the behavior:

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

OS, version, khal version and how you installed it:

  • The output of khal --version: 0.13.0
  • Installation method: nixpkgs
  • python version [e.g. python 3.9]
  • OS: nixos
  • Your khal config file: none

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the missing --json=description output with the anonymized Teams .ics content, then trace how khal parses the DESCRIPTION property. Done means this event's description is reported in JSON without breaking folded lines or escaped newlines.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.