Skip to content
This repository
Browse code

More attachment work, I added the ability to get contentType

  • Loading branch information...
commit 03f84a6b737fc01941cb59bd031996495c64cf40 1 parent eb2c007
authored August 15, 2007
469  MailCore.xcodeproj/mronge.mode1v3
@@ -262,6 +262,7 @@
262 262
 								<string>0867D691FE84028FC02AAC07</string>
263 263
 								<string>F85A18AF09C7D8F200305C06</string>
264 264
 								<string>08FB77AEFE84172EC02AAC07</string>
  265
+								<string>F81E26720C6ED56000B3FBAC</string>
265 266
 								<string>32C88DFF0371C24200C91783</string>
266 267
 								<string>089C1665FE841158C02AAC07</string>
267 268
 								<string>034768DFFF38A50411DB9C8B</string>
@@ -272,13 +273,13 @@
272 273
 							<key>PBXSmartGroupTreeModuleOutlineStateSelectionKey</key>
273 274
 							<array>
274 275
 								<array>
275  
-									<integer>28</integer>
276  
-									<integer>12</integer>
  276
+									<integer>3</integer>
  277
+									<integer>1</integer>
277 278
 									<integer>0</integer>
278 279
 								</array>
279 280
 							</array>
280 281
 							<key>PBXSmartGroupTreeModuleOutlineStateVisibleRectKey</key>
281  
-							<string>{{0, 2}, {261, 986}}</string>
  282
+							<string>{{0, 0}, {261, 985}}</string>
282 283
 						</dict>
283 284
 						<key>PBXTopSmartGroupGIDs</key>
284 285
 						<array/>
@@ -290,14 +291,14 @@
290 291
 					<key>GeometryConfiguration</key>
291 292
 					<dict>
292 293
 						<key>Frame</key>
293  
-						<string>{{0, 0}, {278, 1004}}</string>
  294
+						<string>{{0, 0}, {278, 1003}}</string>
294 295
 						<key>GroupTreeTableConfiguration</key>
295 296
 						<array>
296 297
 							<string>MainColumn</string>
297 298
 							<real>261</real>
298 299
 						</array>
299 300
 						<key>RubberWindowFrame</key>
300  
-						<string>4 132 1395 1045 0 0 1920 1177 </string>
  301
+						<string>4 133 1058 1044 0 0 1920 1177 </string>
301 302
 					</dict>
302 303
 					<key>Module</key>
303 304
 					<string>PBXSmartGroupTreeModule</string>
@@ -315,7 +316,7 @@
315 316
 								<key>PBXProjectModuleGUID</key>
316 317
 								<string>1CE0B20306471E060097A5F4</string>
317 318
 								<key>PBXProjectModuleLabel</key>
318  
-								<string>CTBareAttachment.m</string>
  319
+								<string>CTCoreMessageTests.m</string>
319 320
 								<key>PBXSplitModuleInNavigatorKey</key>
320 321
 								<dict>
321 322
 									<key>Split0</key>
@@ -323,11 +324,11 @@
323 324
 										<key>PBXProjectModuleGUID</key>
324 325
 										<string>1CE0B20406471E060097A5F4</string>
325 326
 										<key>PBXProjectModuleLabel</key>
326  
-										<string>CTBareAttachment.m</string>
  327
+										<string>CTCoreMessageTests.m</string>
327 328
 										<key>_historyCapacity</key>
328 329
 										<integer>0</integer>
329 330
 										<key>bookmark</key>
330  
-										<string>F8430CD80C72C4B000753941</string>
  331
+										<string>F805DA210C740B3800F10EB1</string>
331 332
 										<key>history</key>
332 333
 										<array>
333 334
 											<string>F8430ACF0C729AD900753941</string>
@@ -341,12 +342,7 @@
341 342
 											<string>F8430B400C72AF5E00753941</string>
342 343
 											<string>F8430B410C72AF5E00753941</string>
343 344
 											<string>F8430B420C72AF5E00753941</string>
344  
-											<string>F8430B450C72AF5E00753941</string>
345  
-											<string>F8430B4B0C72AF5E00753941</string>
346  
-											<string>F8430B4C0C72AF5E00753941</string>
347 345
 											<string>F8430B4D0C72AF5E00753941</string>
348  
-											<string>F8430B4E0C72AF5E00753941</string>
349  
-											<string>F8430B4F0C72AF5E00753941</string>
350 346
 											<string>F8430B540C72AF5E00753941</string>
351 347
 											<string>F8430B550C72AF5E00753941</string>
352 348
 											<string>F8430B560C72AF5E00753941</string>
@@ -357,35 +353,40 @@
357 353
 											<string>F8430B5D0C72AF5E00753941</string>
358 354
 											<string>F8430B600C72AF5E00753941</string>
359 355
 											<string>F8430B610C72AF5E00753941</string>
360  
-											<string>F8430B620C72AF5E00753941</string>
361  
-											<string>F8430B630C72AF5E00753941</string>
362 356
 											<string>F8430B640C72AF5E00753941</string>
363 357
 											<string>F8430B650C72AF5E00753941</string>
364 358
 											<string>F8430B660C72AF5E00753941</string>
365 359
 											<string>F8430B670C72AF5E00753941</string>
366 360
 											<string>F8430BB90C72B72A00753941</string>
367  
-											<string>F8430BBA0C72B72A00753941</string>
368  
-											<string>F8430BBB0C72B72A00753941</string>
369  
-											<string>F8430BBC0C72B72A00753941</string>
370 361
 											<string>F8430BBF0C72B72A00753941</string>
371  
-											<string>F8430C110C72BB6C00753941</string>
372 362
 											<string>F8430C130C72BB6C00753941</string>
373  
-											<string>F8430C140C72BB6C00753941</string>
374  
-											<string>F8430C150C72BB6C00753941</string>
375  
-											<string>F8430C3D0C72BE5C00753941</string>
376  
-											<string>F8430C3E0C72BE5C00753941</string>
377  
-											<string>F8430C3F0C72BE5C00753941</string>
378  
-											<string>F8430C400C72BE5C00753941</string>
379 363
 											<string>F8430C810C72C13700753941</string>
380  
-											<string>F8430C820C72C13700753941</string>
381 364
 											<string>F8430C830C72C13700753941</string>
382  
-											<string>F8430CA30C72C32A00753941</string>
383 365
 											<string>F8430CA70C72C32A00753941</string>
384  
-											<string>F8430CC70C72C42D00753941</string>
385  
-											<string>F8430CCE0C72C48200753941</string>
386 366
 											<string>F8430CD20C72C49C00753941</string>
387  
-											<string>F8430CD30C72C49C00753941</string>
388  
-											<string>F8430CC80C72C42D00753941</string>
  367
+											<string>F805D9BB0C74086E00F10EB1</string>
  368
+											<string>F805D9BC0C74086E00F10EB1</string>
  369
+											<string>F805D9BD0C74086E00F10EB1</string>
  370
+											<string>F805D9BE0C74086E00F10EB1</string>
  371
+											<string>F805D9BF0C74086E00F10EB1</string>
  372
+											<string>F805D9C00C74086E00F10EB1</string>
  373
+											<string>F805D9C10C74086E00F10EB1</string>
  374
+											<string>F805D9C20C74086E00F10EB1</string>
  375
+											<string>F805D9C30C74086E00F10EB1</string>
  376
+											<string>F805D9C40C74086E00F10EB1</string>
  377
+											<string>F805D9C50C74086E00F10EB1</string>
  378
+											<string>F805D9C60C74086E00F10EB1</string>
  379
+											<string>F805D9C70C74086E00F10EB1</string>
  380
+											<string>F805D9C80C74086E00F10EB1</string>
  381
+											<string>F805D9C90C74086E00F10EB1</string>
  382
+											<string>F805D9CB0C74086E00F10EB1</string>
  383
+											<string>F805D9CC0C74086E00F10EB1</string>
  384
+											<string>F805D9CD0C74086E00F10EB1</string>
  385
+											<string>F805D9CE0C74086E00F10EB1</string>
  386
+											<string>F805D9CF0C74086E00F10EB1</string>
  387
+											<string>F805D9D00C74086E00F10EB1</string>
  388
+											<string>F805DA1A0C74094000F10EB1</string>
  389
+											<string>F805DA160C74093E00F10EB1</string>
389 390
 										</array>
390 391
 										<key>prevStack</key>
391 392
 										<array>
@@ -440,278 +441,68 @@
440 441
 											<string>F81E26FF0C6ED59700B3FBAC</string>
441 442
 											<string>F81E274E0C6EDF9400B3FBAC</string>
442 443
 											<string>F81E27510C6EDF9400B3FBAC</string>
443  
-											<string>F84309AC0C7295C900753941</string>
444  
-											<string>F84309AD0C7295C900753941</string>
445  
-											<string>F84309AE0C7295C900753941</string>
446  
-											<string>F84309AF0C7295C900753941</string>
447  
-											<string>F84309B00C7295C900753941</string>
448  
-											<string>F84309B10C7295C900753941</string>
449  
-											<string>F84309B20C7295C900753941</string>
450  
-											<string>F84309B30C7295C900753941</string>
451  
-											<string>F84309B40C7295C900753941</string>
452  
-											<string>F84309B50C7295C900753941</string>
453  
-											<string>F84309B60C7295C900753941</string>
454  
-											<string>F84309B70C7295C900753941</string>
455  
-											<string>F84309B80C7295C900753941</string>
456  
-											<string>F84309B90C7295C900753941</string>
457  
-											<string>F84309BA0C7295C900753941</string>
458  
-											<string>F84309BB0C7295C900753941</string>
459  
-											<string>F84309BC0C7295C900753941</string>
460  
-											<string>F84309BD0C7295C900753941</string>
461  
-											<string>F84309BE0C7295C900753941</string>
462  
-											<string>F84309BF0C7295C900753941</string>
463  
-											<string>F84309C00C7295C900753941</string>
464  
-											<string>F84309C10C7295C900753941</string>
465  
-											<string>F84309C20C7295C900753941</string>
466  
-											<string>F84309C30C7295C900753941</string>
467  
-											<string>F84309C40C7295C900753941</string>
468  
-											<string>F84309C50C7295C900753941</string>
469  
-											<string>F84309C60C7295C900753941</string>
470  
-											<string>F84309C70C7295C900753941</string>
471  
-											<string>F84309C80C7295C900753941</string>
472  
-											<string>F84309C90C7295C900753941</string>
473  
-											<string>F84309CA0C7295C900753941</string>
474  
-											<string>F84309CB0C7295C900753941</string>
475  
-											<string>F84309CC0C7295C900753941</string>
476  
-											<string>F84309CD0C7295C900753941</string>
477  
-											<string>F84309CE0C7295C900753941</string>
478  
-											<string>F84309CF0C7295C900753941</string>
479  
-											<string>F84309D00C7295C900753941</string>
480  
-											<string>F84309D10C7295C900753941</string>
481  
-											<string>F84309D20C7295C900753941</string>
482  
-											<string>F84309D30C7295C900753941</string>
483  
-											<string>F84309D40C7295C900753941</string>
484  
-											<string>F84309D50C7295C900753941</string>
485  
-											<string>F84309D60C7295C900753941</string>
486  
-											<string>F84309D70C7295C900753941</string>
487  
-											<string>F84309D80C7295C900753941</string>
488  
-											<string>F84309D90C7295C900753941</string>
489  
-											<string>F84309DA0C7295C900753941</string>
490  
-											<string>F84309DB0C7295C900753941</string>
491  
-											<string>F84309DC0C7295C900753941</string>
492  
-											<string>F84309DD0C7295C900753941</string>
493  
-											<string>F84309DE0C7295C900753941</string>
494  
-											<string>F84309DF0C7295C900753941</string>
495  
-											<string>F84309E00C7295C900753941</string>
496  
-											<string>F84309E10C7295C900753941</string>
497  
-											<string>F84309E20C7295C900753941</string>
498 444
 											<string>F84309E30C7295C900753941</string>
499  
-											<string>F84309E40C7295C900753941</string>
500  
-											<string>F84309E50C7295C900753941</string>
501  
-											<string>F84309E60C7295C900753941</string>
502  
-											<string>F84309E70C7295C900753941</string>
503  
-											<string>F8430A0D0C72970900753941</string>
504  
-											<string>F8430A0E0C72970900753941</string>
505  
-											<string>F8430AB40C7297F900753941</string>
506  
-											<string>F8430AD60C729AD900753941</string>
507  
-											<string>F8430AD70C729AD900753941</string>
508  
-											<string>F8430AD80C729AD900753941</string>
509  
-											<string>F8430AD90C729AD900753941</string>
510  
-											<string>F8430ADA0C729AD900753941</string>
511  
-											<string>F8430ADB0C729AD900753941</string>
512  
-											<string>F8430ADC0C729AD900753941</string>
513  
-											<string>F8430ADD0C729AD900753941</string>
514  
-											<string>F8430ADE0C729AD900753941</string>
515  
-											<string>F8430ADF0C729AD900753941</string>
516  
-											<string>F8430AE00C729AD900753941</string>
517  
-											<string>F8430AE10C729AD900753941</string>
518  
-											<string>F8430AE20C729AD900753941</string>
519  
-											<string>F8430AE30C729AD900753941</string>
520  
-											<string>F8430AE40C729AD900753941</string>
521  
-											<string>F8430AE50C729AD900753941</string>
522  
-											<string>F8430AE60C729AD900753941</string>
523  
-											<string>F8430AE70C729AD900753941</string>
524  
-											<string>F8430AE80C729AD900753941</string>
525  
-											<string>F8430AE90C729AD900753941</string>
526  
-											<string>F8430AEA0C729AD900753941</string>
527  
-											<string>F8430AF90C729F5100753941</string>
528  
-											<string>F8430B170C72A21F00753941</string>
529  
-											<string>F8430B180C72A21F00753941</string>
530  
-											<string>F8430B190C72A21F00753941</string>
531  
-											<string>F8430B1A0C72A21F00753941</string>
532  
-											<string>F8430B1B0C72A21F00753941</string>
533  
-											<string>F8430B1C0C72A21F00753941</string>
534  
-											<string>F8430B1D0C72A21F00753941</string>
535  
-											<string>F8430B1E0C72A21F00753941</string>
536  
-											<string>F8430B1F0C72A21F00753941</string>
537  
-											<string>F8430B200C72A21F00753941</string>
538  
-											<string>F8430B210C72A21F00753941</string>
539  
-											<string>F8430B220C72A21F00753941</string>
540  
-											<string>F8430B230C72A21F00753941</string>
541  
-											<string>F8430B240C72A21F00753941</string>
542  
-											<string>F8430B250C72A21F00753941</string>
543  
-											<string>F8430B260C72A21F00753941</string>
544  
-											<string>F8430B270C72A21F00753941</string>
545  
-											<string>F8430B280C72A21F00753941</string>
546  
-											<string>F8430B290C72A21F00753941</string>
547  
-											<string>F8430B2A0C72A21F00753941</string>
548  
-											<string>F8430B2B0C72A21F00753941</string>
549  
-											<string>F8430B6A0C72AF5E00753941</string>
550  
-											<string>F8430B6B0C72AF5E00753941</string>
551  
-											<string>F8430B6C0C72AF5E00753941</string>
552  
-											<string>F8430B6D0C72AF5E00753941</string>
553  
-											<string>F8430B6E0C72AF5E00753941</string>
554  
-											<string>F8430B6F0C72AF5E00753941</string>
555  
-											<string>F8430B700C72AF5E00753941</string>
556  
-											<string>F8430B710C72AF5E00753941</string>
557 445
 											<string>F8430B720C72AF5E00753941</string>
558  
-											<string>F8430B730C72AF5E00753941</string>
559  
-											<string>F8430B740C72AF5E00753941</string>
560  
-											<string>F8430B750C72AF5E00753941</string>
561  
-											<string>F8430B760C72AF5E00753941</string>
562  
-											<string>F8430B770C72AF5E00753941</string>
563  
-											<string>F8430B780C72AF5E00753941</string>
564  
-											<string>F8430B790C72AF5E00753941</string>
565  
-											<string>F8430B7A0C72AF5E00753941</string>
566  
-											<string>F8430B7B0C72AF5E00753941</string>
567  
-											<string>F8430B7C0C72AF5E00753941</string>
568  
-											<string>F8430B7D0C72AF5E00753941</string>
569  
-											<string>F8430B7E0C72AF5E00753941</string>
570  
-											<string>F8430B7F0C72AF5E00753941</string>
571  
-											<string>F8430B800C72AF5E00753941</string>
572  
-											<string>F8430B810C72AF5E00753941</string>
573  
-											<string>F8430B820C72AF5E00753941</string>
574  
-											<string>F8430B830C72AF5E00753941</string>
575  
-											<string>F8430B840C72AF5E00753941</string>
576  
-											<string>F8430B850C72AF5E00753941</string>
577  
-											<string>F8430B860C72AF5E00753941</string>
578  
-											<string>F8430B870C72AF5E00753941</string>
579  
-											<string>F8430B880C72AF5E00753941</string>
580  
-											<string>F8430B890C72AF5E00753941</string>
581  
-											<string>F8430B8A0C72AF5E00753941</string>
582  
-											<string>F8430B8B0C72AF5E00753941</string>
583  
-											<string>F8430B8C0C72AF5E00753941</string>
584  
-											<string>F8430B8D0C72AF5E00753941</string>
585  
-											<string>F8430B8E0C72AF5E00753941</string>
586  
-											<string>F8430B8F0C72AF5E00753941</string>
587  
-											<string>F8430B900C72AF5E00753941</string>
588  
-											<string>F8430B910C72AF5E00753941</string>
589  
-											<string>F8430B920C72AF5E00753941</string>
590  
-											<string>F8430B930C72AF5E00753941</string>
591  
-											<string>F8430B940C72AF5E00753941</string>
592  
-											<string>F8430B950C72AF5E00753941</string>
593  
-											<string>F8430B960C72AF5E00753941</string>
594  
-											<string>F8430B970C72AF5E00753941</string>
595  
-											<string>F8430B980C72AF5E00753941</string>
596  
-											<string>F8430B990C72AF5E00753941</string>
597  
-											<string>F8430B9A0C72AF5E00753941</string>
598  
-											<string>F8430B9B0C72AF5E00753941</string>
599  
-											<string>F8430B9C0C72AF5E00753941</string>
600  
-											<string>F8430B9D0C72AF5E00753941</string>
601  
-											<string>F8430B9E0C72AF5E00753941</string>
602  
-											<string>F8430B9F0C72AF5E00753941</string>
603  
-											<string>F8430BA00C72AF5E00753941</string>
604  
-											<string>F8430BA10C72AF5E00753941</string>
605  
-											<string>F8430BA20C72AF5E00753941</string>
606  
-											<string>F8430BA30C72AF5E00753941</string>
607  
-											<string>F8430BA40C72AF5E00753941</string>
608  
-											<string>F8430BA50C72AF5E00753941</string>
609 446
 											<string>F8430BA60C72AF5E00753941</string>
610  
-											<string>F8430BA70C72AF5E00753941</string>
611  
-											<string>F8430BA80C72AF5E00753941</string>
612  
-											<string>F8430BC50C72B72A00753941</string>
613  
-											<string>F8430BC60C72B72A00753941</string>
614 447
 											<string>F8430BC70C72B72A00753941</string>
615  
-											<string>F8430BC80C72B72A00753941</string>
616  
-											<string>F8430BC90C72B72A00753941</string>
617 448
 											<string>F8430BCA0C72B72A00753941</string>
618  
-											<string>F8430BCB0C72B72A00753941</string>
619  
-											<string>F8430BCC0C72B72A00753941</string>
620  
-											<string>F8430BCD0C72B72A00753941</string>
621  
-											<string>F8430BCE0C72B72A00753941</string>
622  
-											<string>F8430BCF0C72B72A00753941</string>
623  
-											<string>F8430BD00C72B72A00753941</string>
624  
-											<string>F8430BD10C72B72A00753941</string>
625  
-											<string>F8430BD20C72B72A00753941</string>
626  
-											<string>F8430BD30C72B72A00753941</string>
627  
-											<string>F8430BD40C72B72A00753941</string>
628  
-											<string>F8430BD50C72B72A00753941</string>
629  
-											<string>F8430BD60C72B72A00753941</string>
630  
-											<string>F8430BD70C72B72A00753941</string>
631  
-											<string>F8430BD80C72B72A00753941</string>
632  
-											<string>F8430BD90C72B72A00753941</string>
633  
-											<string>F8430BDA0C72B72A00753941</string>
634  
-											<string>F8430BDB0C72B72A00753941</string>
635  
-											<string>F8430BDC0C72B72A00753941</string>
636  
-											<string>F8430BDD0C72B72A00753941</string>
637  
-											<string>F8430BDE0C72B72A00753941</string>
638  
-											<string>F8430C170C72BB6C00753941</string>
639  
-											<string>F8430C180C72BB6C00753941</string>
640  
-											<string>F8430C190C72BB6C00753941</string>
641  
-											<string>F8430C1A0C72BB6C00753941</string>
642  
-											<string>F8430C1B0C72BB6C00753941</string>
643  
-											<string>F8430C1C0C72BB6C00753941</string>
644  
-											<string>F8430C1D0C72BB6C00753941</string>
645  
-											<string>F8430C1E0C72BB6C00753941</string>
646  
-											<string>F8430C1F0C72BB6C00753941</string>
647  
-											<string>F8430C200C72BB6C00753941</string>
648  
-											<string>F8430C210C72BB6C00753941</string>
649  
-											<string>F8430C220C72BB6C00753941</string>
650  
-											<string>F8430C230C72BB6C00753941</string>
651  
-											<string>F8430C270C72BBBA00753941</string>
652  
-											<string>F8430C460C72BE5C00753941</string>
653  
-											<string>F8430C470C72BE5C00753941</string>
654  
-											<string>F8430C480C72BE5C00753941</string>
655  
-											<string>F8430C490C72BE5C00753941</string>
656  
-											<string>F8430C4A0C72BE5C00753941</string>
657  
-											<string>F8430C4B0C72BE5C00753941</string>
658  
-											<string>F8430C4C0C72BE5C00753941</string>
659  
-											<string>F8430C4D0C72BE5C00753941</string>
660  
-											<string>F8430C4E0C72BE5C00753941</string>
661  
-											<string>F8430C4F0C72BE5C00753941</string>
662  
-											<string>F8430C500C72BE5C00753941</string>
663  
-											<string>F8430C510C72BE5C00753941</string>
664  
-											<string>F8430C520C72BE5C00753941</string>
665  
-											<string>F8430C530C72BE5C00753941</string>
666  
-											<string>F8430C540C72BE5C00753941</string>
667  
-											<string>F8430C550C72BE5C00753941</string>
668  
-											<string>F8430C560C72BE5C00753941</string>
669  
-											<string>F8430C570C72BE5C00753941</string>
670  
-											<string>F8430C580C72BE5C00753941</string>
671  
-											<string>F8430C590C72BE5C00753941</string>
672  
-											<string>F8430C5A0C72BE5C00753941</string>
673  
-											<string>F8430C5B0C72BE5C00753941</string>
674  
-											<string>F8430C5C0C72BE5C00753941</string>
675  
-											<string>F8430C6B0C72BF7700753941</string>
676  
-											<string>F8430C6C0C72BF7700753941</string>
677  
-											<string>F8430C6D0C72BF7700753941</string>
678  
-											<string>F8430C6E0C72BF7700753941</string>
679  
-											<string>F8430C6F0C72BF7700753941</string>
680  
-											<string>F8430C700C72BF7700753941</string>
681  
-											<string>F8430C880C72C13700753941</string>
682  
-											<string>F8430C890C72C13700753941</string>
683  
-											<string>F8430C8A0C72C13700753941</string>
684  
-											<string>F8430C8B0C72C13700753941</string>
685  
-											<string>F8430C8C0C72C13700753941</string>
686  
-											<string>F8430C8D0C72C13700753941</string>
687  
-											<string>F8430C8E0C72C13700753941</string>
688  
-											<string>F8430C8F0C72C13700753941</string>
689  
-											<string>F8430C900C72C13700753941</string>
690  
-											<string>F8430C910C72C13700753941</string>
691  
-											<string>F8430C920C72C13700753941</string>
692  
-											<string>F8430CA90C72C32A00753941</string>
693  
-											<string>F8430CAA0C72C32A00753941</string>
694  
-											<string>F8430CAB0C72C32A00753941</string>
695  
-											<string>F8430CAC0C72C32A00753941</string>
696  
-											<string>F8430CAD0C72C32A00753941</string>
697  
-											<string>F8430CAE0C72C32A00753941</string>
698  
-											<string>F8430CAF0C72C32A00753941</string>
699  
-											<string>F8430CB00C72C32A00753941</string>
700  
-											<string>F8430CB10C72C32A00753941</string>
701  
-											<string>F8430CB20C72C32A00753941</string>
702  
-											<string>F8430CB30C72C32A00753941</string>
703  
-											<string>F8430CB40C72C32A00753941</string>
704  
-											<string>F8430CB50C72C32A00753941</string>
705  
-											<string>F8430CB60C72C32A00753941</string>
706  
-											<string>F8430CB70C72C32A00753941</string>
707  
-											<string>F8430CB80C72C32A00753941</string>
708  
-											<string>F8430CB90C72C32A00753941</string>
709  
-											<string>F8430CBA0C72C32A00753941</string>
710  
-											<string>F8430CCA0C72C42D00753941</string>
711  
-											<string>F8430CCB0C72C42D00753941</string>
712  
-											<string>F8430CCF0C72C48200753941</string>
713  
-											<string>F8430CD40C72C49C00753941</string>
714  
-											<string>F8430CD50C72C49C00753941</string>
  449
+											<string>F805D9D20C74086E00F10EB1</string>
  450
+											<string>F805D9D30C74086E00F10EB1</string>
  451
+											<string>F805D9D40C74086E00F10EB1</string>
  452
+											<string>F805D9D50C74086E00F10EB1</string>
  453
+											<string>F805D9D60C74086E00F10EB1</string>
  454
+											<string>F805D9D70C74086E00F10EB1</string>
  455
+											<string>F805D9D80C74086E00F10EB1</string>
  456
+											<string>F805D9D90C74086E00F10EB1</string>
  457
+											<string>F805D9DA0C74086E00F10EB1</string>
  458
+											<string>F805D9DB0C74086E00F10EB1</string>
  459
+											<string>F805D9DC0C74086E00F10EB1</string>
  460
+											<string>F805D9DD0C74086E00F10EB1</string>
  461
+											<string>F805D9DE0C74086E00F10EB1</string>
  462
+											<string>F805D9DF0C74086E00F10EB1</string>
  463
+											<string>F805D9E00C74086E00F10EB1</string>
  464
+											<string>F805D9E10C74086E00F10EB1</string>
  465
+											<string>F805D9E20C74086E00F10EB1</string>
  466
+											<string>F805D9E30C74086E00F10EB1</string>
  467
+											<string>F805D9E40C74086E00F10EB1</string>
  468
+											<string>F805D9E50C74086E00F10EB1</string>
  469
+											<string>F805D9E60C74086E00F10EB1</string>
  470
+											<string>F805D9E70C74086E00F10EB1</string>
  471
+											<string>F805D9E80C74086E00F10EB1</string>
  472
+											<string>F805D9E90C74086E00F10EB1</string>
  473
+											<string>F805D9EA0C74086E00F10EB1</string>
  474
+											<string>F805D9EB0C74086E00F10EB1</string>
  475
+											<string>F805D9EC0C74086E00F10EB1</string>
  476
+											<string>F805D9ED0C74086E00F10EB1</string>
  477
+											<string>F805D9EE0C74086E00F10EB1</string>
  478
+											<string>F805D9EF0C74086E00F10EB1</string>
  479
+											<string>F805D9F00C74086E00F10EB1</string>
  480
+											<string>F805D9F10C74086E00F10EB1</string>
  481
+											<string>F805D9F20C74086E00F10EB1</string>
  482
+											<string>F805D9F30C74086E00F10EB1</string>
  483
+											<string>F805D9F40C74086E00F10EB1</string>
  484
+											<string>F805D9F50C74086E00F10EB1</string>
  485
+											<string>F805D9F60C74086E00F10EB1</string>
  486
+											<string>F805D9F70C74086E00F10EB1</string>
  487
+											<string>F805D9F80C74086E00F10EB1</string>
  488
+											<string>F805D9F90C74086E00F10EB1</string>
  489
+											<string>F805D9FA0C74086E00F10EB1</string>
  490
+											<string>F805D9FB0C74086E00F10EB1</string>
  491
+											<string>F805D9FC0C74086E00F10EB1</string>
  492
+											<string>F805D9FD0C74086E00F10EB1</string>
  493
+											<string>F805D9FE0C74086E00F10EB1</string>
  494
+											<string>F805D9FF0C74086E00F10EB1</string>
  495
+											<string>F805DA000C74086E00F10EB1</string>
  496
+											<string>F805DA010C74086E00F10EB1</string>
  497
+											<string>F805DA020C74086E00F10EB1</string>
  498
+											<string>F805DA030C74086E00F10EB1</string>
  499
+											<string>F805DA040C74086E00F10EB1</string>
  500
+											<string>F805DA050C74086E00F10EB1</string>
  501
+											<string>F805DA060C74086E00F10EB1</string>
  502
+											<string>F805DA070C74086E00F10EB1</string>
  503
+											<string>F805DA120C7408DC00F10EB1</string>
  504
+											<string>F805DA1B0C74094000F10EB1</string>
  505
+											<string>F805DA1C0C74094000F10EB1</string>
715 506
 										</array>
716 507
 									</dict>
717 508
 									<key>SplitCount</key>
@@ -723,14 +514,14 @@
723 514
 							<key>GeometryConfiguration</key>
724 515
 							<dict>
725 516
 								<key>Frame</key>
726  
-								<string>{{0, 0}, {1112, 999}}</string>
  517
+								<string>{{0, 0}, {775, 998}}</string>
727 518
 								<key>RubberWindowFrame</key>
728  
-								<string>4 132 1395 1045 0 0 1920 1177 </string>
  519
+								<string>4 133 1058 1044 0 0 1920 1177 </string>
729 520
 							</dict>
730 521
 							<key>Module</key>
731 522
 							<string>PBXNavigatorGroup</string>
732 523
 							<key>Proportion</key>
733  
-							<string>999pt</string>
  524
+							<string>998pt</string>
734 525
 						</dict>
735 526
 						<dict>
736 527
 							<key>ContentConfiguration</key>
@@ -743,9 +534,9 @@
743 534
 							<key>GeometryConfiguration</key>
744 535
 							<dict>
745 536
 								<key>Frame</key>
746  
-								<string>{{0, 1004}, {1112, 0}}</string>
  537
+								<string>{{0, 1003}, {775, 0}}</string>
747 538
 								<key>RubberWindowFrame</key>
748  
-								<string>4 132 1395 1045 0 0 1920 1177 </string>
  539
+								<string>4 133 1058 1044 0 0 1920 1177 </string>
749 540
 							</dict>
750 541
 							<key>Module</key>
751 542
 							<string>XCDetailModule</string>
@@ -754,7 +545,7 @@
754 545
 						</dict>
755 546
 					</array>
756 547
 					<key>Proportion</key>
757  
-					<string>1112pt</string>
  548
+					<string>775pt</string>
758 549
 				</dict>
759 550
 			</array>
760 551
 			<key>Name</key>
@@ -769,9 +560,9 @@
769 560
 			</array>
770 561
 			<key>TableOfContents</key>
771 562
 			<array>
772  
-				<string>F84309E90C7295C900753941</string>
  563
+				<string>F805DA090C74086E00F10EB1</string>
773 564
 				<string>1CE0B1FE06471DED0097A5F4</string>
774  
-				<string>F84309EA0C7295C900753941</string>
  565
+				<string>F805DA0A0C74086E00F10EB1</string>
775 566
 				<string>1CE0B20306471E060097A5F4</string>
776 567
 				<string>1CE0B20506471E060097A5F4</string>
777 568
 			</array>
@@ -905,10 +696,6 @@
905 696
 	<integer>5</integer>
906 697
 	<key>WindowOrderList</key>
907 698
 	<array>
908  
-		<string>F8430A070C72970300753941</string>
909  
-		<string>F8430A100C72970900753941</string>
910  
-		<string>F8430A110C72970900753941</string>
911  
-		<string>F8430A120C72970900753941</string>
912 699
 		<string>1CD10A99069EF8BA00B06720</string>
913 700
 		<string>F8A70F040C406A6E00D1D694</string>
914 701
 		<string>1C530D57069F1CE1000CFCEE</string>
@@ -916,7 +703,7 @@
916 703
 		<string>/Users/mronge/Projects/MailCore/MailCore.xcodeproj</string>
917 704
 	</array>
918 705
 	<key>WindowString</key>
919  
-	<string>4 132 1395 1045 0 0 1920 1177 </string>
  706
+	<string>4 133 1058 1044 0 0 1920 1177 </string>
920 707
 	<key>WindowToolsV3</key>
921 708
 	<array>
922 709
 		<dict>
@@ -932,30 +719,30 @@
932 719
 					<key>Dock</key>
933 720
 					<array>
934 721
 						<dict>
  722
+							<key>BecomeActive</key>
  723
+							<true/>
935 724
 							<key>ContentConfiguration</key>
936 725
 							<dict>
937 726
 								<key>PBXProjectModuleGUID</key>
938 727
 								<string>1CD0528F0623707200166675</string>
939 728
 								<key>PBXProjectModuleLabel</key>
940  
-								<string>CTBareAttachment.m</string>
  729
+								<string>CTCoreMessageTests.m</string>
941 730
 								<key>StatusBarVisibility</key>
942 731
 								<true/>
943 732
 							</dict>
944 733
 							<key>GeometryConfiguration</key>
945 734
 							<dict>
946 735
 								<key>Frame</key>
947  
-								<string>{{0, 0}, {1096, 371}}</string>
  736
+								<string>{{0, 0}, {645, 333}}</string>
948 737
 								<key>RubberWindowFrame</key>
949  
-								<string>664 428 1096 653 0 0 1920 1177 </string>
  738
+								<string>664 466 645 615 0 0 1920 1177 </string>
950 739
 							</dict>
951 740
 							<key>Module</key>
952 741
 							<string>PBXNavigatorGroup</string>
953 742
 							<key>Proportion</key>
954  
-							<string>371pt</string>
  743
+							<string>333pt</string>
955 744
 						</dict>
956 745
 						<dict>
957  
-							<key>BecomeActive</key>
958  
-							<true/>
959 746
 							<key>ContentConfiguration</key>
960 747
 							<dict>
961 748
 								<key>PBXProjectModuleGUID</key>
@@ -970,9 +757,9 @@
970 757
 							<key>GeometryConfiguration</key>
971 758
 							<dict>
972 759
 								<key>Frame</key>
973  
-								<string>{{0, 376}, {1096, 236}}</string>
  760
+								<string>{{0, 338}, {645, 236}}</string>
974 761
 								<key>RubberWindowFrame</key>
975  
-								<string>664 428 1096 653 0 0 1920 1177 </string>
  762
+								<string>664 466 645 615 0 0 1920 1177 </string>
976 763
 							</dict>
977 764
 							<key>Module</key>
978 765
 							<string>PBXBuildResultsModule</string>
@@ -981,7 +768,7 @@
981 768
 						</dict>
982 769
 					</array>
983 770
 					<key>Proportion</key>
984  
-					<string>612pt</string>
  771
+					<string>574pt</string>
985 772
 				</dict>
986 773
 			</array>
987 774
 			<key>Name</key>
@@ -995,14 +782,14 @@
995 782
 			<key>TableOfContents</key>
996 783
 			<array>
997 784
 				<string>F8A70F040C406A6E00D1D694</string>
998  
-				<string>F843097C0C72916700753941</string>
  785
+				<string>F805D99C0C73EFDC00F10EB1</string>
999 786
 				<string>1CD0528F0623707200166675</string>
1000 787
 				<string>XCMainBuildResultsModuleGUID</string>
1001 788
 			</array>
1002 789
 			<key>ToolbarConfiguration</key>
1003 790
 			<string>xcode.toolbar.config.buildV3</string>
1004 791
 			<key>WindowString</key>
1005  
-			<string>664 428 1096 653 0 0 1920 1177 </string>
  792
+			<string>664 466 645 615 0 0 1920 1177 </string>
1006 793
 			<key>WindowToolGUID</key>
1007 794
 			<string>F8A70F040C406A6E00D1D694</string>
1008 795
 			<key>WindowToolIsVisible</key>
@@ -1115,13 +902,13 @@
1115 902
 			<key>TableOfContents</key>
1116 903
 			<array>
1117 904
 				<string>1CD10A99069EF8BA00B06720</string>
1118  
-				<string>F84309F80C7296B200753941</string>
  905
+				<string>F805D9AB0C7403FF00F10EB1</string>
1119 906
 				<string>1C162984064C10D400B95A72</string>
1120  
-				<string>F84309F90C7296B200753941</string>
1121  
-				<string>F84309FA0C7296B200753941</string>
1122  
-				<string>F84309FB0C7296B200753941</string>
1123  
-				<string>F84309FC0C7296B200753941</string>
1124  
-				<string>F84309FD0C7296B200753941</string>
  907
+				<string>F805D9AC0C7403FF00F10EB1</string>
  908
+				<string>F805D9AD0C7403FF00F10EB1</string>
  909
+				<string>F805D9AE0C7403FF00F10EB1</string>
  910
+				<string>F805D9AF0C7403FF00F10EB1</string>
  911
+				<string>F805D9B00C7403FF00F10EB1</string>
1125 912
 			</array>
1126 913
 			<key>ToolbarConfiguration</key>
1127 914
 			<string>xcode.toolbar.config.debugV3</string>
@@ -1148,6 +935,8 @@
1148 935
 							<key>Dock</key>
1149 936
 							<array>
1150 937
 								<dict>
  938
+									<key>BecomeActive</key>
  939
+									<true/>
1151 940
 									<key>ContentConfiguration</key>
1152 941
 									<dict>
1153 942
 										<key>PBXProjectModuleGUID</key>
@@ -1160,22 +949,20 @@
1160 949
 									<key>GeometryConfiguration</key>
1161 950
 									<dict>
1162 951
 										<key>Frame</key>
1163  
-										<string>{{0, 0}, {781, 54}}</string>
  952
+										<string>{{0, 0}, {826, 408}}</string>
1164 953
 										<key>RubberWindowFrame</key>
1165  
-										<string>142 667 781 470 0 0 1920 1177 </string>
  954
+										<string>142 313 826 824 0 0 1920 1177 </string>
1166 955
 									</dict>
1167 956
 									<key>Module</key>
1168 957
 									<string>PBXNavigatorGroup</string>
1169 958
 									<key>Proportion</key>
1170  
-									<string>781pt</string>
  959
+									<string>826pt</string>
1171 960
 								</dict>
1172 961
 							</array>
1173 962
 							<key>Proportion</key>
1174  
-							<string>54pt</string>
  963
+							<string>408pt</string>
1175 964
 						</dict>
1176 965
 						<dict>
1177  
-							<key>BecomeActive</key>
1178  
-							<true/>
1179 966
 							<key>ContentConfiguration</key>
1180 967
 							<dict>
1181 968
 								<key>PBXProjectModuleGUID</key>
@@ -1186,9 +973,9 @@
1186 973
 							<key>GeometryConfiguration</key>
1187 974
 							<dict>
1188 975
 								<key>Frame</key>
1189  
-								<string>{{0, 59}, {781, 370}}</string>
  976
+								<string>{{0, 413}, {826, 370}}</string>
1190 977
 								<key>RubberWindowFrame</key>
1191  
-								<string>142 667 781 470 0 0 1920 1177 </string>
  978
+								<string>142 313 826 824 0 0 1920 1177 </string>
1192 979
 							</dict>
1193 980
 							<key>Module</key>
1194 981
 							<string>PBXProjectFindModule</string>
@@ -1197,7 +984,7 @@
1197 984
 						</dict>
1198 985
 					</array>
1199 986
 					<key>Proportion</key>
1200  
-					<string>429pt</string>
  987
+					<string>783pt</string>
1201 988
 				</dict>
1202 989
 			</array>
1203 990
 			<key>Name</key>
@@ -1211,13 +998,13 @@
1211 998
 			<key>TableOfContents</key>
1212 999
 			<array>
1213 1000
 				<string>1C530D57069F1CE1000CFCEE</string>
1214  
-				<string>F84309670C726D8F00753941</string>
1215  
-				<string>F84309680C726D8F00753941</string>
  1001
+				<string>F805D9960C73EC7200F10EB1</string>
  1002
+				<string>F805D9970C73EC7200F10EB1</string>
1216 1003
 				<string>1CDD528C0622207200134675</string>
1217 1004
 				<string>1CD0528E0623707200166675</string>
1218 1005
 			</array>
1219 1006
 			<key>WindowString</key>
1220  
-			<string>142 667 781 470 0 0 1920 1177 </string>
  1007
+			<string>142 313 826 824 0 0 1920 1177 </string>
1221 1008
 			<key>WindowToolGUID</key>
1222 1009
 			<string>1C530D57069F1CE1000CFCEE</string>
1223 1010
 			<key>WindowToolIsVisible</key>
@@ -1277,7 +1064,7 @@
1277 1064
 			<key>TableOfContents</key>
1278 1065
 			<array>
1279 1066
 				<string>1C78EAAD065D492600B07095</string>
1280  
-				<string>F8430A010C7296EA00753941</string>
  1067
+				<string>F805D9B20C7403FF00F10EB1</string>
1281 1068
 				<string>1C78EAAC065D492600B07095</string>
1282 1069
 			</array>
1283 1070
 			<key>ToolbarConfiguration</key>
7,040  MailCore.xcodeproj/mronge.pbxuser
1746 additions, 5294 deletions not shown
3  Source/CTBareAttachment.m
@@ -44,8 +44,7 @@ - (id)initWithMIMESinglePart:(CTMIME_SinglePart *)part {
44 44
 	if (self) {
45 45
 		mMIMEPart = [part retain];
46 46
 		self.filename = mMIMEPart.filename;
47  
-		//TODO Implement me
48  
-		//self.contentType = mMIMEPart.contentType
  47
+		self.contentType = mMIMEPart.contentType;
49 48
 	}
50 49
 	return self;
51 50
 }
5  Source/CTMIME.h
@@ -35,9 +35,12 @@
35 35
 @class CTMIME_Enumerator;
36 36
 
37 37
 @interface CTMIME : NSObject {
  38
+	NSString *mContentType;
38 39
 }
39  
-- (id)initWithMIMEStruct:(struct mailmime *)mime forMessage:(struct mailmessage *)message;
  40
+- (id)initWithMIMEStruct:(struct mailmime *)mime 
  41
+		forMessage:(struct mailmessage *)message;
40 42
 - (id)content;
  43
+- (NSString *)contentType;
41 44
 - (struct mailmime *)buildMIMEStruct;
42 45
 - (NSString *)render;
43 46
 - (CTMIME_Enumerator *)mimeEnumerator;
69  Source/CTMIME.m
@@ -34,19 +34,66 @@
34 34
 #import "CTMIME_Enumerator.h"
35 35
 
36 36
 @implementation CTMIME
37  
-- (id)initWithMIMEStruct:(struct mailmime *)mime forMessage:(struct mailmessage *)message {
38  
-	return nil;
  37
+- (id)initWithMIMEStruct:(struct mailmime *)mime 
  38
+		forMessage:(struct mailmessage *)message {
  39
+	self = [super init];
  40
+	if (self) {
  41
+		// We couldn't find a content-type, set it to something generic		
  42
+		NSString *mainType = @"application";
  43
+		NSString *subType = @"octet-stream";		
  44
+		if (mime != NULL && mime->mm_content_type != NULL) {
  45
+			struct mailmime_content *content = mime->mm_content_type;
  46
+			if (content->ct_type != NULL) {
  47
+				subType = [NSString stringWithCString:content->ct_subtype 
  48
+							encoding:NSASCIIStringEncoding];
  49
+				subType = [subType lowercaseString];
  50
+				struct mailmime_type *type = content->ct_type;
  51
+				if (type->tp_type == MAILMIME_TYPE_DISCRETE_TYPE &&
  52
+					type->tp_data.tp_discrete_type != NULL) {
  53
+					switch (type->tp_data.tp_discrete_type->dt_type) {
  54
+						case MAILMIME_DISCRETE_TYPE_TEXT:
  55
+							mainType = @"text";
  56
+						break;
  57
+						case MAILMIME_DISCRETE_TYPE_IMAGE:
  58
+							mainType = @"image";
  59
+						break;
  60
+						case MAILMIME_DISCRETE_TYPE_AUDIO:
  61
+							mainType = @"audio";
  62
+						break;
  63
+						case MAILMIME_DISCRETE_TYPE_VIDEO:
  64
+							mainType = @"video";
  65
+						break;
  66
+						case MAILMIME_DISCRETE_TYPE_APPLICATION:
  67
+							mainType = @"application";
  68
+						break;
  69
+					}			
  70
+				}
  71
+				else if (type->tp_type == MAILMIME_TYPE_COMPOSITE_TYPE &&
  72
+							type->tp_data.tp_composite_type != NULL) {
  73
+					switch (type->tp_data.tp_discrete_type->dt_type) {
  74
+						case MAILMIME_COMPOSITE_TYPE_MESSAGE:
  75
+							mainType = @"message";
  76
+						break;
  77
+						case MAILMIME_COMPOSITE_TYPE_MULTIPART:
  78
+							mainType = @"multipart";
  79
+						break;
  80
+					}			
  81
+				}
  82
+			}
  83
+		}
  84
+		mContentType = [[NSString alloc] initWithFormat:@"%@/%@", mainType, subType];
  85
+	}
  86
+	return self;
39 87
 }
40 88
 
41  
-- (void)dealloc	{
42  
-	[super dealloc];
43  
-}
44  
-
45  
-
46 89
 - (id)content {
47 90
 	return nil;
48 91
 }
49 92
 
  93
+- (NSString *)contentType {
  94
+	return mContentType;
  95
+}
  96
+
50 97
 - (struct mailmime *)buildMIMEStruct {
51 98
 	return NULL;
52 99
 }
@@ -60,7 +107,8 @@ - (NSString *)render {
60 107
 	mailmime_write_mem(str, &col, [self buildMIMEStruct]);
61 108
 	err = mmap_string_ref(str);
62 109
 	assert(err == 0);
63  
-	resultStr = [[NSString alloc] initWithBytes:str->str length:str->len encoding:NSASCIIStringEncoding];
  110
+	resultStr = [[NSString alloc] initWithBytes:str->str length:str->len 
  111
+					encoding:NSASCIIStringEncoding];
64 112
 	mmap_string_free(str);
65 113
 	return [resultStr autorelease];
66 114
 }
@@ -70,4 +118,9 @@ - (CTMIME_Enumerator *)mimeEnumerator {
70 118
 	enumerator = [[CTMIME_Enumerator alloc] initWithMIME:self];
71 119
 	return [enumerator autorelease];
72 120
 }
  121
+
  122
+- (void)dealloc {
  123
+	[mContentType release];
  124
+	[super dealloc];
  125
+}
73 126
 @end
2  Source/CTMIME_MessagePart.m
@@ -42,7 +42,7 @@ + (id)mimeMessagePartWithContent:(CTMIME *)mime {
42 42
 
43 43
 - (id)initWithMIMEStruct:(struct mailmime *)mime 
44 44
 		forMessage:(struct mailmessage *)message {
45  
-	self = [super init];
  45
+	self = [super initWithMIMEStruct:mime forMessage:message];
46 46
 	if (self) {
47 47
 		struct mailmime *content = mime->mm_data.mm_message.mm_msg_mime;
48 48
 		myMessageContent = [CTMIMEFactory createMIMEWithMIMEStruct:content 
2  Source/CTMIME_MultiPart.m
@@ -41,7 +41,7 @@ + (id)mimeMultiPart {
41 41
 }
42 42
 
43 43
 - (id)initWithMIMEStruct:(struct mailmime *)mime forMessage:(struct mailmessage *)message {
44  
-	self = [super init];
  44
+	self = [super initWithMIMEStruct:mime forMessage:message];
45 45
 	if (self) {
46 46
 		myContentList = [[NSMutableArray alloc] init];
47 47
  		clistiter *cur = clist_begin(mime->mm_data.mm_multipart.mm_mp_list);
2  Source/CTMIME_SinglePart.m
@@ -42,7 +42,7 @@ @implementation CTMIME_SinglePart
42 42
 
43 43
 - (id)initWithMIMEStruct:(struct mailmime *)mime 
44 44
 		forMessage:(struct mailmessage *)message {
45  
-	self = [super init];
  45
+	self = [super initWithMIMEStruct:mime forMessage:message];
46 46
 	if (self) {
47 47
 		self.data = nil;
48 48
 		mMime = mime;
BIN  TestData/Picture 1.png
6  Tests/CTCoreMessageTests.m
@@ -164,9 +164,9 @@ - (void)testAttachments {
164 164
 	STAssertEqualObjects([[attachments objectAtIndex:0] filename], @"Picture 1.png", @"Incorrect filename");
165 165
 	CTBareAttachment *bareAttach = [attachments objectAtIndex:0];
166 166
 	CTCoreAttachment *attach = [bareAttach fetchFullAttachment];
167  
-	NSString *path = [NSString stringWithFormat:@"/tmp/%@", attach.filename];
168  
-	NSLog(@"path: %@\nobject: %@", path, attach);
169  
-	[attach writeToFile:path];
  167
+	NSData *origData = [NSData dataWithContentsOfFile:
  168
+						[NSString stringWithFormat:@"%@%@",filePrefix,@"TestData/Picture 1.png"]];
  169
+	STAssertEqualObjects(origData, attach.data, @"Original data and attach data should be the same");
170 170
 	[msg release];
171 171
 }
172 172
 @end
10  Tests/CTMIMETests.m
@@ -141,12 +141,20 @@ - (void)testEnumerator {
141 141
 	NSArray *allObjects = [enumerator allObjects];
142 142
 	STAssertTrue([[allObjects objectAtIndex:0] isKindOfClass:[CTMIME_MessagePart class]], 
143 143
 					@"Incorrect MIME structure found!");
  144
+	STAssertEqualObjects([[allObjects objectAtIndex:0] contentType], @"message/rfc822",
  145
+							@"found incorrect contentType");
144 146
 	STAssertTrue([[allObjects objectAtIndex:1] isKindOfClass:[CTMIME_MultiPart class]], 
145 147
 					@"Incorrect MIME structure found!");
  148
+	STAssertEqualObjects([[allObjects objectAtIndex:1] contentType], @"multipart/mixed",
  149
+							@"found incorrect contentType");					
146 150
 	STAssertTrue([[allObjects objectAtIndex:2] isKindOfClass:[CTMIME_TextPart class]], 
147 151
 					@"Incorrect MIME structure found!");
  152
+	STAssertEqualObjects([[allObjects objectAtIndex:2] contentType], @"text/plain",
  153
+							@"found incorrect contentType");					
148 154
 	STAssertTrue([[allObjects objectAtIndex:3] isKindOfClass:[CTMIME_ImagePart class]], 
149  
-					@"Incorrect MIME structure found!");										
  155
+					@"Incorrect MIME structure found!");
  156
+	STAssertEqualObjects([[allObjects objectAtIndex:3] contentType], @"image/png",
  157
+							@"found incorrect contentType");															
150 158
 	STAssertTrue([enumerator nextObject] == nil, @"Should have been nil");
151 159
 	NSArray *fullAllObjects = allObjects;
152 160
 	

0 notes on commit 03f84a6

Please sign in to comment.
Something went wrong with that request. Please try again.