forked from jamiepg1/gmime
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChangeLog
More file actions
9302 lines (6344 loc) · 306 KB
/
Copy pathChangeLog
File metadata and controls
9302 lines (6344 loc) · 306 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2015-04-11 Jeffrey Stedfast <fejj@gnome.org>
* util/url-scanner.c (url_scanner_table_init): Treat all character
values >= 128 as url-safe. Fixes bug #738583.
2014-07-18 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-header.c (g_mime_header_list_register_writer):
g_hash_table_remove() will g_free() the key for us, so don't do it
ourselves (will result in a double-free).
2014-07-17 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-table-private.h: Increased GMIME_FOLD_LEN to 78.
2014-05-24 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-part.c (g_mime_part_is_attachment): New function to
determine if a MIME part is an attachment or not.
* gmime/gmime-disposition.c (g_mime_content_disposition_is_attachment):
New function to determine if the Content-Disposition value matches
"attachment".
2014-02-19 Jeffrey Stedfast <fejj@gnome.org>
* README: Bumped version
* configure.ac: Bumped version to 2.6.20
2014-02-19 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-parser.c (parser_scan_content): Improved performance
by using a SIMD hack when scanning for the end of a line.
2014-02-19 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-message.c (message_remove_header): Don't clear the
mime_part header stream unless we actually remove a header.
(message_write_to_stream): Only add nwritten to the total if we've
written a MIME-Version header.
2013-12-29 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-object.c
(g_mime_object_set_content_disposition_parameter): Unref the
disposition. Thanks to Mario Theodoridis for this patch.
2013-11-02 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-message.c (write_references): Don't write out 2
spaces between the ':' and the first message-id. Fixes bug
#711305.
2013-10-19 Jeffrey Stedfast <fejj@gnome.org>
* README: Bumped version
* configure.ac: Bumped version to 2.6.19
2013-09-29 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-message.c (write_references): Custom writer for
References headers so that individual msgid tokens do not get
folded. Fixes bug #709031.
2013-09-26 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime.c (g_mime_init): Initialize the mutexes
earlier. Fixes bug #708818.
2013-09-15 Jeffrey Stedfast <fejj@gnome.org>
* README: Bumped version
* configure.ac: Bumped version to 2.6.18
2013-08-21 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-part.c (write_content): Reset the content stream
after writing it.
2013-08-14 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-filter-html.c (citation_depth): Fixed an ABR by
passing in an inend parameter.
2013-08-12 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-stream-file.c (g_mime_stream_file_new_for_path): New
convenience function that handles opening the file for you.
* gmime/gmime-stream-fs.c (g_mime_stream_fs_new_for_path): New
convenience function that handles opening the file for you.
2013-08-11 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-message.c (g_mime_message_set_reply_to): Fixed this
function to parse the reply_to string just like
g_mime_message_set_sender() does so that the reply_to field can be
guaranteed to be in UTF-8.
* gmime/*.c: Updated API documentation for functions taking or
returning strings to clarify whether the strings should be in
UTF-8 or not.
2013-08-10 Jeffrey Stedfast <fejj@gnome.org>
* mono/GMime.metadata: Various fixups to get rid of warnings.
* gmime/gmime.c (g_mime_init): Don't call g_type_init() if glib >=
2.35.1
2013-08-08 Jeffrey Stedfast <fejj@gnome.org>
* gmime/internet-address.c (decode_address): Properly deal with
obsolete routing information.
2013-08-08 Jeffrey Stedfast <fejj@gnome.org>
* README: Bumped version
* configure.ac: Bumped version to 2.6.17
2013-08-08 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-parser.c (parser_content_type): If no Content-Type
header exists and the parent is a multipart/digest, default to
message/rfc822 instead of text/plain.
(parser_construct_leaf_part): If the Content-Type header didn't
exist, use the default content-type values instead of assuming
text/plain.
2013-08-07 Jeffrey Stedfast <fejj@gnome.org>
According to Rfc2046 Section 5.1.1, boundary markers may optionally
be followed by lwsp.
* gmime/gmime-parser.c (is_boundary): New convenience function to
check that the text matches a boundary, possibly followed by lwsp.
(check_boundary): Use is_boundary().
(found_immediate_boundary): Use is_boundary().
Fixes bug #705612
2013-07-02 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-stream-cat.c (stream_substream): Fixed to properly
handle a 0-byte substream at the end of the very last source
stream. Fixes bug #701572.
2013-06-30 Jeffrey Stedfast <fejj@gnome.org>
* README: Bumped version
* configure.ac: Bumped version to 2.6.16
2013-06-30 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-gpg-context.c (gpg_ctx_set_mode):
GPG_CTX_MODE_SIGN_ENCRYPT also requires a passphrase.
2013-05-05 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-filter-best.c (filter_filter): Reset the linelen
state to 0 when we encounter a '\n'.
2013-05-04 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-part-iter.c: Modified to work for non-multipart
messages.
2013-05-04 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-utils.c (rfc2047_encode): Respect the new
GMIME_ENABLE_USE_ONLY_USER_CHARSETS initialization flag.
* gmime/gmime.h: Define a new GMIME_ENABLE_USE_ONLY_USER_CHARSETS
initialization flag.
2013-04-05 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-utils.c (header_fold_tokens): New internal function
that replaces the older header_fold() function. This new one uses
the rfc2047 tokenizer so that we share the same rfc2047 workaround
logic in the tokenizer.
Fixes bug #697407
2013-02-23 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-filter-html.c: Disable g_warnings unless warnings
are enabled in the build.
2013-02-19 Jeffrey Stedfast <fejj@gnome.org>
* README: Bumped version
* configure.ac: Bumped version to 2.6.15
2013-02-19 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-filter-html.c (html_convert): Fixed to convert the
last line of input even if it doesn't end with a \n.
2013-02-18 Jeffrey Stedfast <fejj@gnome.org>
* README: Bumped version
* configure.ac: Bumped version to 2.6.14
2013-02-18 Jeffrey Stedfast <fejj@gnome.org>
* util/url-scanner.c (url_addrspec_start): Fixed the logic to
actually scan for the beginning of the mailbox.
2012-12-09 Jeffrey Stedfast <fejj@gnome.org>
* README: Bumped version
* configure.ac: Bumped version to 2.6.13
2012-11-26 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-header.c (g_mime_header_iter_first): Make sure the
list isn't empty.
(g_mime_header_iter_last): Same.
2012-11-23 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-header.c (g_mime_header_list_prepend): Prepend the
header to the list, don't *append* it. Oops.
(g_mime_header_list_clear): Don't forget to reset the linked list
so that it doesn't contained free'd nodes.
2012-11-02 Jeffrey Stedfast <fejj@gnome.org>
* README: Bumped version
* configure.ac: Bumped version to 2.6.12
2012-10-27 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-stream-filter.c (stream_read): Initialize presize to
READ_PAD instead of READ_SIZE to prevent potential buffer
underruns.
2012-10-20 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-filter-gzip.c (gunzip_filter): Apparently
Z_BUF_ERROR isn't actually an error unless there is input
available. Thanks to Pavlo <devgs@ukr.net> for this patch.
2012-10-19 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-parser.c (parser_push_boundary): Don't use strcmp to
check if the boundary is an mbox boundary, use a direct pointer
comparison so that we can handle Content-Type boundary parameters
with a value of "From "
2012-10-19 Jeffrey Stedfast <jeff@xamarin.com>
* gmime/gmime-parser.c (parser_step_headers): Don't assume that
the first non-header line we find indicates the start of the
content unless we've already gotten some basic headers.
Fix for bug #686223.
2012-10-18 Jeffrey Stedfast <jeff@xamarin.com>
* README: Bumped version
* configure.ac: Bumped version to 2.6.11
2012-09-12 Jeffrey Stedfast <jeff@xamarin.com>
* gmime/gmime-gpg-context.c (gpg_ctx_parse_status): Unref the
certificate after adding it to the list (adding it to the list
refs it).
* gmime/gmime-multipart-encrypted.c
(g_mime_multipart_encrypted_decrypt): If the 'result' out param is
null, unref the GMimeDecryptResult to avoid leaking.
2012-08-13 Jeffrey Stedfast <jeff@xamarin.com>
* gmime/gmime-utils.c (tokenize_rfc2047_phrase): Don't forget to
initialize 'ascii' to TRUE.
2012-08-05 Jeffrey Stedfast <jeff@xamarin.com>
* gmime/gmime-stream-pipe.c (stream_flush): Pipes and sockets
cannot be fsync()'d, so don't even try!
2012-08-05 Jeffrey Stedfast <jeff@xamarin.com>
* gmime/gmime-utils.c (rfc2047_token_new_encoded_word): Make sure
to properly handle broken encoded-word tokens in the form:
=?charset?q?=.
Fixes the g_malloc abort() in bug #679388
2012-08-05 Jeffrey Stedfast <jeff@xamarin.com>
* gmime/gmime-multipart-signed.c (check_protocol_supported): Oops,
need to compare against xsupported in the second string compare.
Fixes bug #674032
2012-06-13 Jeffrey Stedfast <fejj@gnome.org>
* README: Bumped version
* configure.ac: Bumped version to 2.6.10
2012-06-13 Jeffrey Stedfast <fejj@gnome.org>
* gmime/Makefile.am: Always build gmime-gpg-context.[c,h] and
gmime-pkcs7-context.[c,h]
* gmime/gmime-gpg-context.c: Armor internals with #ifdef
ENABLE_CRYPTOGRAPHY so that if crypto is disabled, only the
skeletal API is built.
* gmime/gmime.h: Include gmime-pkcs7-context.h
Fixes bug #676692.
2012-06-13 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-utils.c (rfc2047_encode_get_rfc822_words): Use
is_blank() instead of is_lwsp() so that we only treat space and
tab as word delimiters (we want to rfc2047 encode \r's and
\n's). Check for ctrl characters when deciding what the type and
encoding of the word is.
2012-06-13 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-utils.c (rfc2047_encode_get_rfc822_words): When
breaking up really long atom tokens, change the word type to
RFC2047 so that we encode them, thus preventing forced header
folding which cannot be unmunged.
(header_fold): Fixed for cases where the first word in a header is
68 chars. (Note: this fix is largely unnecessary due to the above fix)
2012-06-13 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-message.c: When setting a header, make sure to
always clear the header list cache of the toplevel mime_part as
well.
2012-06-13 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-param.c (rfc2184_param_new): Only decode the charset
and lang if the parameter is actually encoded. Thanks to Peter
Bloomfield for this patch.
2012-06-13 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-gpg-context.c (gpg_ctx_parse_status): Keep track of
DECRYPTION_OKAY status.
(gpg_decrypt): Only return NULL if decryption failed (e.g. we
didn't get a DECRYPTION_OKAY status).
Fixes bug #677088.
2012-06-13 Jeffrey Stedfast <fejj@gnome.org>
* docs/reference/building.sgml: Updated docs.
Fixes bug #676341
2012-04-22 Jeffrey Stedfast <fejj@gnome.org>
* README: Bumped version
* configure.ac: Bumped version to 2.6.9
2012-04-22 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-multipart-signed.c (g_mime_multipart_signed_verify):
Match protocols like application/x-pkcs7-signature, too.
Fixes bug #674032.
2012-04-19 Jeffrey Stedfast <fejj@gnome.org>
* README: Bumped version
* configure.ac: Bumped version to 2.6.8
2012-04-12 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-parser.c (parser_scan_headers): Make sure to
initialize 'start' before using it to calculate headers_end in the
case where parser_fill() failed.
Fixes bug #673493.
2012-03-10 Daniel Gillmor <dkg@fifthhorseman.net>
* mono/gmime-sharp.dll.config.in: Fixed missing .so number.
Fixes bug #671785.
2012-03-09 Jeffrey Stedfast <fejj@gnome.org>
* README: Bumped version
* configure.ac: Bumped version to 2.6.7
2012-03-09 Daniel Gillmor <dkg@fifthhorseman.net>
* gmime/gmime-certificate.h: Remove the trailing comma from the
last enum item to silence gcc -pedantic warnings.
* gmime/gmime-message.h: Same.
2012-03-09 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-parser.c (parser_step_headers): Be lenient with
"From " lines found in message headers. Fixes bug #671680.
2012-02-20 Jeffrey Stedfast <fejj@gnome.org>
* README: Bumped version
* configure.ac: Bumped version to 2.6.6
2012-02-20 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-message.c (multipart_guess_body): Fixed
multipart/signed logic.
2012-02-20 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-common.c (g_mime_strdup_trim): Optimized.
* gmime/gmime-parser.c (header_parse): Use g_mime_strdup_trim()
instead of reimplementing the same logic here.
2012-02-20 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-parser.c: Instead of filtering Content-* headers
inside GMimeObject subclasses, filter them in the parser. This way
header fetching works as expected in subparts which might have
non-standard headers (X-* and whatnot).
2012-02-19 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-encodings.c (g_mime_content_encoding_from_string):
Match non-standard encodings: 7-bit, 8-bit, and x-uue (the
standard names for these are 7bit, 8bit, and x-uuencode).
2012-02-19 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-common.c (g_mime_strdup_trim): New function that
optimizes g_strstrip combined with g_strdup in both speed and
memory usage (g_strstrip won't shrink the size of the dup'd
memory).
2012-02-18 Jeffrey Stedfast <fejj@gnome.org>
* configure.ac: Add a --enable-smime flag which defaults to "no".
2012-02-18 Jeffrey Stedfast <fejj@gnome.org>
* README: Bumped version
* configure.ac: Bumped version to 2.6.5
2012-02-18 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-parser.c (parser_scan_message_part): Make sure that
a boundary doesn't appear before we start scanning for the
headers.
2012-02-18 Jeffrey Stedfast <fejj@gnome.org>
* src/uuencode.c:
* src/uudecode.c: Moved to examples/
2012-02-17 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-gpg-context.c (gpg_verify): In cases where gpg does
not exit with code 0, only set the GError when we've gotten no
signer information from gpg (otherwise we return the list of
signers, which will presumably include why the verification failed
in the status of each signer). Fixes bug #668085.
2012-02-17 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-part-iter.c: Fixed to behave the same as IMAP and
also to actually work.
2012-02-16 Jeffrey Stedfast <jeff@xamarin.com>
* mono/Multipart.custom: Fixed the binding for Multipart.Count.
2012-02-04 Jeffrey Stedfast <fejj@gnome.org>
* configure.ac: Added --with-gacdir to fix bug #667072
2012-01-11 Jeffrey Stedfast <fejj@gnome.org>
* mono/Makefile.am: Fixed up to more closely match the gtk-sharp
build.
* mono/gmime-sharp.pc.in: Fixed to more closely match gtk-sharp.
2012-01-11 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-pkcs7-context.c: Fixed some switch statements to
include a 'default' code path, fixing some compiler
warnings. Fixes bug #667684.
2012-01-09 Ionut Biru <ibiru@archlinux.org>
* gmime/gmime-pkcs7-context.c: Fix compilation when S/MIME is not
enabled.
2012-01-08 Jeffrey Stedfast <fejj@gnome.org>
* README: Bumped version
* configure.ac: Bumped version to 2.6.4
2012-01-08 Jeffrey Stedfast <fejj@gnome.org>
Fix for bug #667070
* configure.ac: Fixed Docbook checks for the html and pdf converters.
* docs/tutorial/Makefile.am: Use the DB2HTML and DB2PDF variables.
2012-01-05 Jeffrey Stedfast <jeff@xamarin.com>
Fixes for bug #667137.
* tests/Makefile.am: If any tests fail, exit with an error to
abort make.
* tests/testsuite.c (testsuite_exit): Simply return
total_errors.
2012-01-05 Jeffrey Stedfast <fejj@gnome.org>
Fixes for bug #667072.
* mono/Makefile.am: Install to $(libdir) instead of $(prefix)/libdir.
* mono/gmime-sharp.pc.in: Set libdir to @libdir@
2012-01-05 Jeffrey Stedfast <fejj@gnome.org>
* src/Makefile.am: Rename uuencode/uudecode to
gmime-uuencode/decode to prevent naming collisions with the GNU
Sharutils tools. Fixes bug #667073.
2012-01-05 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-gpg-context.c (gpg_ctx_parse_status): Fixed returns
without a return value. Also fixed up some error-handling.
2012-01-05 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-utils.c (rfc2047_decode_tokens): Fixed a memory leak.
2011-12-23 Jeffrey Stedfast <fejj@gnome.org>
* README: Bumped version
* configure.ac: Bumped version to 2.6.3
2011-12-18 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-utils.c (quoted_decode): Made more robust and also
modified to keep state (e.g. for use when triplets span across
multiple encoded-word tokens).
(tokenize_rfc2047_phrase): Tokenizes a rfc822 phrase header for
later processing.
(tokenize_rfc2047_text): Tokenizes a rfc822 unstructured text
header for later processing.
(rfc2047_decode_tokens): Merge and decode rfc2047 tokens,
converting the decoded text into UTF-8.
(g_mime_utils_header_decode_phrase): Rewritten to use the above
functions.
(g_mime_utils_header_decode_text): Same.
2011-12-18 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-utils.c (charset_convert): Don't count the
terminating nul character in the returned string length.
2011-12-17 Jeffrey Stedfast <fejj@gnome.org>
* README: Bumped version
* configure.ac: Bumped version to 2.6.2
2011-12-15 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-iconv-utils.c (g_mime_iconv_strndup): Same.
* gmime/gmime-filter-charset.c (flter_complete): Same as
charset_convert().
* gmime/gmime-utils.c (charset_convert): Make sure the output
buffer is large enough when flushing the conversion descriptor.
2011-12-15 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime.c (g_mime_init): Don't initialize the crypto types
unless crypto was enabled in the build.
2011-11-06 Jeffrey Stedfast <fejj@gnome.org>
* README: Bumped version
* configure.ac: Bumped version to 2.6.1
2011-11-05 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-multipart-encrypted.c
(g_mime_multipart_encrypted_decrypt): Need to decode the content
of the application/octet-stream part containing the encrypted
payload as it may have a non-7bit Content-Transfer-Encoding.
2011-11-05 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime.c (g_mime_init): Register all GObject-based types
to prevent race conditions in multi-threaded apps.
2011-08-27 Jeffrey Stedfast <fejj@gnome.org>
* README: Bumped version
* configure.ac: Bumped version to 2.6.0
2011-08-14 Jeffrey Stedfast <fejj@gnome.org>
* mono/*.custom: Simplified the GetEnumerator() implementations.
* mono/HeaderEnumerator.cs: New IEnumerator class returned by
HeaderList.GetEnumerator(). Wraps HeaderIter, providing a more
C#-like experience.
2011-08-14 Jeffrey Stedfast <fejj@gnome.org>
* mono/GMime.metadata: Rename AppendHeader() to Append(),
PrependHeader() to Prepend(), RemoveHeader() to Remove(), etc.
* mono/HeaderList.custom: Instead of having
GetHeader()/SetHeader(), manually bind this as an indexer.
* gmime/gmime-header.c (g_mime_header_list_clear): New function
to clear all headers.
(g_mime_header_list_contains): New function added mostly for
completeness in the C# binding.
2011-08-14 Jeffrey Stedfast <fejj@gnome.org>
* README: Bumped version
* configure.ac: Bumped version to 2.5.10
2011-08-14 Jeffrey Stedfast <fejj@gnome.org>
* mono/GMime.metadata (PartBase): Rename to Entity to be more
consistent with MIME terminology and removed more convenience
methods that really only make sense in the C API.
(g_mime_object_new_type): Removed, there's no easy way to map this
to managed.
(g_mime_object_new): Removed, there's no easy way to map this
to managed.
2011-08-14 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-part-iter.c: Updated to be more consistent with IMAP
part specifiers.
2011-08-13 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-part-iter.c: New class for iterating over a tree of
GMimeObjects. Fixes bug #652012.
2011-08-13 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-multipart.c (g_mime_multipart_replace): New
convenience function to replace a mime part at a specified
position.
2011-08-08 Jeffrey Stedfast <fejj@gnome.org>
* README: Bumped version
* configure.ac: Bumped version to 2.5.9
2011-07-17 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-utils.c (charset_convert): Don't skip validation of
UTF-8 text.
2011-07-17 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-utils.c (charset_convert): Handle ERANGE the same as
EILSEQ.
* gmime/gmime-filter-charset.c (filter_filter): Handle ERANGE the
same as EILSEQ.
* gmime/gmime-charset.c (g_mime_charset_map_init): Improved logic
for Win32 (and even Linux) systems. Don't rely on setlocale().
2011-06-15 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-parser.c: Added new state, MESSAGE_HEADERS, which
behaves the same as HEADERS but is only ever set when we are
parsing the toplevel GMimeMessage object.
(parser_step_headers): Be slightly more strict in handling
malformed headers in the MESSAGE_HEADERS state so that trying to
parse non-message streams fails (e.g. if someone tries to parse a
jpeg stream).
2011-06-15 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-gpg-context.c: Define nfds_t on OSX.
2011-06-10 Jeffrey Stedfast <fejj@gnome.org>
* README: Bumped version
* configure.ac: Bumped version to 2.5.8
2011-06-09 Jeffrey Stedfast <fejj@gnome.org>
Fix for bug #652056
* gmime/gmime-param.c (decode_value): If STRICT_PARSER isn't
defined, don't require the value to start with a valid character.
2011-06-08 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Fix for bug #651826
* gmime/gmime-gpg-context.c
(g_mime_gpg_context_[g,s]_set_use_agent): New functions to allow
the invoker to declare that they expect there to be a functioning
gpg-agent, and want gpg to talk to it for any needed credentials.
2011-06-08 Jeffrey Stedfast <fejj@gnome.org>
* gmime/gmime-gpg-context.c: If building on Apple, force the use
of our own implementation of poll() because Apple's poll() is
broken on some versions of MacOS.
2011-03-18 Jeffrey Stedfast <fejj@novell.com>
* README: Bumped version
* configure.ac: Bumped version to 2.5.7
2011-03-17 Jeffrey Stedfast <fejj@novell.com>
* gmime/gmime-multipart-encrypted.c: Updated for crypto API
changes.
* gmime/gmime-multipart-signed.c: Updated for crypto API changes.
* gmime/gmime-crypto-context.c (g_mime_crypto_context_verify): Now
returns a GMimeSignatureList, the 'details' string was worthless
for GpgMe backend.
(GMimeDecryptResult): This is now a GObject.
* gmime/gmime-pkcs7-context.c: Updated for crypto API changes.
* gmime/gmime-gpg-context.c: Updated for crypto API changes.
* gmime/gmime-certificate.[c,h]: New source files implementing
Certificate and CertificateList classes.
* gmime/gmime-signature.[c,h]: New source files implementing
Signature and SignatureList classes.
2011-03-16 Jeffrey Stedfast <fejj@novell.com>
* mono/StreamWrapper.cs (Write): Implemented.
* mono/CryptoRecipientCollection.cs:
* mono/SignerCollection.cs: New collections for Signers and
CryptoRecipients.
* mono/SignatureValidity.custom:
* mono/DecryptionResult.custom: Don't return IEnumerators for
signers/recipients, return the appropriate Collections instead.
2011-03-15 Jeffrey Stedfast <fejj@novell.com>
* mono/SignatureValidity.custom:
* mono/DecryptionResult.custom:
* mono/CryptoRecipient.custom:
* mono/Signer.custom: New custom sources implementing enumerators
for Signers and Recipients.
2011-03-14 Jeffrey Stedfast <fejj@novell.com>
* configure.ac: Check for glib-sharp-2.0 instead of gtk-sharp-2.0
since we really only depend on glib-sharp. Also check for gapi-2.0
via pkgconfig.
2011-03-07 Jeffrey Stedfast <fejj@novell.com>
* README: Bumped version
* configure.ac: Bumped version to 2.5.6
* gmime/gmime-gpg-context.c (gpg_ctx_parse_signer_info): Treat
EXPSIG, EXPKEYSIG, and REVKEYSIG the same as GOODSIG/BADSIG status
messages in that all of them denote a new signer info.
2011-03-04 Jeffrey Stedfast <fejj@novell.com>
* README: Bumped version
* configure.ac: Bumped version to 2.5.5
2011-03-04 Jeffrey Stedfast <fejj@novell.com>
Implements features requested in bug #641841 and #641320.
* gmime/gmime-crypto-context.h (GMimeCryptoHash): Reordered to be
identical to gnupg's listing.
(GMimeCryptoPubKeyAlgo): Same.
* gmime/gmime-crypto-context.c (g_mime_decryption_result_[g,s]et_cipher):
New functions to get/set the cipher algorithm used.
(g_mime_decryption_result_[g,s]et_mdc): New functions to get/set
the mdc digest algorithm used.
* gmime/gmime-gpg-context.c (gpg_hash_algo): Removed, no longer
needed.
(gpg_pubkey_algo): Same.
(gpg_ctx_parse_status) :Parse the DECRYPTION_INFO status to get
the cipher and mdc algorithms used.
(gpg_decrypt): Set the cipher and mdc values on the
GMimeDecryptionResult.
* gmime/gmime-pkcs7-context.c (pkcs7_pubkey_algo): Removed, no
longer needed.
(pkcs7_hash_algo): Same.
2011-03-04 Jeffrey Stedfast <fejj@novell.com>
* gmime/gmime-gpg-context.c (gpg_ctx_parse_signer_info): Make sure
to extract the pubkey_algo, hash_algo, sig_class, sig_expires, and
return-code values for ERRSIG.
2011-03-04 Jeffrey Stedfast <fejj@novell.com>
Implemented bug #641319.
* gmime/gmime-crypto-context.c (g_mime_crypto_recipient_*): New
set of functions for manipulating a GMimeCryptoRecipient.
(g_mime_decryption_result_*): New set of functions to manipulate a
GMimeDecryptionResult
(g_mime_crypto_context_decrypt): Now returns a
GMimeDecryptionResult.
* gmime/gmime-multipart-encrypted.c
(g_mime_multipart_encrypted_decrypt): Updated for API changes.
* gmime/gmime-pkcs7-context.c (pkcs7_decrypt): Updated for API
changes.
* gmime/gmime-gpg-context.c (gpg_decrypt): Updated for API
changes.
2011-03-04 Jeffrey Stedfast <fejj@novell.com>
API cleanup as well as preparing for the possibility of a
multi-protocol CryptoContext.
* gmime/gmime-multipart-encrypted.c (g_mime_multipart_encrypted_encrypt):
Updated to use new APIs for getting the encryption protocol.
(g_mime_multipart_encrypted_decrypt): Same.
* gmime/gmime-multipart-signed.c (g_mime_multipart_signed_sign):
Updated to use new APIs for getting the signature protocol.
(g_mime_multipart_signed_verify): Same.
* gmime/gmime-crypto-context.c (g_mime_crypto_context_get_*_protocol):
New methods for getting the crypto protocol strings used by
multipart/encrypted and multipart/signed parts.
* gmime/gmime-pkcs7-context.c (pkcs7_get_*_protocol): Implemented.
* gmime/gmime-gpg-context.c (gpg_get_*_protocol): Implemented.
2011-03-03 Jeffrey Stedfast <fejj@novell.com>
* gmime/gmime-pkcs7-context.c (pkcs7_stream_seek): Added.
* gmime/gmime.c (g_mime_init): Initialize gpgme.
2011-02-08 Jeffrey Stedfast <fejj@novell.com>
Implements feature request in bug #635663.
* gmime/gmime-crypto-context.c (g_mime_signer_[g,s]et_sig_version):
New functions to access new signature version member.
(g_mime_signer_[g,s]et_sig_class): New functions to access new
signature class member.
* gmime/gmime-gpg-context.c (gpg_ctx_parse_signer_info): Extract
the signature class and version tokens.
2011-02-08 Jeffrey Stedfast <fejj@novell.com>
* PORTING: Updated docs.
* mono/GMime.metadata: Fixed up for the new decrypt API.
* gmime/gmime-message.c (multipart_guess_body): Updated. We can no
longer descend into the decrypted part because it is no longer
cached.
* gmime/gmime-multipart-encrypted.c (g_mime_multipart_encrypted_decrypt):
Now takes a GMimeSignatureValidity argument and no longer caches
the decrypted mime part/validity.
(g_mime_multipart_encrypted_get_signature_validity): Removed.
(g_mime_multipart_encrypted_encrypt): Don't cache the input part
as the decrypted part.
2011-01-22 Jeffrey Stedfast <fejj@novell.com>
* gmime/gmime-gpg-context.c (gpg_ctx_parse_signer_info): Parse the
ERRSIG's return code, fixes bug #638605.
* gmime/gmime-crypto-context.h: Added UNSUPP_ALGO error value.
2011-01-22 Jeffrey Stedfast <fejj@novell.com>
* gmime/gmime-stream-mem.c (stream_write): Correctly calculate the
end boundary of the stream when bound_end is -1.
2010-12-05 Jeffrey Stedfast <fejj@novell.com>
* README: Bumped version
* configure.ac: Bumped version to 2.5.4
2010-11-29 Jeffrey Stedfast <fejj@novell.com>
* gmime/internet-address.c (decode_address): Handle edge cases
where inptr reaches the end of the input string prematurely due to
a malformed address.
2010-11-29 Jeffrey Stedfast <fejj@novell.com>
Fixes bug #635409.
* gmime/gmime-pkcs7-context.c (pkcs7_get_validity): Reworked the
logic to calculate the signer status. Also dropped
GMimeSignatureStatus logic.
* gmime/gmime-gpg-context.c (gpg_verify): Removed the (broken)
logic of calculating a GMimeSignatureStatus.
(gpg_decrypt): Same.
(gpg_ctx_parse_signer_info): Updated for the g_mime_signer_new()
API change.
* gmime/gmime-crypto-context.c (g_mime_signature_validity_new): No
longer initializes a GMimeSignatureStatus member.
(g_mime_signature_validity_get_status): Removed.
(g_mime_signature_validity_set_status): Removed.
(g_mime_signer_new): Now takes a GMimeSignerStatus so that I could
get rid of the default NONE status.
* gmime/gmime-crypto-context.h (GMimeSignatureStatus): Removed.
2010-11-24 Jeffrey Stedfast <fejj@novell.com>
Fixes bug #635661.
* gmime/gmime-crypto-context.c (g_mime_signer_new): Initialize
pubkey_algo and hash_algo.
(g_mime_signer_[g,s]et_pubkey_algo): Implemented.
(g_mime_signer_[g,s]et_hash_algo): Renamed from [g,s]et_hash().
* gmime/gmime-crypto-context.h (GMimeCryptoPubKeyAlgo): Defined
enum.
* gmime/gmime-pkcs7-context.c (pkcs7_get_validity): Record the
hash and pubkey algorithms used in the GMimeSigner.
* gmime/gmime-gpg-context.c (gpg_ctx_parse_signer_info): Record
the pubkey algorithm used by the signer.
2010-11-22 Jeffrey Stedfast <fejj@novell.com>