]> git.pld-linux.org Git - packages/beagle.git/blame - beagle-gmime-2.4.patch
- fix build with mono-2.8
[packages/beagle.git] / beagle-gmime-2.4.patch
CommitLineData
41595648 1Index: beagle/beagled/EvolutionMailQueryable/EvolutionMailIndexableGenerator.cs
2===================================================================
3--- beagle/beagled/EvolutionMailQueryable/EvolutionMailIndexableGenerator.cs (revision 4874)
4+++ beagle/beagled/EvolutionMailQueryable/EvolutionMailIndexableGenerator.cs (working copy)
5@@ -333,28 +333,46 @@
6 indexable.AddProperty (Property.NewUnsearched ("fixme:folder", this.folder_name));
7
8 GMime.InternetAddressList addrs;
9-
10- addrs = message.GetRecipients (GMime.Message.RecipientType.To);
11- foreach (GMime.InternetAddress ia in addrs) {
12- if (this.folder_name == "Sent" && ia.AddressType != GMime.InternetAddressType.Group)
13- indexable.AddProperty (Property.NewUnsearched ("fixme:sentTo", ia.Addr));
14+
15+ if (this.folder_name == "Sent") {
16+ addrs = message.GetRecipients (GMime.RecipientType.To);
17+ foreach (GMime.InternetAddress ia in addrs) {
18+ if (ia is GMime.InternetAddressMailbox) {
19+ GMime.InternetAddressMailbox mailbox = ia as GMime.InternetAddressMailbox;
20+
21+ indexable.AddProperty (Property.NewUnsearched ("fixme:sentTo", mailbox.Address));
22+ }
23+ }
24+
25+ addrs.Dispose ();
26 }
27- addrs.Dispose ();
28-
29- addrs = message.GetRecipients (GMime.Message.RecipientType.Cc);
30- foreach (GMime.InternetAddress ia in addrs) {
31- if (this.folder_name == "Sent" && ia.AddressType != GMime.InternetAddressType.Group)
32- indexable.AddProperty (Property.NewUnsearched ("fixme:sentTo", ia.Addr));
33+
34+ if (this.folder_name == "Sent") {
35+ addrs = message.GetRecipients (GMime.RecipientType.Cc);
36+ foreach (GMime.InternetAddress ia in addrs) {
37+ if (ia is GMime.InternetAddressMailbox) {
38+ GMime.InternetAddressMailbox mailbox = ia as GMime.InternetAddressMailbox;
39+
40+ indexable.AddProperty (Property.NewUnsearched ("fixme:sentTo", mailbox.Address));
41+ }
42+ }
43+
44+ addrs.Dispose ();
45 }
46- addrs.Dispose ();
47-
48- addrs = GMime.InternetAddressList.ParseString (GMime.Utils.HeaderDecodePhrase (message.Sender));
49- foreach (GMime.InternetAddress ia in addrs) {
50- if (this.folder_name != "Sent" && ia.AddressType != GMime.InternetAddressType.Group)
51- indexable.AddProperty (Property.NewUnsearched ("fixme:gotFrom", ia.Addr));
52+
53+ if (this.folder_name != "Sent") {
54+ addrs = GMime.InternetAddressList.Parse (message.Sender);
55+ foreach (GMime.InternetAddress ia in addrs) {
56+ if (ia is GMime.InternetAddressMailbox) {
57+ GMime.InternetAddressMailbox mailbox = ia as GMime.InternetAddressMailbox;
58+
59+ indexable.AddProperty (Property.NewUnsearched ("fixme:gotFrom", mailbox.Address));
60+ }
61+ }
62+
63+ addrs.Dispose ();
64 }
65- addrs.Dispose ();
66-
67+
68 if (this.folder_name == "Sent")
69 indexable.AddProperty (Property.NewFlag ("fixme:isSent"));
70
71@@ -750,48 +768,54 @@
72 }
73
74 GMime.InternetAddressList addrs;
75- addrs = GMime.InternetAddressList.ParseString (messageInfo.to);
76+ addrs = GMime.InternetAddressList.Parse (messageInfo.to);
77 foreach (GMime.InternetAddress ia in addrs) {
78+ GMime.InternetAddressMailbox mailbox = ia as GMime.InternetAddressMailbox;
79+
80 if (!have_content) {
81 indexable.AddProperty (Property.NewUnsearched ("fixme:to", ia.ToString (false)));
82- if (ia.AddressType != GMime.InternetAddressType.Group)
83- indexable.AddProperty (Property.New ("fixme:to_address", ia.Addr));
84-
85+ if (ia is GMime.InternetAddressMailbox)
86+ indexable.AddProperty (Property.New ("fixme:to_address", mailbox.Address));
87+
88 indexable.AddProperty (Property.New ("fixme:to_name", ia.Name));
89 }
90-
91- if (this.folder_name == "Sent" && ia.AddressType != GMime.InternetAddressType.Group)
92- indexable.AddProperty (Property.NewUnsearched ("fixme:sentTo", ia.Addr));
93+
94+ if (this.folder_name == "Sent" && ia is GMime.InternetAddressMailbox)
95+ indexable.AddProperty (Property.NewUnsearched ("fixme:sentTo", mailbox.Address));
96 }
97 addrs.Dispose ();
98
99- addrs = GMime.InternetAddressList.ParseString (messageInfo.cc);
100+ addrs = GMime.InternetAddressList.Parse (messageInfo.cc);
101 foreach (GMime.InternetAddress ia in addrs) {
102+ GMime.InternetAddressMailbox mailbox = ia as GMime.InternetAddressMailbox;
103+
104 if (!have_content) {
105 indexable.AddProperty (Property.NewUnsearched ("fixme:cc", ia.ToString (false)));
106- if (ia.AddressType != GMime.InternetAddressType.Group)
107- indexable.AddProperty (Property.New ("fixme:cc_address", ia.Addr));
108-
109+ if (ia is GMime.InternetAddressMailbox)
110+ indexable.AddProperty (Property.New ("fixme:cc_address", mailbox.Address));
111+
112 indexable.AddProperty (Property.New ("fixme:cc_name", ia.Name));
113 }
114-
115- if (this.folder_name == "Sent" && ia.AddressType != GMime.InternetAddressType.Group)
116- indexable.AddProperty (Property.NewUnsearched ("fixme:sentTo", ia.Addr));
117+
118+ if (this.folder_name == "Sent" && ia is GMime.InternetAddressMailbox)
119+ indexable.AddProperty (Property.NewUnsearched ("fixme:sentTo", mailbox.Address));
120 }
121 addrs.Dispose ();
122
123- addrs = GMime.InternetAddressList.ParseString (messageInfo.from);
124+ addrs = GMime.InternetAddressList.Parse (messageInfo.from);
125 foreach (GMime.InternetAddress ia in addrs) {
126+ GMime.InternetAddressMailbox mailbox = ia as GMime.InternetAddressMailbox;
127+
128 if (!have_content) {
129 indexable.AddProperty (Property.NewUnsearched ("fixme:from", ia.ToString (false)));
130- if (ia.AddressType != GMime.InternetAddressType.Group)
131- indexable.AddProperty (Property.New ("fixme:from_address", ia.Addr));
132-
133+ if (ia is GMime.InternetAddressMailbox)
134+ indexable.AddProperty (Property.New ("fixme:from_address", mailbox.Address));
135+
136 indexable.AddProperty (Property.New ("fixme:from_name", ia.Name));
137 }
138
139- if (this.folder_name != "Sent" && ia.AddressType != GMime.InternetAddressType.Group)
140- indexable.AddProperty (Property.NewUnsearched ("fixme:gotFrom", ia.Addr));
141+ if (this.folder_name != "Sent" && ia is GMime.InternetAddressMailbox)
142+ indexable.AddProperty (Property.NewUnsearched ("fixme:gotFrom", mailbox.Address));
143 }
144 addrs.Dispose ();
145
146Index: beagle/beagled/KMailQueryable/KMailIndexer.cs
147===================================================================
148--- beagle/beagled/KMailQueryable/KMailIndexer.cs (revision 4874)
149+++ beagle/beagled/KMailQueryable/KMailIndexer.cs (working copy)
150@@ -407,28 +407,46 @@
151 indexable.AddProperty (Property.NewUnsearched ("fixme:folder", folder_name));
152
153 GMime.InternetAddressList addrs;
154-
155- addrs = message.GetRecipients (GMime.Message.RecipientType.To);
156- foreach (GMime.InternetAddress ia in addrs) {
157- if (folder_name == Queryable.SentMailFolderName && ia.AddressType != GMime.InternetAddressType.Group)
158- indexable.AddProperty (Property.NewKeyword ("fixme:sentTo", ia.Addr));
159+
160+ if (folder_name == Queryable.SentMailFolderName) {
161+ addrs = message.GetRecipients (GMime.RecipientType.To);
162+ foreach (GMime.InternetAddress ia in addrs) {
163+ if (ia is GMime.InternetAddressMailbox) {
164+ GMime.InternetAddressMailbox mailbox = ia as GMime.InternetAddressMailbox;
165+
166+ indexable.AddProperty (Property.NewKeyword ("fixme:sentTo", mailbox.Address));
167+ }
168+ }
169+
170+ addrs.Dispose ();
171 }
172- addrs.Dispose ();
173-
174- addrs = message.GetRecipients (GMime.Message.RecipientType.Cc);
175- foreach (GMime.InternetAddress ia in addrs) {
176- if (folder_name == Queryable.SentMailFolderName && ia.AddressType != GMime.InternetAddressType.Group)
177- indexable.AddProperty (Property.NewKeyword ("fixme:sentTo", ia.Addr));
178+
179+ if (folder_name == Queryable.SentMailFolderName) {
180+ addrs = message.GetRecipients (GMime.RecipientType.Cc);
181+ foreach (GMime.InternetAddress ia in addrs) {
182+ if (ia is GMime.InternetAddressMailbox) {
183+ GMime.InternetAddressMailbox mailbox = ia as GMime.InternetAddressMailbox;
184+
185+ indexable.AddProperty (Property.NewKeyword ("fixme:sentTo", mailbox.Address));
186+ }
187+ }
188+
189+ addrs.Dispose ();
190 }
191- addrs.Dispose ();
192-
193- addrs = GMime.InternetAddressList.ParseString (GMime.Utils.HeaderDecodePhrase (message.Sender));
194- foreach (GMime.InternetAddress ia in addrs) {
195- if (folder_name != Queryable.SentMailFolderName && ia.AddressType != GMime.InternetAddressType.Group)
196- indexable.AddProperty (Property.NewKeyword ("fixme:gotFrom", ia.Addr));
197+
198+ if (folder_name != Queryable.SentMailFolderName) {
199+ addrs = GMime.InternetAddressList.Parse (message.Sender);
200+ foreach (GMime.InternetAddress ia in addrs) {
201+ if (ia is GMime.InternetAddressMailbox) {
202+ GMime.InternetAddressMailbox mailbox = ia as GMime.InternetAddressMailbox;
203+
204+ indexable.AddProperty (Property.NewKeyword ("fixme:gotFrom", mailbox.Address));
205+ }
206+ }
207+
208+ addrs.Dispose ();
209 }
210- addrs.Dispose ();
211-
212+
213 if (folder_name == Queryable.SentMailFolderName)
214 indexable.AddProperty (Property.NewFlag ("fixme:isSent"));
215 else {
216Index: beagle/beagled/ThunderbirdQueryable/ThunderbirdQueryable.cs
217===================================================================
218--- beagle/beagled/ThunderbirdQueryable/ThunderbirdQueryable.cs (revision 4874)
219+++ beagle/beagled/ThunderbirdQueryable/ThunderbirdQueryable.cs (working copy)
220@@ -363,9 +363,14 @@
221 message.Subject = Mime.HeaderDecodeText (GetText (document, "Subject"));
222 message.Sender = Mime.HeaderDecodePhrase (GetText (document, "Author"));
223 message.MessageId = GetText (document, "MessageId");
224- message.SetDate (DateTimeUtil.UnixToDateTimeUtc (Convert.ToInt64 (GetText (document, "Date"))), 0);
225- message.AddRecipientsFromString ("To", Mime.HeaderDecodePhrase (GetText (document, "Recipients")));
226-
227+ message.Date = DateTimeUtil.UnixToDateTimeUtc (Convert.ToInt64 (GetText (document, "Date")));
228+
229+ string str = GetText (document, "Recipients");
230+ GMime.InternetAddressList recipients = GMime.InternetAddressList.Parse (str);
231+ foreach (GMime.InternetAddress ia in recipients)
232+ message.To.Add (ia);
233+ recipients.Dispose ();
234+
235 return message;
236 }
237
238@@ -430,7 +435,7 @@
239
240 // We _know_ that the stream comes from a StreamReader, which uses UTF8 by
241 // default. So we use that here when parsing our string.
242- return (str != null ? Encoding.UTF8.GetString (str, 0, pos) : string.Empty);
243+ return (str != null ? System.Text.Encoding.UTF8.GetString (str, 0, pos) : string.Empty);
244 }
245
246 // This spell "charset="
247@@ -458,7 +463,7 @@
248 // instead of UTF-8 in some cases and that will really mess things up.
249 byte[] buffer = null;
250 int c, header_length = 0, newlines = 0, charset_pos = 0;
251- Encoding enc = Encoding.UTF8;
252+ System.Text.Encoding enc = System.Text.Encoding.UTF8;
253 try {
254 do {
255 c = stream.BaseStream.ReadByte ();
256@@ -487,7 +492,7 @@
257 stream.BaseStream.Read (buffer, 0, buffer.Length);
258
259 // We need to use correct encoding
260- enc = Encoding.GetEncoding (encoding_str);
261+ enc = System.Text.Encoding.GetEncoding (encoding_str);
262 } catch {
263 } finally {
264 stream.Close ();
265Index: beagle/beagled/GoogleBackends/GMailSearchDriver.cs
266===================================================================
267--- beagle/beagled/GoogleBackends/GMailSearchDriver.cs (revision 4874)
268+++ beagle/beagled/GoogleBackends/GMailSearchDriver.cs (working copy)
269@@ -322,38 +322,47 @@
270 hit.AddProperty (Property.NewDate ("fixme:date", message.Date.ToUniversalTime ()));
271
272 GMime.InternetAddressList addrs;
273- addrs = message.GetRecipients (GMime.Message.RecipientType.To);
274+ addrs = message.GetRecipients (GMime.RecipientType.To);
275 foreach (GMime.InternetAddress ia in addrs) {
276 hit.AddProperty (Property.NewUnsearched ("fixme:to", ia.ToString (false)));
277- if (ia.AddressType != GMime.InternetAddressType.Group)
278- hit.AddProperty (Property.New ("fixme:to_address", ia.Addr));
279-
280+ if (ia is GMime.InternetAddressMailbox) {
281+ GMime.InternetAddressMailbox mailbox = ia as GMime.InternetAddressMailbox;
282+
283+ hit.AddProperty (Property.New ("fixme:to_address", mailbox.Address));
284+ }
285+
286 hit.AddProperty (Property.New ("fixme:to_name", ia.Name));
287 }
288 addrs.Dispose ();
289
290- addrs = message.GetRecipients (GMime.Message.RecipientType.Cc);
291+ addrs = message.GetRecipients (GMime.RecipientType.Cc);
292 foreach (GMime.InternetAddress ia in addrs) {
293 hit.AddProperty (Property.NewUnsearched ("fixme:cc", ia.ToString (false)));
294- if (ia.AddressType != GMime.InternetAddressType.Group)
295- hit.AddProperty (Property.New ("fixme:cc_address", ia.Addr));
296-
297+ if (ia is GMime.InternetAddressMailbox) {
298+ GMime.InternetAddressMailbox mailbox = ia as GMime.InternetAddressMailbox;
299+
300+ hit.AddProperty (Property.New ("fixme:cc_address", mailbox.Address));
301+ }
302+
303 hit.AddProperty (Property.New ("fixme:cc_name", ia.Name));
304 }
305 addrs.Dispose ();
306
307- addrs = GMime.InternetAddressList.ParseString (GMime.Utils.HeaderDecodePhrase (message.Sender));
308+ addrs = GMime.InternetAddressList.Parse (message.Sender);
309 foreach (GMime.InternetAddress ia in addrs) {
310 hit.AddProperty (Property.NewUnsearched ("fixme:from", ia.ToString (false)));
311- if (ia.AddressType != GMime.InternetAddressType.Group)
312- hit.AddProperty (Property.New ("fixme:from_address", ia.Addr));
313-
314+ if (ia is GMime.InternetAddressMailbox) {
315+ GMime.InternetAddressMailbox mailbox = ia as GMime.InternetAddressMailbox;
316+
317+ hit.AddProperty (Property.New ("fixme:from_address", mailbox.Address));
318+ }
319+
320 hit.AddProperty (Property.New ("fixme:from_name", ia.Name));
321 }
322 addrs.Dispose ();
323
324 foreach (GMime.References refs in message.References)
325- hit.AddProperty (Property.NewUnsearched ("fixme:reference", refs.Msgid));
326+ hit.AddProperty (Property.NewUnsearched ("fixme:reference", refs.MessageId));
327
328 string list_id = message.GetHeader ("List-Id");
329 if (list_id != null)
330Index: beagle/configure.in
331===================================================================
332--- beagle/configure.in (revision 4874)
333+++ beagle/configure.in (working copy)
334@@ -17,7 +17,7 @@
335 NDESK_DBUS_REQUIRED=0.5.2
336 NDESK_DBUS_GLIB_REQUIRED=0.3.0
337 GTK_SHARP_REQUIRED=2.10.0
338-GMIME_SHARP_REQUIRED=2.2.0
339+GMIME_SHARP_REQUIRED=2.3.5
340 EVOLUTION_SHARP_REQUIRED=0.13.3
341 GSF_SHARP_REQUIRED=0.6
342 GTK_REQUIRED=2.10.0
343@@ -223,7 +223,7 @@
344 glade-sharp-2.0 >= $GTK_SHARP_REQUIRED
345 gnome-sharp-2.0 >= $GTK_SHARP_REQUIRED
346 gnome-vfs-sharp-2.0 >= $GTK_SHARP_REQUIRED
347- gmime-sharp >= $GMIME_SHARP_REQUIRED
348+ gmime-sharp-2.4 >= $GMIME_SHARP_REQUIRED
349 ])
350 AC_SUBST(BEAGLE_UI_LIBS)
351
352@@ -270,7 +270,7 @@
353 evolution-sharp >= $EVOLUTION_SHARP_REQUIRED \
354 gconf-sharp-2.0 >= $GTK_SHARP_REQUIRED \
355 glib-sharp-2.0 >= $GTK_SHARP_REQUIRED
356- gmime-sharp >= $GMIME_SHARP_REQUIRED,
357+ gmime-sharp-2.4 >= $GMIME_SHARP_REQUIRED,
358 have_evo_dependencies=yes, have_evo_dependencies=no)
359 AC_SUBST(EVO_LIBS)
360
361@@ -374,14 +374,14 @@
362
363 PKG_CHECK_MODULES(BEAGLED,
364 [
365- gmime-sharp >= $GMIME_SHARP_REQUIRED
366+ gmime-sharp-2.4 >= $GMIME_SHARP_REQUIRED
367 glib-sharp-2.0 >= $GTK_SHARP_REQUIRED
368 ])
369 BEAGLED_LIBS="$BEAGLED_LIBS $GSF_SHARP_LIBS"
370 AC_SUBST(BEAGLED_LIBS)
371
372 GSF_SHARP_PREFIX=`$PKG_CONFIG --variable=prefix gsf-sharp`
373-GMIME_SHARP_PREFIX=`$PKG_CONFIG --variable=prefix gmime-sharp`
374+GMIME_SHARP_PREFIX=`$PKG_CONFIG --variable=prefix gmime-sharp-2.4`
375
376 dnl ----------------------------------------------
377 dnl Epiphany Extension
378Index: beagle/Filters/FilterMail.cs
379===================================================================
380--- beagle/Filters/FilterMail.cs (revision 4874)
381+++ beagle/Filters/FilterMail.cs (working copy)
382@@ -126,7 +126,7 @@
383
384 // Messages that are multipart/alternative shouldn't be considered as having
385 // attachments. Unless of course they do.
386- if (mime_part is GMime.Multipart && mime_part.ContentType.Subtype.ToLower () != "alternative")
387+ if (mime_part is GMime.Multipart && mime_part.ContentType.MediaSubtype.ToLower () != "alternative")
388 return true;
389
390 return false;
391@@ -140,34 +140,43 @@
392 AddProperty (Property.NewDate ("fixme:date", message.Date.ToUniversalTime ()));
393
394 GMime.InternetAddressList addrs;
395- addrs = this.message.GetRecipients (GMime.Message.RecipientType.To);
396+ addrs = this.message.GetRecipients (GMime.RecipientType.To);
397 foreach (GMime.InternetAddress ia in addrs) {
398 AddProperty (Property.NewUnsearched ("fixme:to", ia.ToString (false)));
399- if (ia.AddressType != GMime.InternetAddressType.Group)
400- AddProperty (Property.New ("fixme:to_address", ia.Addr));
401-
402+ if (ia is GMime.InternetAddressMailbox) {
403+ GMime.InternetAddressMailbox mailbox = ia as GMime.InternetAddressMailbox;
404+
405+ AddProperty (Property.New ("fixme:to_address", mailbox.Address));
406+ }
407+
408 AddProperty (Property.New ("fixme:to_name", ia.Name));
409 AddEmailLink (ia);
410 }
411 addrs.Dispose ();
412
413- addrs = this.message.GetRecipients (GMime.Message.RecipientType.Cc);
414+ addrs = this.message.GetRecipients (GMime.RecipientType.Cc);
415 foreach (GMime.InternetAddress ia in addrs) {
416 AddProperty (Property.NewUnsearched ("fixme:cc", ia.ToString (false)));
417- if (ia.AddressType != GMime.InternetAddressType.Group)
418- AddProperty (Property.New ("fixme:cc_address", ia.Addr));
419-
420+ if (ia is GMime.InternetAddressMailbox) {
421+ GMime.InternetAddressMailbox mailbox = ia as GMime.InternetAddressMailbox;
422+
423+ AddProperty (Property.New ("fixme:cc_address", mailbox.Address));
424+ }
425+
426 AddProperty (Property.New ("fixme:cc_name", ia.Name));
427 AddEmailLink (ia);
428 }
429 addrs.Dispose ();
430
431- addrs = GMime.InternetAddressList.ParseString (GMime.Utils.HeaderDecodePhrase (this.message.Sender));
432+ addrs = GMime.InternetAddressList.Parse (this.message.Sender);
433 foreach (GMime.InternetAddress ia in addrs) {
434 AddProperty (Property.NewUnsearched ("fixme:from", ia.ToString (false)));
435- if (ia.AddressType != GMime.InternetAddressType.Group)
436- AddProperty (Property.New ("fixme:from_address", ia.Addr));
437-
438+ if (ia is GMime.InternetAddressMailbox) {
439+ GMime.InternetAddressMailbox mailbox = ia as GMime.InternetAddressMailbox;
440+
441+ AddProperty (Property.New ("fixme:from_address", mailbox.Address));
442+ }
443+
444 AddProperty (Property.New ("fixme:from_name", ia.Name));
445 AddEmailLink (ia);
446 }
447@@ -184,7 +193,7 @@
448 AddProperty (Property.NewUnsearched ("fixme:msgid", GMime.Utils.DecodeMessageId (msgid)));
449
450 foreach (GMime.References refs in this.message.References)
451- AddProperty (Property.NewUnsearched ("fixme:reference", refs.Msgid));
452+ AddProperty (Property.NewUnsearched ("fixme:reference", refs.MessageId));
453
454 string list_id = this.message.GetHeader ("List-Id");
455 if (list_id != null)
456@@ -345,16 +354,15 @@
457 }
458 } else if (mime_part is GMime.Multipart) {
459 GMime.Multipart multipart = (GMime.Multipart) mime_part;
460+ int num_parts = multipart.Count;
461
462- int num_parts = multipart.Number;
463-
464 // If the mimetype is multipart/alternative, we only want to index
465 // one part -- the richest one we can filter.
466- if (mime_part.ContentType.Subtype.ToLower () == "alternative") {
467+ if (mime_part.ContentType.MediaSubtype.ToLower () == "alternative") {
468 // The richest formats are at the end, so work from there
469 // backward.
470 for (int i = num_parts - 1; i >= 0; i--) {
471- GMime.Object subpart = multipart.GetPart (i);
472+ GMime.Object subpart = multipart[i];
473
474 if (IsMimeTypeHandled (subpart.ContentType.ToString ())) {
475 part = subpart;
476@@ -370,7 +378,7 @@
477 // the parts, treat them like a bunch of attachments.
478 if (part == null) {
479 for (int i = 0; i < num_parts; i++) {
480- using (GMime.Object subpart = multipart.GetPart (i))
481+ using (GMime.Object subpart = multipart[i])
482 this.OnEachPart (subpart);
483 }
484 }
485@@ -400,7 +408,7 @@
486 } else if (mime_type == "text/html") {
487 no_child_needed = true;
488 html_part = true;
489- string enc = part.GetContentTypeParameter ("charset");
490+ string enc = part.ContentType.GetParameter ("charset");
491 // DataWrapper.Stream is a very limited stream
492 // and does not allow Seek or Tell
493 // HtmlFilter requires Stream.Position=0.
494@@ -473,7 +481,7 @@
495 if (length != -1)
496 child.AddProperty (Property.NewUnsearched ("fixme:filesize", length));
497
498- if (part.ContentType.Type.ToLower () == "text")
499+ if (part.ContentType.MediaType.ToLower () == "text")
500 child.SetTextReader (new StreamReader (stream));
501 else
502 child.SetBinaryStream (stream);
This page took 0.13938 seconds and 4 git commands to generate.