Gnus development mailing list
 help / color / mirror / Atom feed
From: "Bjørn Mork" <bmork@dod.no>
To: ding@gnus.org
Subject: (Re-)coding problems forwarding calendar attachment
Date: Wed, 22 Aug 2007 14:56:46 +0200	[thread overview]
Message-ID: <87d4xfenht.fsf@obelix.mork.no> (raw)

I have problems forwarding calendar attachments using a current CVS
Gnus.

I don't really know if this posting will survive since I'm posting it
using Gnus, but I'm trying to force it to 8bit latin1 (knowing that
there are really utf-8 characters embedded within this article).

[Uh-oh, I am getting the magic question of desctruction (see below) when
posting this, so I'm pretty sure it will be screwed up. Trying
anyway. You may have to filter the result...]


This is how the original Microsoft generated blob looks like:


------_=_NextPart_001_01C7E4B1.D35AB8EB
Content-Type: text/calendar; method=REQUEST; name="meeting.ics"
Content-Transfer-Encoding: 8bit
Content-class: urn:content-classes:calendarmessage

BEGIN:VCALENDAR
METHOD:REQUEST
PRODID:Microsoft CDO for Microsoft Exchange
VERSION:2.0
BEGIN:VTIMEZONE
TZID:(GMT+01.00) Berlin/Stockholm/Rome/Bern/Vienna
X-MICROSOFT-CDO-TZID:4
BEGIN:STANDARD
DTSTART:16010101T030000
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
RRULE:FREQ=YEARLY;WKST=MO;INTERVAL=1;BYMONTH=10;BYDAY=-1SU
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:16010101T020000
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
RRULE:FREQ=YEARLY;WKST=MO;INTERVAL=1;BYMONTH=3;BYDAY=-1SU
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
DTSTAMP:20070822T114442Z
DTSTART;TZID="(GMT+01.00) Berlin/Stockholm/Rome/Bern/Vienna":20070822T14000
 0
SUMMARY:Test med Ø og Å
UID:{AF8C0874-B1EB-413A-87D4-1C56EC0B94B9}
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN="Mork Bjø
 rn (Networks)":MAILTO:bmork@example.net
ORGANIZER;CN="Mork Bjørn (IS  Nordic)":MAILTO:Bjorn.Mork@example.com
LOCATION:Bø
DTEND;TZID="(GMT+01.00) Berlin/Stockholm/Rome/Bern/Vienna":20070822T143000
DESCRIPTION:\NPrøver ut vCalendar tegnsett....\N\N\NBjørn\N
SEQUENCE:1
PRIORITY:5
CLASS:
CREATED:20070822T114440Z
LAST-MODIFIED:20070822T114440Z
STATUS:CONFIRMED
TRANSP:OPAQUE
X-MICROSOFT-CDO-BUSYSTATUS:BUSY
X-MICROSOFT-CDO-INSTTYPE:0
X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY
X-MICROSOFT-CDO-ALLDAYEVENT:FALSE
X-MICROSOFT-CDO-IMPORTANCE:1
X-MICROSOFT-CDO-OWNERAPPTID:-1
X-MICROSOFT-CDO-ATTENDEE-CRITICAL-CHANGE:20070822T114440Z
X-MICROSOFT-CDO-OWNER-CRITICAL-CHANGE:20070822T114442Z
END:VEVENT
END:VCALENDAR

------_=_NextPart_001_01C7E4B1.D35AB8EB--



So they are using
 - 8bit encoding,
 - mime-type text/calendar, 
 - default charset, 
 - vCalendar version 2.0

This all looks good to me.  According to RFC2445, the default charset
for an iCalendar object is UTF-8, and the text within the object looks
like valid UTF-8 to me.

If I try to forward a mail like this, Gnus will recode the attachment
using it's own defaults:

 - quoted-printable encoding,
 - mime-type text/calendar, 
 - charset utf-8, 
 - vCalendar version 2.0

But when sendting it I get the annoying question 

 "Non-printable characters found.  Continue sending? (d, r, i, e, ?)"

and even if I answer "i" to ignore, the contents
is changed resulting in invalid UTF-8:

--==-=-=
Content-Type: text/calendar; charset=utf-8; name=meeting.ics
Content-Transfer-Encoding: quoted-printable

BEGIN:VCALENDAR
METHOD:REQUEST
PRODID:Microsoft CDO for Microsoft Exchange
VERSION:2.0
BEGIN:VTIMEZONE
TZID:(GMT+01.00) Berlin/Stockholm/Rome/Bern/Vienna
X-MICROSOFT-CDO-TZID:4
BEGIN:STANDARD
DTSTART:16010101T030000
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
RRULE:FREQ=3DYEARLY;WKST=3DMO;INTERVAL=3D1;BYMONTH=3D10;BYDAY=3D-1SU
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:16010101T020000
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
RRULE:FREQ=3DYEARLY;WKST=3DMO;INTERVAL=3D1;BYMONTH=3D3;BYDAY=3D-1SU
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
DTSTAMP:20070822T114442Z
DTSTART;TZID=3D"(GMT+01.00) Berlin/Stockholm/Rome/Bern/Vienna":20070822T140=
00
 0
SUMMARY:Test med =C3=83=C2=98 og =C3=83=C2=85
UID:{AF8C0874-B1EB-413A-87D4-1C56EC0B94B9}
ATTENDEE;ROLE=3DREQ-PARTICIPANT;PARTSTAT=3DNEEDS-ACTION;RSVP=3DTRUE;CN=3D"M=
ork Bj=C3=83=C2=B8
 rn (Networks)":MAILTO:bmork@example.net
ORGANIZER;CN=3D"Mork Bj=C3=83=C2=B8rn (IS  Nordic)":MAILTO:Bjorn.Mork@examp=
le.com
LOCATION:B=C3=83=C2=B8
DTEND;TZID=3D"(GMT+01.00) Berlin/Stockholm/Rome/Bern/Vienna":20070822T143000
DESCRIPTION:\NPr=C3=83=C2=B8ver ut vCalendar tegnsett....\N\N\NBj=C3=83=C2=
=B8rn\N
SEQUENCE:1
PRIORITY:5
CLASS:
CREATED:20070822T114440Z
LAST-MODIFIED:20070822T114440Z
STATUS:CONFIRMED
TRANSP:OPAQUE
X-MICROSOFT-CDO-BUSYSTATUS:BUSY
X-MICROSOFT-CDO-INSTTYPE:0
X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY
X-MICROSOFT-CDO-ALLDAYEVENT:FALSE
X-MICROSOFT-CDO-IMPORTANCE:1
X-MICROSOFT-CDO-OWNERAPPTID:-1
X-MICROSOFT-CDO-ATTENDEE-CRITICAL-CHANGE:20070822T114440Z
X-MICROSOFT-CDO-OWNER-CRITICAL-CHANGE:20070822T114442Z
END:VEVENT
END:VCALENDAR

--==-=-=--



If I try to forward a raw copy of the mail with the attachment (C-u 2
C-c C-f), I get the mime-headers unchanged as expected. But I get the
same annoying question and the contents is still changed adding a "Ã" in
front of the UTF-8 multibyte characters resulting in invalid UTF-8:

------_=_NextPart_001_01C7E4B1.D35AB8EB
Content-Type: text/calendar; method=REQUEST; name="meeting.ics"
Content-Transfer-Encoding: 8bit
Content-class: urn:content-classes:calendarmessage

BEGIN:VCALENDAR
METHOD:REQUEST
PRODID:Microsoft CDO for Microsoft Exchange
VERSION:2.0
BEGIN:VTIMEZONE
TZID:(GMT+01.00) Berlin/Stockholm/Rome/Bern/Vienna
X-MICROSOFT-CDO-TZID:4
BEGIN:STANDARD
DTSTART:16010101T030000
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
RRULE:FREQ=YEARLY;WKST=MO;INTERVAL=1;BYMONTH=10;BYDAY=-1SU
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:16010101T020000
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
RRULE:FREQ=YEARLY;WKST=MO;INTERVAL=1;BYMONTH=3;BYDAY=-1SU
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
DTSTAMP:20070822T114442Z
DTSTART;TZID="(GMT+01.00) Berlin/Stockholm/Rome/Bern/Vienna":20070822T14000
 0
SUMMARY:Test med Ø og Å
UID:{AF8C0874-B1EB-413A-87D4-1C56EC0B94B9}
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN="Mork Bjø
 rn (Networks)":MAILTO:bmork@example.net
ORGANIZER;CN="Mork Bjørn (IS  Nordic)":MAILTO:Bjorn.Mork@example.com
LOCATION:Bø
DTEND;TZID="(GMT+01.00) Berlin/Stockholm/Rome/Bern/Vienna":20070822T143000
DESCRIPTION:\NPrøver ut vCalendar tegnsett....\N\N\NBjørn\N
SEQUENCE:1
PRIORITY:5
CLASS:
CREATED:20070822T114440Z
LAST-MODIFIED:20070822T114440Z
STATUS:CONFIRMED
TRANSP:OPAQUE
X-MICROSOFT-CDO-BUSYSTATUS:BUSY
X-MICROSOFT-CDO-INSTTYPE:0
X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY
X-MICROSOFT-CDO-ALLDAYEVENT:FALSE
X-MICROSOFT-CDO-IMPORTANCE:1
X-MICROSOFT-CDO-OWNERAPPTID:-1
X-MICROSOFT-CDO-ATTENDEE-CRITICAL-CHANGE:20070822T114440Z
X-MICROSOFT-CDO-OWNER-CRITICAL-CHANGE:20070822T114442Z
END:VEVENT
END:VCALENDAR

------_=_NextPart_001_01C7E4B1.D35AB8EB--




Bjørn
-- 
Ban the war on freedom!




             reply	other threads:[~2007-08-22 12:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-22 12:56 Bjørn Mork [this message]
2007-08-23  4:42 ` Katsumi Yamaoka
2007-08-23 15:27   ` Bjørn Mork
2007-08-24 10:22     ` Katsumi Yamaoka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d4xfenht.fsf@obelix.mork.no \
    --to=bmork@dod.no \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 NNTP newsgroup(s).