news scoring
[claws.git] / ChangeLog.claws
1 2001-05-06 [hoa]
2
3         * removed src/headers_display.[ch]
4         * removed src/prefs_display_headers.[ch]
5         * src/inc.c
6                 use a temporary file in the user directory for mbox import
7         * src/news.c
8                 added XHDR support to get "To" and "Cc" headers
9                 (in order to match news with to or cc field for
10                 scoring)
11                 added function news_parse_xhdr() to get XHDR response
12         * src/nntp.[ch]
13                 added function nntp_xhdr()
14         * src/matcher.c
15                 fetch the message if necessary
16
17 2001-05-06 [alfons]
18
19         0.4.66claws3
20
21         * sync with sylpheed 0.4.66cvs3-5
22
23 2001-05-06 [hoa]
24
25         * src/utils.[ch]
26                 added function itos_buf() to enable use of several buffers
27         * src/summaryview.c
28                 use of itos_buf() instead of itos() in summary list
29                 to fix the broken display of message number.
30
31 2001-05-06 [alfons]
32
33         * src/gtkstext.c: bug in cursor up navigation fixed,
34                 fixed another unsigned / signed comparison (we're getting there :-)
35
36 2001-05-06 [hoa]
37
38         * src/Makefile.am
39                 added scoring.c scoring.h
40                 prefs_folder_item.c prefs_folder_item.h
41                 matcher.c matcher.h
42         * src/defs.h
43                 added FOLDERITEM_RC SCORING_RC
44         * src/folder.[ch]
45                 added prefs field in FolderItem :
46                 properties for each folder (PrefsFolderItem),
47                 sorting type and mode were added as the first properties.
48         * src/main.c
49                 read config for scoring
50         * added src/matcher.[ch]
51                 gives functions to parse configuration file to do
52                 matching on mails with a list of conditions.
53         * src/mainwindow.c
54                 add option to sort by score
55         * src/prefs_common.[ch]
56                 added preference option to show score and for
57                 the score column size
58         * added src/prefs_folder_item.[ch]
59                 properties for each folder (PrefsFolderItem),
60                 sorting type and mode were added as the first properties.
61         * src/procheader.[ch]
62                 added procheader_parse_header()
63                 added procheader_header_free()
64                 added procheader_headername_equal()
65                 and made modification to use them.
66         * src/procmsg.[ch]
67                 added score field to MsgInfo structure
68         * added src/scoring.[ch]
69                 gives functions to parse configuration file to do
70                 scoring on mails with a list of conditions.
71         * src/summaryview.[ch]
72                 save the sorting type and mode for the folder
73                 added column to display the score of the mail
74                 added function summary_score_clicked()
75                 sorting type and mode are restored to the folder
76                 when it is reopen
77         * src/textview.c
78                 use procheader_parse_header(), procheader_headername_equal()
79                 removed memory leak in text_scan_header when freeing headers
80         * src/filter.c
81                 changed the function to match names of headers
82                 using procheader_headername_equal()
83
84         Scoring functions are implemented, an interface is needed
85         to configure that.
86
87 2001-05-04 [alfons]
88
89         * src/gtkstext.c: 
90                 hopefully fixed the row up navigation bug,
91                 removed adding back / forward lines to cache
92
93 2001-05-04 [sergey]
94
95         * src/prefs_display_headers.c: user interface changes:
96         (prefs_display_headers_create): remove unused "Show" check button;
97         allow reordering of headers by dragging.
98         (prefs_display_headers_write_config): remove unused variables.
99         (prefs_display_headers_set_dialog): do not insert "(New)" at top
100         of lists (not needed with the new UI).
101         (prefs_display_headers_set_list): scan lists starting from row 0,
102         not 1 (do not skip "(New)").
103         (prefs_display_headers_find_header): new function.
104         (prefs_display_headers_clist_set_row): do not allow duplicates.
105         (prefs_display_headers_delete_cb): do not skip row 0; treat
106         closing the alert window by ESC as "No".
107         (prefs_display_headers_up): do not protect row 0.
108         (prefs_display_headers_down): do not protect row 0.
109
110 2001-05-04 [sergey]
111
112         * src/mainwindow.c (next_marked_cb, prev_marked_cb): new
113         functions.  
114
115         * src/summaryview.c
116         (summary_find_next_marked_msg, summary_find_prev_marked_msg,
117         summary_select_next_marked, summary_select_prev_marked): new
118         functions.
119
120 2001-05-03 [sergey]
121
122         * src/news.c: fixed a bug when no article can be fetched after
123         server timeout if the connection was restored by news_post():
124         (news_select_group): new function.
125         (news_fetch_msg): call news_select_group() before fetching
126         article.
127         (news_get_uncached_articles): set session->group after successful
128         GROUP command.
129
130 2001-05-03 [hoa]
131
132         * src/defs.h
133         * src/procmsg.[ch]
134         * src/procheader.c
135                  changed version of cache, added cc field
136
137         * src/prefs_display_headers.c
138                 the interface was changed
139
140         * src/prefs_headers.c
141                 added cancel button
142
143 2001-05-03 [alfons]
144
145         * completed sync of sylpheed cvs2
146         * src/gtkstext.c: updated row up / down cursor navigation
147         * src/textview.c: re-edited, prepared for fixing the email address
148                 scanner.
149
150 2001-05-03 [darko]
151
152         * src/prefs_common.c: use alfons' strftime ui code
153         entry_datefmt and datefmt_sample widgets have to be
154         global in this module because of this change
155
156 2001-05-03 [hoa]
157
158         * src/messageview.c
159         * src/prefs_common.[ch] added option to activate the return receipt
160                 feature.
161
162 2001-05-02 [alfons]
163
164         * src/gtkstext.c: fix for row up/down cursor navigation. 
165
166         0.4.66claws2
167         
168         * sync with 0.4.66cvs2
169
170 2001-05-02 [paul]
171
172         added add-sender-to-addressbook patch
173
174         * src/addressbook.c
175         * src/addressbook.h
176         * src/summaryview.c
177
178 2001-05-02 [sergey]
179
180         * src/alertpanel.h (AlertValue): added G_ALERT_VALUE_MASK,
181         G_ALERTDISABLE.
182
183         * src/alertpanel.c (alertpanel_create): new argument can_disable,
184         all existing callers changed to pass FALSE; create a check button
185         to disable the message.
186         (alertpanel_message_with_disable): new function.
187         (alertpanel_show): mask value with G_ALERT_VALUE_MASK.
188         (alertpanel_button_toggled): new function.
189         (alertpanel_button_clicked, alertpanel_close): set value using
190         G_ALERT_VALUE_MASK.
191
192         * src/prefs_common.h (PrefsCommon): new field gpgme_warning.
193
194         * src/prefs_common.c (prefs_privacy_create): new check button
195         checkbtn_gpgme_warning.
196
197         * src/main.c (main): moved preferences reading before gpgme
198         initialization; check prefs_common.gpgme_warning before giving the
199         GnuPG warning and set it to FALSE if the user wants to disable the
200         warning.
201
202 2001-05-02 [hiroyuki]
203
204         * src/prefs_display_headers.c: modified the layout and some labels.
205
206 2001-05-02 [sergey]
207
208         * src/prefs_account.c (prefs_account_fix_size): new function.
209         (prefs_account_create): call prefs_account_fix_size(); use
210         gtk_widget_show instead of gtk_widget_show_all (fixes too large
211         size when the window is shown for the first time).
212         (prefs_account_basic_create): changed layout of serv_table; moved
213         localmbox_entry above smtpserv_entry (logically it replaces
214         POP3/IMAP server).
215         (prefs_account_protocol_activated): set sensitivity of
216         nntpauth_chkbtn according to the protocol (in addition to
217         hide/show); commented out gtk_table_set_row_spacing() calls.
218         (prefs_account_nntpauth_toggled): do nothing if nntpauth_chkbtn is
219         not sensitive (fixes a bug with disabled username/password boxes
220         when editing POP3 account after NNTP with authentication).
221
222 2001-05-02 [hoa]
223
224         * src/account.c
225         * src/inc.c
226         * src/prefs_account.[ch]
227         * src/send.c
228                 removed local account without SMTP server
229                 added option to use mail command instead of a connexion
230                 to SMTP server when a local account is used
231         * src/prefs_headers.c
232                 fixed a bug
233         * src/news.c
234                 fixed a bug when connexion immediately closed
235
236 2001-05-01 [alfons]
237
238         0.4.66claws1
239         
240         * sync with 0.4.65
241
242 2001-05-01 [sergey]
243
244         * src/prefs_account.c (Basic, prefs_account_basic_create): new
245         widget nntpauth_chkbtn.
246         (prefs_account_protocol_activated): handle nntpauth_chkbtn
247         visibility.
248         (prefs_account_nntpauth_toggled): new function.
249
250         * src/news.c (news_session_new_for_folder): use NNTP
251         authentication only if ac->use_nntp_auth is set.
252
253 2001-05-01 [hoa]
254
255         * src/Makefile.am changed headers.[ch] in customheader.[ch]
256         * src/prefs_display_headers.c changed the UI
257         * src/prefs_headers.c changed account_name to account_id
258         * src/compose.c using customheader.h
259
260 2001-05-01 [hiroyuki]
261
262         * src/esmtp.c
263           src/news.c
264           src/nntp.c: changed sock_read() to sock_gets(), they've been left
265           unsynched.
266
267 2001-05-01 [hoa]
268
269         * src/Makefile.am added prefs_display_headers.[ch] headers_display.[ch]
270         * src/defs.h added HEADERS_DISPLAY_RC : name of the config file
271                 for displaying of headers
272         * src/grouplist_dialog.[ch] minor changes to remove warnings
273         * src/prefs_display_headers.[ch] dialog to choose the
274         headers to display in the mail viewer.
275         * src/headers.h correction of #define
276         * src/headers_display.[ch] configuration for displaying of headers.
277         * src/main.c read config of displaying of headers
278         * src/prefs_common.c add a button to access the config dialog
279                 for displaying of headers
280         * src/prefs_display_headers.[ch] dialog for configuration for
281                 displaying of the headers.
282         * src/prefs_headers.c cleaning of code
283         * src/procheader.c comments added to code
284         * src/textview.c changes to reorder the headers depending
285                 on the config for displaying of headers
286
287 2001-04-30 [alfons]
288
289         0.4.65claws7
290
291         * sync with 0.4.65cvs12
292
293         NOTE: nntp.c and news.c in claws and cvs branch differ significantly!
294
295 2001-04-30 [sergey]
296
297         * src/nntp.h (NNTPSockInfo): new field auth_failed.
298
299         * src/nntp.c (nntp_mode): return NN_AUTHREQ if sock->auth_failed
300         is set to force reconnection after authentication failure.
301         (nntp_gen_command): set sock->auth_failed on authentication
302         failure, or if sock->userid and sock->passwd are not set.
303
304         * src/news.c (news_session_new_for_folder): set userid=NULL if
305         password dialog is cancelled.
306
307 2001-04-30 [sergey]
308
309         * src/nntp.h (NNTPSockInfo): new type.
310
311         * src/nntp.c: all functions updated to use NNTPSockInfo instead of
312         SockInfo.
313         (nntp_open_auth, nntp_close): new functions.
314         (nntp_gen_command): new function to handle authentication; all
315         NNTP command functions updated to use it.
316         (nntp_authinfo_user, nntp_authinfo_pass): deleted.
317         (nntp_list): removed old useless code.
318
319         * src/news.h (NNTPSession): new field nntp_sock.
320
321         * src/news.c: all functions updated to use NNTPSockInfo instead of
322         SockInfo.
323         (news_session_new): new arguments (userid, passwd); made static;
324         use nntp_open_auth() if needed.
325         (news_session_destroy): use nntp_close() instead of sock_close().
326         (news_query_password): changed arguments.
327         (news_session_new_for_folder): new function.
328         (news_session_get): use news_session_new_for_folder().
329         (news_authenticate): deleted.
330         (news_get_uncached_articles): removed old authentication code.
331
332 2001-04-30 [sergey]
333
334         * src/news.c: reverted my previous changes (need to do NNTP
335         authentication in a cleaner way).
336         
337 2001-04-29 [sergey]
338
339         * src/news.c (news_nntp_group, news_nntp_list, news_nntp_xover,
340         news_nntp_post, news_nntp_mode): new functions (wrappers with
341         authentication support).
342         (news_get_article_cmd, news_get_article, news_get_header): new
343         argument "folder"; all callers changed.
344         (news_get_article_cmd): added authentication support.
345         (news_session_get): use news_nntp_mode() instead of nntp_mode().
346         (news_post): use news_nntp_post() instead of nntp_post().
347         (news_get_uncached_articles): use news_nntp_group() instead of
348         nntp_group() and news_nntp_xover() instead of nntp_xover();
349         removed old authentication code.
350         (news_get_group_list): use news_nntp_list() instead of nntp_list().
351
352         * src/nntp.c (nntp_list): return real error code instead of
353         hardcoded NN_ERROR.
354
355 2001-04-29 [sergey]
356
357         * configure.in: fixed wint_t typedef detection again
358
359 2001-04-28 [hoa]
360
361         * src/prefs_account.[ch], added A_LOCAL_CMD
362                 (send mail with mail command)
363         * src/send.c added function send_message_with_command()
364         * src/inc.c made a more secure get_spool() function with
365                 mktemp() but maybe mkstemp() or something more
366                 secure can be used.
367
368 2001-04-28 [alfons]
369
370         * src/textview.c, colorization of email addresses in headers
371
372         0.4.65claws6
373
374         * bug sync with sylpheed
375         * prefs_common.c: created date format ui for darko
376         * sync with 0.4.65cvs11
377         * configure.in: corrected to have the new gpg checks
378
379 2001-04-27 [alfons]
380
381         * completed sync with 0.4.65cvs10
382         * minor debug things added to gtkstext.c
383
384 2001-04-27 [darko]
385
386         * configure.in: remove check for availability of
387           strftime() as advised by Hiroyuki
388         * src/prefs_common.[ch], src/procheader.c:
389           synch strftime() code with Hiroyki's main branch
390
391 2001-04-26 [sergey]
392
393         * src/news.c: news_query_password(), news_authenticate(): new
394           functions.
395           news_get_uncached_articles(): added NNTP authentication
396           handling.
397         * src/nntp.[ch]: nntp_authinfo_user(), nntp_authinfo_pass():
398           new functions.
399         * src/prefs_account.c: prefs_account_protocol_activated():
400           enable userid and password fields for NNTP.
401
402 2001-04-26
403
404         * configure.in: check for availability of strftime()
405           [darko]
406         * src/prefs_common.[ch], src/procheader.c: use
407           strftime() for displaying date in summary pane if it
408           is available
409
410 2001-04-25
411
412         * more .cvsignore cleanups [alfons]
413
414 2001-04-25
415
416         * ac/sv-check-type.m4: new autoconf macro.
417         * configure.in: fixed wint_t typedef detection (did not work
418           with gcc-2.96).
419
420 2001-04-25
421
422         * acconfig.h: added USE_GTKGDK_XIM definition for autoheader.
423           [hiroyuki]
424
425 2001-04-24
426         * modified gtkstext.c : buggy cursor navigation fixed, 
427           and font descent also taken in account when drawing
428           cursor. [alfons]
429
430 2001-04-24 [hoa]
431         * added comments in src/news.c src/nntp.c
432         * added src/prefs_headers.[ch]
433         * added src/headers.[ch]
434         * modified compose.c to activate custom headers
435                 added function is_in_custom_headers
436         * modified prefs_account.[ch]
437                 added function prefs_account_customhdr_edit
438         * modified src/defs.h :
439                 added HEADERS_RC : name of the config file
440                 for the custom headers
441
442 2001-04-24
443
444     0.4.65claws5
445
446         * configure.in
447           src/gtkstext.[ch]
448           src/compose.c
449           src/Makefile.am
450           
451           added gtkstext with configure.in patch by Hiroyuki which
452           should fix the XIM detection [alfons]
453
454         * more clean up of cvs [alfons]
455
456                  * removed all Makefile.in files to attic.
457
458                  * updated all .cvsignores to really ignore things that could
459                    be unintentionally committed by a recursive commit.
460
461 2001-04-23 [hoa]
462         * added src/grouplist_dialog.[ch]
463         * changed src/folderview.c to call grouplist_dialog instead
464                 of inputdialog
465         * src/news.c :
466                 added functions news_reset_group_list
467                 and news_get_group_list
468         * src/nntp.c :
469                 added function nntp_list
470         * src/defs.h :
471                 added GROUPLIST_FILE : name of the newsgroup list cache file
472
473 2001-04-21
474
475         * added option to warn about queued messages on exit [sergey]:
476
477           * src/compose.c: compose_queue(): call folder_item_scan()
478             and folderview_update_item() after queueing.
479           * src/folderview.c: folderview_update_node(): draw the queue
480             folder in bold font if there are queued messages.
481           * src/mainwindow.c: queued_messages(): new function.
482             app_exit_cb(): display warning if there are queued messages
483             if warn_queued_on_exit is set.
484           * prefs_common.[ch]: add warn_queued_on_exit option.
485
486         * enhanced GnuPG key selection support [sergey]:
487
488           * src/select-keys.c: updated to newer version from Win32
489             branch with support for selecting arbitrary keys.
490           * src/prefs_account.c: added the Privacy tab to the account
491             options window.
492             prefs_account_privacy_create(),
493             prefs_account_sign_key_set_data_from_radiobtn(),
494             prefs_account_sign_key_set_radiobtn(): new functions.
495           * src/prefs_account.h: new preferences sign_key_type, sign_key_id.
496           * src/rfc2015.c: set_signers(): new function.
497             pgp_sign(): add the account parameter, call set_signers().
498             rfc2015_sign(): add the account parameter, pass it to pgp_sign().
499           * src/rfc2015.h: rfc2015_sign(): updated prototype.
500           * src/compose.c: pass the current account to rfc2015_sign().
501
502         * tag name claws added to prevent confusion with main branch [alfons]
503
504         * Sync with sylpheed-0.4.65cvs4 and made it compile. [sergey]
505
506         * autogen.sh: Added "--enable-maintainer-mode". [sergey]
507
508         * sync with recent sylpheed cvs. Untested though. [alfons]
509