Fixed some compilation problems and warnings.
[claws.git] / ChangeLog.claws
1 2001-05-12 [sergey]
2
3         * src/matcher.c, src/scoring.c: changed "#ifdef 0" to "#if 0" for
4         some picky compilers.
5         * src/rfc2015.h: provide prototype for rfc2015_disable_all().
6         * src/grouplist_dialog.c: include alertpanel.h.
7         * src/prefs_headers.c (prefs_headers_deleted): added GTK_BUTTON to
8         fix compile warning.
9         * src/scoring.c, src/prefs_folder_item.c, src/matcher.c: brought
10         #include "defs.h" before others to prevent the warning of `MIN'
11         and `MAX' redefinition.
12
13 2001-05-11 [hoa]
14
15         * src/main.c
16         * src/messageview.c
17         * src/prefs_account.c
18         * src/prefs_display_header.c
19                 removed warning
20         * src/Makefile.am
21                 added prefs_scoring.[ch]
22         * src/grouplist_dialog.c
23                 display an error dialog box if the group list
24                 cannot be fetched.
25         * src/mainwindow.[ch]
26                 added main_window_set_thread_option() function
27                 scoring dialog box enabled
28         * src/matcher.[ch]
29                 added flags matching unread /new / marked
30                 / deleted / replied / forwarded
31         * src/news.c
32                 newsgroups are now finally in newscache
33         * src/prefs_matcher.[ch]
34                 finished preferences for matching dialog
35         * added src/prefs_scoring.[ch]
36                 scoring dialog box completed
37         * src/scoring.[ch]
38                 conversion to string : added scoringprop_to_string()
39                 write config for preferences :
40                 added prefs_scoring_write_config()
41         * src/summaryview.c
42                 threads can be enabled/disabled independently
43                 for each folder
44
45 2001-05-10 [alfons]
46
47         0.4.67claws1
48         
49         * AUTHORS: 
50                 thought it would be nice to have a list of all
51                 contributors (used Changelog as a reference)
52         
53         * configure.in: 
54                 messed up version numbering...
55
56         0.4.66claws1
57
58         * sync with sylpheed 0.4.67cvs1-3
59
60 2001-05-10 [darko]
61
62         * src/prefs_common.c:
63                 better UI for strftime format, double clicking
64                 on format now inserts the format in text entry
65                 replaced close button with standard OK/Cancel
66                 moved date format button to the right of the
67                 text entry field
68
69 2001-05-09 [alfons]
70
71         * src/gtkstext.c:
72                 Ctrl-Home / Ctrl-End have proper cursor navigation
73
74 2001-05-09 [hoa]
75
76         * src/prefs_matcher.c
77                 finished UI to define matching properties
78                 added ok and cancel button
79         * src/prefs_filter.c
80                 added ok and cancel button
81         * src/news.c
82                 fixed some bug in xhdr parsing
83
84 2001-05-08 [alfons]
85
86         * src/textview.c: 
87                 fixed a bug in textview_show_header(), which displayed two colons (':');
88                 cleaned up some warnings
89
90 2001-05-08 [hoa]
91
92         * src/Makefile.am
93                 added prefs_matcher.[ch]
94                 compilation with -W -Wall
95         * src/alertpanel.c
96                 ungrab the mouse events if grabbed - does it
97                 fix the bug for disposition notification ?
98         * src/mainwindow.c
99                 added a menu option to open the matching dialog.
100         * src/matcher.[ch]
101                 added matcherprop_to_string() and matcherlist_to_string()
102                 fixed some bugs, changed the name of some options
103                 age_sup and age_inf becomes age_greater and age_lower,
104                 body and messageheaders becomes body_part and headers_part,
105                 changed the names of constants from SCORING_XXX to MATCHING_XXX
106         * src/prefs_display_header.c
107         * src/prefs_headers.c
108                 fixed a bug that accidentally destroyed dialogs
109                 when closed them with delete_event
110                 Added *_deleted() which handle delete_event signal correctly.
111         * src/prefs_folder_item.[ch]
112                 added "enable_thread" field for future customization
113         * added src/prefs_matcher.[ch]
114                 sample of the UI to define matching properties
115         * src/procheader.c
116                 using procheader_headername_equal instead of str*cmp functions
117                 using procheader_parse_header() function
118         * src/scoring.c
119                 using MATCHING_XXX instead of SCORING_XXX
120         * src/summaryview.c
121                 display the sender of the news even if this is ourself
122                 when this is a news message.
123         * src/textview.c
124                 using headername_equal() instead of str*cmp functions
125
126 2001-05-08 [alfons]
127
128         0.4.66claws
129
130         * sync with sylpheed 0.4.66
131         * src/gtkstext.c: trace logs added 
132
133 2001-05-08 [sergey]
134
135         * src/prefs_common.[ch]: added option to enable/disable GnuPG
136         signature check popup.
137         * src/rfc2015.c (check_signature): show signature check popup only
138         if it is enabled in preferences.
139
140 2001-05-07 [alfons]
141
142         0.4.66claws4
143         
144         * sync with sylpheed 0.4.66cvs6
145
146 2001-05-07 [darko]
147
148         * src/prefs_common.[ch]: added option to enable/disable
149           looking up sender name in address book for summary pane
150         * src/summaryview.c: look up sender in the address book
151           by using Alfons' address completion code
152
153 2001-05-07 [hiroyuki]
154
155         * src/inc.h
156           src/pop.c: pop3_retr_recv(): removed cur_msg_bytes from the
157           member of Pop3State.
158         * src/news.c: brought #include "defs.h" before #include <glib.h>
159           to prevent the warning of `MIN' and `MAX' redefinition.
160
161 2001-05-06 [hoa]
162
163         * removed src/headers_display.[ch]
164         * removed src/prefs_display_headers.[ch]
165         * src/inc.c
166                 use a temporary file in the user directory for mbox import
167         * src/news.c
168                 added XHDR support to get "To" and "Cc" headers
169                 (in order to match news with to or cc field for
170                 scoring)
171                 added function news_parse_xhdr() to get XHDR response
172         * src/nntp.[ch]
173                 added function nntp_xhdr()
174         * src/matcher.c
175                 fetch the message if necessary
176
177 2001-05-06 [alfons]
178
179         0.4.66claws3
180
181         * sync with sylpheed 0.4.66cvs3-5
182
183 2001-05-06 [hoa]
184
185         * src/utils.[ch]
186                 added function itos_buf() to enable use of several buffers
187         * src/summaryview.c
188                 use of itos_buf() instead of itos() in summary list
189                 to fix the broken display of message number.
190
191 2001-05-06 [alfons]
192
193         * src/gtkstext.c: bug in cursor up navigation fixed,
194                 fixed another unsigned / signed comparison (we're getting there :-)
195
196 2001-05-06 [hoa]
197
198         * src/Makefile.am
199                 added scoring.c scoring.h
200                 prefs_folder_item.c prefs_folder_item.h
201                 matcher.c matcher.h
202         * src/defs.h
203                 added FOLDERITEM_RC SCORING_RC
204         * src/folder.[ch]
205                 added prefs field in FolderItem :
206                 properties for each folder (PrefsFolderItem),
207                 sorting type and mode were added as the first properties.
208         * src/main.c
209                 read config for scoring
210         * added src/matcher.[ch]
211                 gives functions to parse configuration file to do
212                 matching on mails with a list of conditions.
213         * src/mainwindow.c
214                 add option to sort by score
215         * src/prefs_common.[ch]
216                 added preference option to show score and for
217                 the score column size
218         * added src/prefs_folder_item.[ch]
219                 properties for each folder (PrefsFolderItem),
220                 sorting type and mode were added as the first properties.
221         * src/procheader.[ch]
222                 added procheader_parse_header()
223                 added procheader_header_free()
224                 added procheader_headername_equal()
225                 and made modification to use them.
226         * src/procmsg.[ch]
227                 added score field to MsgInfo structure
228         * added src/scoring.[ch]
229                 gives functions to parse configuration file to do
230                 scoring on mails with a list of conditions.
231         * src/summaryview.[ch]
232                 save the sorting type and mode for the folder
233                 added column to display the score of the mail
234                 added function summary_score_clicked()
235                 sorting type and mode are restored to the folder
236                 when it is reopen
237         * src/textview.c
238                 use procheader_parse_header(), procheader_headername_equal()
239                 removed memory leak in text_scan_header when freeing headers
240         * src/filter.c
241                 changed the function to match names of headers
242                 using procheader_headername_equal()
243
244         Scoring functions are implemented, an interface is needed
245         to configure that.
246
247 2001-05-04 [alfons]
248
249         * src/gtkstext.c: 
250                 hopefully fixed the row up navigation bug,
251                 removed adding back / forward lines to cache
252
253 2001-05-04 [sergey]
254
255         * src/prefs_display_headers.c: user interface changes:
256         (prefs_display_headers_create): remove unused "Show" check button;
257         allow reordering of headers by dragging.
258         (prefs_display_headers_write_config): remove unused variables.
259         (prefs_display_headers_set_dialog): do not insert "(New)" at top
260         of lists (not needed with the new UI).
261         (prefs_display_headers_set_list): scan lists starting from row 0,
262         not 1 (do not skip "(New)").
263         (prefs_display_headers_find_header): new function.
264         (prefs_display_headers_clist_set_row): do not allow duplicates.
265         (prefs_display_headers_delete_cb): do not skip row 0; treat
266         closing the alert window by ESC as "No".
267         (prefs_display_headers_up): do not protect row 0.
268         (prefs_display_headers_down): do not protect row 0.
269
270 2001-05-04 [sergey]
271
272         * src/mainwindow.c (next_marked_cb, prev_marked_cb): new
273         functions.  
274
275         * src/summaryview.c
276         (summary_find_next_marked_msg, summary_find_prev_marked_msg,
277         summary_select_next_marked, summary_select_prev_marked): new
278         functions.
279
280 2001-05-03 [sergey]
281
282         * src/news.c: fixed a bug when no article can be fetched after
283         server timeout if the connection was restored by news_post():
284         (news_select_group): new function.
285         (news_fetch_msg): call news_select_group() before fetching
286         article.
287         (news_get_uncached_articles): set session->group after successful
288         GROUP command.
289
290 2001-05-03 [hoa]
291
292         * src/defs.h
293         * src/procmsg.[ch]
294         * src/procheader.c
295                  changed version of cache, added cc field
296
297         * src/prefs_display_headers.c
298                 the interface was changed
299
300         * src/prefs_headers.c
301                 added cancel button
302
303 2001-05-03 [alfons]
304
305         * completed sync of sylpheed cvs2
306         * src/gtkstext.c: updated row up / down cursor navigation
307         * src/textview.c: re-edited, prepared for fixing the email address
308                 scanner.
309
310 2001-05-03 [darko]
311
312         * src/prefs_common.c: use alfons' strftime ui code
313         entry_datefmt and datefmt_sample widgets have to be
314         global in this module because of this change
315
316 2001-05-03 [hoa]
317
318         * src/messageview.c
319         * src/prefs_common.[ch] added option to activate the return receipt
320                 feature.
321
322 2001-05-02 [alfons]
323
324         * src/gtkstext.c: fix for row up/down cursor navigation. 
325
326         0.4.66claws2
327         
328         * sync with 0.4.66cvs2
329
330 2001-05-02 [paul]
331
332         added add-sender-to-addressbook patch
333
334         * src/addressbook.c
335         * src/addressbook.h
336         * src/summaryview.c
337
338 2001-05-02 [sergey]
339
340         * src/alertpanel.h (AlertValue): added G_ALERT_VALUE_MASK,
341         G_ALERTDISABLE.
342
343         * src/alertpanel.c (alertpanel_create): new argument can_disable,
344         all existing callers changed to pass FALSE; create a check button
345         to disable the message.
346         (alertpanel_message_with_disable): new function.
347         (alertpanel_show): mask value with G_ALERT_VALUE_MASK.
348         (alertpanel_button_toggled): new function.
349         (alertpanel_button_clicked, alertpanel_close): set value using
350         G_ALERT_VALUE_MASK.
351
352         * src/prefs_common.h (PrefsCommon): new field gpgme_warning.
353
354         * src/prefs_common.c (prefs_privacy_create): new check button
355         checkbtn_gpgme_warning.
356
357         * src/main.c (main): moved preferences reading before gpgme
358         initialization; check prefs_common.gpgme_warning before giving the
359         GnuPG warning and set it to FALSE if the user wants to disable the
360         warning.
361
362 2001-05-02 [hiroyuki]
363
364         * src/prefs_display_headers.c: modified the layout and some labels.
365
366 2001-05-02 [sergey]
367
368         * src/prefs_account.c (prefs_account_fix_size): new function.
369         (prefs_account_create): call prefs_account_fix_size(); use
370         gtk_widget_show instead of gtk_widget_show_all (fixes too large
371         size when the window is shown for the first time).
372         (prefs_account_basic_create): changed layout of serv_table; moved
373         localmbox_entry above smtpserv_entry (logically it replaces
374         POP3/IMAP server).
375         (prefs_account_protocol_activated): set sensitivity of
376         nntpauth_chkbtn according to the protocol (in addition to
377         hide/show); commented out gtk_table_set_row_spacing() calls.
378         (prefs_account_nntpauth_toggled): do nothing if nntpauth_chkbtn is
379         not sensitive (fixes a bug with disabled username/password boxes
380         when editing POP3 account after NNTP with authentication).
381
382 2001-05-02 [hoa]
383
384         * src/account.c
385         * src/inc.c
386         * src/prefs_account.[ch]
387         * src/send.c
388                 removed local account without SMTP server
389                 added option to use mail command instead of a connexion
390                 to SMTP server when a local account is used
391         * src/prefs_headers.c
392                 fixed a bug
393         * src/news.c
394                 fixed a bug when connexion immediately closed
395
396 2001-05-01 [alfons]
397
398         0.4.66claws1
399         
400         * sync with 0.4.65
401
402 2001-05-01 [sergey]
403
404         * src/prefs_account.c (Basic, prefs_account_basic_create): new
405         widget nntpauth_chkbtn.
406         (prefs_account_protocol_activated): handle nntpauth_chkbtn
407         visibility.
408         (prefs_account_nntpauth_toggled): new function.
409
410         * src/news.c (news_session_new_for_folder): use NNTP
411         authentication only if ac->use_nntp_auth is set.
412
413 2001-05-01 [hoa]
414
415         * src/Makefile.am changed headers.[ch] in customheader.[ch]
416         * src/prefs_display_headers.c changed the UI
417         * src/prefs_headers.c changed account_name to account_id
418         * src/compose.c using customheader.h
419
420 2001-05-01 [hiroyuki]
421
422         * src/esmtp.c
423           src/news.c
424           src/nntp.c: changed sock_read() to sock_gets(), they've been left
425           unsynched.
426
427 2001-05-01 [hoa]
428
429         * src/Makefile.am added prefs_display_headers.[ch] headers_display.[ch]
430         * src/defs.h added HEADERS_DISPLAY_RC : name of the config file
431                 for displaying of headers
432         * src/grouplist_dialog.[ch] minor changes to remove warnings
433         * src/prefs_display_headers.[ch] dialog to choose the
434         headers to display in the mail viewer.
435         * src/headers.h correction of #define
436         * src/headers_display.[ch] configuration for displaying of headers.
437         * src/main.c read config of displaying of headers
438         * src/prefs_common.c add a button to access the config dialog
439                 for displaying of headers
440         * src/prefs_display_headers.[ch] dialog for configuration for
441                 displaying of the headers.
442         * src/prefs_headers.c cleaning of code
443         * src/procheader.c comments added to code
444         * src/textview.c changes to reorder the headers depending
445                 on the config for displaying of headers
446
447 2001-04-30 [alfons]
448
449         0.4.65claws7
450
451         * sync with 0.4.65cvs12
452
453         NOTE: nntp.c and news.c in claws and cvs branch differ significantly!
454
455 2001-04-30 [sergey]
456
457         * src/nntp.h (NNTPSockInfo): new field auth_failed.
458
459         * src/nntp.c (nntp_mode): return NN_AUTHREQ if sock->auth_failed
460         is set to force reconnection after authentication failure.
461         (nntp_gen_command): set sock->auth_failed on authentication
462         failure, or if sock->userid and sock->passwd are not set.
463
464         * src/news.c (news_session_new_for_folder): set userid=NULL if
465         password dialog is cancelled.
466
467 2001-04-30 [sergey]
468
469         * src/nntp.h (NNTPSockInfo): new type.
470
471         * src/nntp.c: all functions updated to use NNTPSockInfo instead of
472         SockInfo.
473         (nntp_open_auth, nntp_close): new functions.
474         (nntp_gen_command): new function to handle authentication; all
475         NNTP command functions updated to use it.
476         (nntp_authinfo_user, nntp_authinfo_pass): deleted.
477         (nntp_list): removed old useless code.
478
479         * src/news.h (NNTPSession): new field nntp_sock.
480
481         * src/news.c: all functions updated to use NNTPSockInfo instead of
482         SockInfo.
483         (news_session_new): new arguments (userid, passwd); made static;
484         use nntp_open_auth() if needed.
485         (news_session_destroy): use nntp_close() instead of sock_close().
486         (news_query_password): changed arguments.
487         (news_session_new_for_folder): new function.
488         (news_session_get): use news_session_new_for_folder().
489         (news_authenticate): deleted.
490         (news_get_uncached_articles): removed old authentication code.
491
492 2001-04-30 [sergey]
493
494         * src/news.c: reverted my previous changes (need to do NNTP
495         authentication in a cleaner way).
496         
497 2001-04-29 [sergey]
498
499         * src/news.c (news_nntp_group, news_nntp_list, news_nntp_xover,
500         news_nntp_post, news_nntp_mode): new functions (wrappers with
501         authentication support).
502         (news_get_article_cmd, news_get_article, news_get_header): new
503         argument "folder"; all callers changed.
504         (news_get_article_cmd): added authentication support.
505         (news_session_get): use news_nntp_mode() instead of nntp_mode().
506         (news_post): use news_nntp_post() instead of nntp_post().
507         (news_get_uncached_articles): use news_nntp_group() instead of
508         nntp_group() and news_nntp_xover() instead of nntp_xover();
509         removed old authentication code.
510         (news_get_group_list): use news_nntp_list() instead of nntp_list().
511
512         * src/nntp.c (nntp_list): return real error code instead of
513         hardcoded NN_ERROR.
514
515 2001-04-29 [sergey]
516
517         * configure.in: fixed wint_t typedef detection again
518
519 2001-04-28 [hoa]
520
521         * src/prefs_account.[ch], added A_LOCAL_CMD
522                 (send mail with mail command)
523         * src/send.c added function send_message_with_command()
524         * src/inc.c made a more secure get_spool() function with
525                 mktemp() but maybe mkstemp() or something more
526                 secure can be used.
527
528 2001-04-28 [alfons]
529
530         * src/textview.c, colorization of email addresses in headers
531
532         0.4.65claws6
533
534         * bug sync with sylpheed
535         * prefs_common.c: created date format ui for darko
536         * sync with 0.4.65cvs11
537         * configure.in: corrected to have the new gpg checks
538
539 2001-04-27 [alfons]
540
541         * completed sync with 0.4.65cvs10
542         * minor debug things added to gtkstext.c
543
544 2001-04-27 [darko]
545
546         * configure.in: remove check for availability of
547           strftime() as advised by Hiroyuki
548         * src/prefs_common.[ch], src/procheader.c:
549           synch strftime() code with Hiroyki's main branch
550
551 2001-04-26 [sergey]
552
553         * src/news.c: news_query_password(), news_authenticate(): new
554           functions.
555           news_get_uncached_articles(): added NNTP authentication
556           handling.
557         * src/nntp.[ch]: nntp_authinfo_user(), nntp_authinfo_pass():
558           new functions.
559         * src/prefs_account.c: prefs_account_protocol_activated():
560           enable userid and password fields for NNTP.
561
562 2001-04-26
563
564         * configure.in: check for availability of strftime()
565           [darko]
566         * src/prefs_common.[ch], src/procheader.c: use
567           strftime() for displaying date in summary pane if it
568           is available
569
570 2001-04-25
571
572         * more .cvsignore cleanups [alfons]
573
574 2001-04-25
575
576         * ac/sv-check-type.m4: new autoconf macro.
577         * configure.in: fixed wint_t typedef detection (did not work
578           with gcc-2.96).
579
580 2001-04-25
581
582         * acconfig.h: added USE_GTKGDK_XIM definition for autoheader.
583           [hiroyuki]
584
585 2001-04-24
586         * modified gtkstext.c : buggy cursor navigation fixed, 
587           and font descent also taken in account when drawing
588           cursor. [alfons]
589
590 2001-04-24 [hoa]
591         * added comments in src/news.c src/nntp.c
592         * added src/prefs_headers.[ch]
593         * added src/headers.[ch]
594         * modified compose.c to activate custom headers
595                 added function is_in_custom_headers
596         * modified prefs_account.[ch]
597                 added function prefs_account_customhdr_edit
598         * modified src/defs.h :
599                 added HEADERS_RC : name of the config file
600                 for the custom headers
601
602 2001-04-24
603
604     0.4.65claws5
605
606         * configure.in
607           src/gtkstext.[ch]
608           src/compose.c
609           src/Makefile.am
610           
611           added gtkstext with configure.in patch by Hiroyuki which
612           should fix the XIM detection [alfons]
613
614         * more clean up of cvs [alfons]
615
616                  * removed all Makefile.in files to attic.
617
618                  * updated all .cvsignores to really ignore things that could
619                    be unintentionally committed by a recursive commit.
620
621 2001-04-23 [hoa]
622         * added src/grouplist_dialog.[ch]
623         * changed src/folderview.c to call grouplist_dialog instead
624                 of inputdialog
625         * src/news.c :
626                 added functions news_reset_group_list
627                 and news_get_group_list
628         * src/nntp.c :
629                 added function nntp_list
630         * src/defs.h :
631                 added GROUPLIST_FILE : name of the newsgroup list cache file
632
633 2001-04-21
634
635         * added option to warn about queued messages on exit [sergey]:
636
637           * src/compose.c: compose_queue(): call folder_item_scan()
638             and folderview_update_item() after queueing.
639           * src/folderview.c: folderview_update_node(): draw the queue
640             folder in bold font if there are queued messages.
641           * src/mainwindow.c: queued_messages(): new function.
642             app_exit_cb(): display warning if there are queued messages
643             if warn_queued_on_exit is set.
644           * prefs_common.[ch]: add warn_queued_on_exit option.
645
646         * enhanced GnuPG key selection support [sergey]:
647
648           * src/select-keys.c: updated to newer version from Win32
649             branch with support for selecting arbitrary keys.
650           * src/prefs_account.c: added the Privacy tab to the account
651             options window.
652             prefs_account_privacy_create(),
653             prefs_account_sign_key_set_data_from_radiobtn(),
654             prefs_account_sign_key_set_radiobtn(): new functions.
655           * src/prefs_account.h: new preferences sign_key_type, sign_key_id.
656           * src/rfc2015.c: set_signers(): new function.
657             pgp_sign(): add the account parameter, call set_signers().
658             rfc2015_sign(): add the account parameter, pass it to pgp_sign().
659           * src/rfc2015.h: rfc2015_sign(): updated prototype.
660           * src/compose.c: pass the current account to rfc2015_sign().
661
662         * tag name claws added to prevent confusion with main branch [alfons]
663
664         * Sync with sylpheed-0.4.65cvs4 and made it compile. [sergey]
665
666         * autogen.sh: Added "--enable-maintainer-mode". [sergey]
667
668         * sync with recent sylpheed cvs. Untested though. [alfons]
669