unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* bug related to ical
@ 2012-06-25 17:47 Robert Horn
  2012-09-25 10:52 ` Olivier Berger
  2012-09-26  6:36 ` Aaron Ecay
  0 siblings, 2 replies; 11+ messages in thread
From: Robert Horn @ 2012-06-25 17:47 UTC (permalink / raw)
  To: notmuch

I've noticed a problem related to handling of ical attachments.  I'm
using Notmuch 0.13 on Emacs 23.3.1.  I've done some basic
troubleshooting.

The problem arises with emails from Concur that include an ical
attachment being viewed with the notmuch message viewer.  The problems
are:
 1. When opening the email there is sometimes the following mesage and
 error in Emacs message buffer:
  Converting icalendar...done
  notmuch-show-insert-bodypart-internal: Wrong type argument: stringp, nil

 2. Some (not all) of the view commands fail, e.g. "v", "V", "w".
 Others work, like "m", and "q".

 3. Examination of the /tmp directory shows notmuch-ical temp files being
 created but they are zero length.

This is related to the ical attachment.  When I editted one of the emails to
remove the attachment, the problem went away.  I suspect it is related
to the attachments being base64 encoded.  The header of the mime
attachment shows:

Content-Type: application/octet-stream;
	name="ConcurCalendarEntry.ics"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="ConcurCalendarEntry.ics"

The encoding is correct.  The attachment decodes and looks right.  With
some details obscured the attachment contains:

BEGIN:VCALENDAR
VERSION:2.0
METHOD:PUBLISH
BEGIN:VEVENT
DTSTART:properly-formatted
DTEND:properly-formatted
DTSTAMP:properly-formatted
LOCATION:
SUMMARY:Concur Travel Itinerary
DESCRIPTION:Lots of stuff
 with about 80 lines of description. All indented properly.
UID:properly-formatted
PRIORITY:3
TRANSP:TRANSPARENT
END:VEVENT
END:VCALENDAR

I can live without the ics files, so fixing this is not a priority for
me.  If there is someone interested in figuring this out, I've saved an
email and can answer questions.  I got lost trying to follow the lisp
code paths for attachments, so I'm not sure whether it's the text or the
base64 that is being handed off to icalendar.

R Horn
rjhorn@alum.mit.edu

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-10-28 15:02 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-25 17:47 bug related to ical Robert Horn
2012-09-25 10:52 ` Olivier Berger
2012-09-25 11:42   ` Tomi Ollila
2012-09-25 15:44     ` Olivier Berger
2012-09-26  5:53       ` Tomi Ollila
2012-09-26  6:36 ` Aaron Ecay
2012-09-26  6:57   ` Tomi Ollila
2012-10-03 13:30   ` Tomi Ollila
2012-10-03 14:06     ` Tomi Ollila
2012-10-21  7:03       ` Olivier Berger
2012-10-28 15:02         ` Olivier Berger

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).