Open Bug 1776462 Opened 3 years ago Updated 8 months ago

Mail > Convert To > Event not working - CalIcsParser.jsm:167 - Calendar: ParserError: invalid line (no token ";" or ":") "\n"'ParserError: invalid line (no token ";" or ":") "\n"' when calling method: [calIICSService::parseICS] when parsing

Categories

(Calendar :: Provider: CalDAV, defect, P2)

Thunderbird 102

Tracking

(Not tracked)

People

(Reporter: richard.leger, Unassigned)

References

Details

Steps to reproduce:

In TB 102.0b8 (64-bit) on Windows 10, in mail view, select an email, right click, convert to > event, then edit event title, set date/time and reminders then save and close...

Result:

The event edit windows close without error, but the item is not saved in CalDAV calendar (silently fails) without end-user noticing!!!
Data is simply lost!

In error console the message below appears:

Calendar: ParserError: invalid line (no token ";" or ":")                 CalIcsParser.jsm:167 
"\n"'ParserError: invalid line (no token ";" or ":") "\n"' when calling method: [calIICSService::parseICS] when parsing      
(...)

Expected result:

New event to be saved correctly in calendar without error
or
If error raise that a prompt on screen indicate the that the item cannot be saved and why so issue can either be fixed or known by end-user... especially that the item was not saved as expected!

Summary: CalIcsParser.jsm:167 - Calendar: ParserError: invalid line (no token ";" or ":") "\n"'ParserError: invalid line (no token ";" or ":") "\n"' when calling method: [calIICSService::parseICS] when parsing → Convert To > Event not working - CalIcsParser.jsm:167 - Calendar: ParserError: invalid line (no token ";" or ":") "\n"'ParserError: invalid line (no token ";" or ":") "\n"' when calling method: [calIICSService::parseICS] when parsing
Summary: Convert To > Event not working - CalIcsParser.jsm:167 - Calendar: ParserError: invalid line (no token ";" or ":") "\n"'ParserError: invalid line (no token ";" or ":") "\n"' when calling method: [calIICSService::parseICS] when parsing → Mail > Convert To > Event not working - CalIcsParser.jsm:167 - Calendar: ParserError: invalid line (no token ";" or ":") "\n"'ParserError: invalid line (no token ";" or ":") "\n"' when calling method: [calIICSService::parseICS] when parsing
See Also: → 1738611
Component: Calendar Frontend → Provider: CalDAV
See Also: → 1762283

I can confirm that the convert to event Bug 1776462 as described by Richard Leger persists in TB 102.0.2 (32-bit) on Windows 10. Below I post an error message from the error console with identifiable information replaced with [XXX] or removed as indicated by [...]. I hope this helps.

Calendar: CalDAV: Unexpected status adding item to [XXX]: 415
BEGIN:VCALENDAR

PRODID:-//Mozilla.org/NONSGML Mozilla Calendar V1.1//EN

VERSION:2.0

BEGIN:VTIMEZONE

TZID:Europe/Berlin

BEGIN:DAYLIGHT

TZOFFSETFROM:+0100

TZOFFSETTO:+0200

TZNAME:CEST

DTSTART:19700329T020000

RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU

END:DAYLIGHT

BEGIN:STANDARD

TZOFFSETFROM:+0200

TZOFFSETTO:+0100

TZNAME:CET

DTSTART:19701025T030000

RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU

END:STANDARD

END:VTIMEZONE

BEGIN:VEVENT

CREATED:20220713T080213Z

LAST-MODIFIED:20220713T080318Z

DTSTAMP:20220713T080318Z

UID: [...]

SUMMARY: [...]

CATEGORIES: [...]

DTSTART;TZID=Europe/Berlin:20220727T110000

DTEND;TZID=Europe/Berlin:20220727T120000

DESCRIPTION: [...]

URL: [...]

TRANSP:OPAQUE

END:VEVENT

END:VCALENDAR

CalDavCalendar.jsm:636

NS_ERROR_FAILURE: Server Replied with 415 calCachedCalendar.js:640

Still happening in 105.0b2 (64-bit)...

https://www.rfc-editor.org/rfc/rfc5545#section-3.3.11

Text DESCRIPTION field:

          text       = *(TSAFE-CHAR / ":" / DQUOTE / ESCAPED-CHAR)
      ; Folded according to description above

   ESCAPED-CHAR = ("\\" / "\;" / "\," / "\N" / "\n")
      ; \\ encodes \, \N or \n encodes newline
      ; \; encodes ;, \, encodes ,

   TSAFE-CHAR = WSP / %x21 / %x23-2B / %x2D-39 / %x3C-5B /
                %x5D-7E / NON-US-ASCII
      ; Any character except CONTROLs not needed by the current
      ; character set, DQUOTE, ";", ":", "\", ","

ABNF. WSP & DQUOTE (https://www.rfc-editor.org/rfc/rfc5234#appendix-B.1):

     WSP            =  SP / HTAB
                            ; white space
              SP             =  %x20

     HTAB           =  %x09
                            ; horizontal tab

     DQUOTE         =  %x22
                            ; " (Double Quote)

     NON-US-ASCII  = UTF8-2 / UTF8-3 / UTF8-4
        ; UTF8-2, UTF8-3, and UTF8-4 are defined in [RFC3629  <https://www.rfc-editor.org/rfc/rfc3629>]

You can't use 0x0d.

User story+workaround for your info... and further highlight of the issue...
Bug 1738611 Comment 20

Duplicate of this bug: 1797045
Priority: -- → P2
Duplicate of this bug: 1800493
Duplicate of this bug: 1815915
See Also: → 1815849
Duplicate of this bug: 1838418

I noticed in recent beta such as 113beta (I think), 114.0b6 (64-bit) or 115.0b2 (64-bit)... that the Convert To entry is missing in the context menu when right click on a message in Mail > Message List. Was it disabled temporarily because of this bug not fixed? Or is it a Supernova UI bug that was unnoticed?

Currently you can no longer easily convert an email message into an Event or a Task, which is quite "handicapping" especially when it is used daily :-)

It's available from the More menu atm. Bug 1817705 for context.

Hello,

I am very sorry.

What do you think will this Problem be solved in the near future are will it not be solved?

regards
Carsten

Hello,

is this a Problem of the Caldav Backend (Calendar) or of the bad formated eMail?
In my case most of the Time Mails send by or from O365 forced the Problem. In case I forward this eMail to myself and convert this forwared mail to an event or task works fine.

thanks
regards
carsten

(In reply to Magnus Melin [:mkmelin] from comment #12)

It's available from the More menu atm. Bug 1817705 for context.

I am very sorry.

What do you think will this Problem be solved in the near future are will it not be solved?

is this a Problem of the Caldav Backend (Calendar) or of the bad formated eMails?
In my case most of the Time Mails send by or from O365 forced the Problem. In case I forward this eMail to myself and convert this forwared mail to an event or task works fine. For me the problem exists within the Mail Header of the Mail.

thanks
regards
carsten

See Also: → 1817705

Hello,

I see in the Call 1817705 that the possible to move the a event is gone from the menu in future version

Does this means that this very useful function will be deleted and not longer supported?

Thanks for any feedback
regards
Carsten

It's available through the More menu.
Bug 1817705 will add back the context menu for it.

And will it work? Is this error of "Calendar: ParserError:" solved by this later Version?
Which Version should I install to get my loved function" convert to event" working back?

thanks
regards
Carsten

Duplicate of this bug: 1815849

Hello,

I checked the calendar event which I tried to convert from Mail on my Iphone, where I can view this event.

I detect that the Content of the Mail is store in the URL field. And that makes some problems because a lot of values are not correct for a URL.

The Version I used is 102.13.0.

Will I get this feature "convert to event or task" running back again? Or will this feature will never work again?

regards
Carsten

For me convert to event or task is not working in Linux version 116.0b7 (64-bit) and not in 115.0.1 (64-bit) For some time it worked in the beta version, but now nothing is saved there too

Hello,

since today I am on 115.2.3 on MAC.

But no changes still. The feature "Mail > Convert To > Event not working" is still not working in case of Mail send by Microsoft or others. I do not known.
The Event will be created but it is not visible within Thunderbird. On my Iphone it is complete visible. In case i modify the Event on the Iphone it is visible in Thunderbird afterwards.

Will this parsing Problem solved sometime?

Is there a plan? Is someone working?
Or is it not important wo work on?

If someone needs traces or informations i would be happy to provide.

thanks
regards
Carsten

Hello,

nothing done util now.

I have found a Workaround:

Goto change to Event, Cut all Content (Old Mail) from the Event => paste all Content back to the Event => store

It works on my site.

Fyi, error still occurring in TB 119.0b3 (64-bit) on Windows 10.

Calendar: ParserError: invalid line (no token ";" or ":") "\n"'ParserError: invalid line (no token ";" or ":") "\n"' when calling method: [calIICSService::parseICS] when parsing
(...)
CalIcsParser.jsm:155
Duplicate of this bug: 1866081
Duplicate of this bug: 1876905

Hello,
I have the same problem using TB 115.9 on Windows 10 synchronized with caldav (synology server).
The situation is as follows:

  1. some emails convert to task and synchronize with server calendars without any problems (two ways)
  2. some emails convert to task and are visible on server calendar but do not show up in TB tasks view
  3. the emails from the point 2 can be converted to task and be seen in TB task view if during conveting all the email content is deleted.

The error message the same as posted before by other users:
Calendar: ParserError: invalid line (no token ";" or ":")

I hope this will work in the future and I keep my fingers crossed!

HI,

I am sorry to tell you that. I believe this bug will never be fixed. From my point of view nobody is interested in.

I have the problem since two years without any feedback.

A workaround works for me:

I cut the Content of the Mail and paste it directly back again at the moment of Task / Event creation.

I do think that not all Data will be used by cut and paste and than it works fine.

Best regards
Carsten

Hello Carsten,
If it helps, the solution I found (after searching and searching and searching...) and which has been working for 1 year, or more.

My system:

  • Windows 10 PRO, 22H2 (I haven't yet taken the time to migrate to Windoxs 11...)
  • Thunderbird 115.9.0 (32-bit) (I always update)
  • Thunderbird Calendar
  • 2 calendars under Caldav
  • Synology DS718, runs under DSM 6.2.4-25556 Update 7 (I haven't yet taken the time to migrate to DSM 7...)

On Thunderbird:

  • Right click on a message + Convert to event.
  • In the “new event” window that opens:

    Set date and time
    IMPORTANT, in the bottom text area (description tab), you must put the cursor in front of the 1st letter of the text, and put 1 space (1 tab).
    Save and close.

And miraculously, the event is recorded in your calendar.
Have a good week, if that helps... ;-)

Hi,

I've just verified the workaround proposed by @laurent and it worked. (Thank you @Laurent)

  1. open a message in the inbox
  2. convert to event
  3. fails silently, no event is created in the calendar, but the error is logged in the console
  4. convert to event (same message)
  5. add one (1) space in the beginning of the description
  6. the event is created in the calendar AND the error is logged in console anyway

Hope this helps identifying the source of the bug.

Please let me know if you need me to supply you any more data.

Best regards,
G.

Nome Thunderbird
Versão 115.12.2
ID da compilação 20240621154414
Canal de atualização esr
Agente do utilizador Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:115.0) Gecko/20100101 Thunderbird/115.12.2
SO Windows_NT 10.0 19045
Binário da aplicação C:\Program Files\Mozilla Thunderbird\thunderbird.exe

Best regards,

I can confirm that editing the event description before saving works as a workaround the problem.

See Also: → 1906430

Hello everyone,
I installed yesterday Wednesday, the version NEBULA 128.2.3esr (32 bits).
The bug is fixed, everything works well now, without performing any tricks as I had proposed.

Right click on an email:

  • Organize/ convert to/ event
  • OK

On an email:

  • Other/ convert to/ event
  • OK

Thanks to the team for fixing this bug
Have a good week, Laurent. ;-)

Still happening in Thunderbird 133.0b4 (64-bit) on Windows 10...

08:57:34.851 ParserError: invalid line (no token ";" or ":") "\n" Ical.sys.mjs:1942:1
ParserError resource:///modules/calendar/Ical.sys.mjs:1942
_handleContentLine resource:///modules/calendar/Ical.sys.mjs:2053
parse resource:///modules/calendar/Ical.sys.mjs:1882
_eachLine resource:///modules/calendar/Ical.sys.mjs:2380
parse resource:///modules/calendar/Ical.sys.mjs:1881
parseICS resource:///modules/CalICSService.sys.mjs:578
parseString resource:///modules/CalIcsParser.sys.mjs:151
addTargetCalendarItem resource:///modules/CalDavCalendar.sys.mjs:916
endElement resource:///modules/caldav/CalDavRequestHandlers.sys.mjs:1052
_walk resource:///modules/caldav/CalDavRequestHandlers.sys.mjs:118
AsyncFunctionNext self-hosted:800
(Async: async)
_walk resource:///modules/caldav/CalDavRequestHandlers.sys.mjs:112
AsyncFunctionNext self-hosted:800
(Async: async)
handleResponse resource:///modules/caldav/CalDavRequestHandlers.sys.mjs:64
onStopRequest resource:///modules/caldav/CalDavRequestHandlers.sys.mjs:934
onStopRequest resource:///modules/caldav/CalDavRequest.sys.mjs:539

You need to log in before you can comment on or make changes to this bug.