claws-mail/src/prefs_common.c

1536 lines
54 KiB
C
Raw Normal View History

2001-04-19 14:21:46 +02:00
/*
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
2007-01-03 [paul] 2.6.1cvs96 * src/account.c * src/account.h * src/action.c * src/action.h * src/adbookbase.h * src/addr_compl.c * src/addr_compl.h * src/addrbook.c * src/addrcache.c * src/addrcache.h * src/addrcindex.c * src/addrcindex.h * src/addrclip.c * src/addrclip.h * src/addrdefs.h * src/addressadd.c * src/addressadd.h * src/addressbook.c * src/addressbook.h * src/addressbook_foldersel.c * src/addressbook_foldersel.h * src/addrgather.c * src/addrgather.h * src/addrharvest.c * src/addrharvest.h * src/addrindex.c * src/addrindex.h * src/addritem.c * src/addritem.h * src/addrquery.c * src/addrquery.h * src/addrselect.c * src/addrselect.h * src/alertpanel.c * src/alertpanel.h * src/browseldap.c * src/browseldap.h * src/codeconv.c * src/codeconv.h * src/compose.c * src/compose.h * src/customheader.c * src/customheader.h * src/displayheader.c * src/displayheader.h * src/editaddress.c * src/editaddress.h * src/editbook.c * src/editbook.h * src/editgroup.c * src/editgroup.h * src/editjpilot.c * src/editjpilot.h * src/editldap.c * src/editldap.h * src/editldap_basedn.c * src/editldap_basedn.h * src/editvcard.c * src/editvcard.h * src/exphtmldlg.c * src/exphtmldlg.h * src/expldifdlg.c * src/expldifdlg.h * src/export.c * src/export.h * src/exporthtml.c * src/exporthtml.h * src/exportldif.c * src/exportldif.h * src/filtering.c * src/filtering.h * src/folder.c * src/folder.h * src/folder_item_prefs.c * src/folder_item_prefs.h * src/foldersel.c * src/foldersel.h * src/folderutils.c * src/folderutils.h * src/folderview.c * src/folderview.h * src/grouplistdialog.c * src/grouplistdialog.h * src/headerview.c * src/html.c * src/html.h * src/image_viewer.c * src/image_viewer.h * src/imap.c * src/imap.h * src/imap_gtk.c * src/imap_gtk.h * src/import.c * src/import.h * src/importldif.c * src/importldif.h * src/importmutt.c * src/importmutt.h * src/importpine.c * src/importpine.h * src/inc.c * src/inc.h * src/jpilot.c * src/jpilot.h * src/ldapctrl.c * src/ldapctrl.h * src/ldaplocate.c * src/ldaplocate.h * src/ldapquery.c * src/ldapquery.h * src/ldapserver.c * src/ldapserver.h * src/ldaputil.c * src/ldaputil.h * src/ldif.c * src/ldif.h * src/main.c * src/main.h * src/mainwindow.c * src/mainwindow.h * src/manual.c * src/manual.h * src/mbox.c * src/message_search.c * src/message_search.h * src/messageview.c * src/messageview.h * src/mh.c * src/mh.h * src/mh_gtk.c * src/mh_gtk.h * src/mimeview.c * src/mimeview.h * src/msgcache.c * src/msgcache.h * src/mutt.c * src/mutt.h * src/news.c * src/news.h * src/news_gtk.c * src/news_gtk.h * src/partial_download.c * src/partial_download.h * src/pine.c * src/pine.h * src/pop.c * src/pop.h * src/prefs_account.c * src/prefs_account.h * src/prefs_actions.c * src/prefs_actions.h * src/prefs_common.c * src/prefs_common.h * src/prefs_compose_writing.c * src/prefs_compose_writing.h * src/prefs_customheader.c * src/prefs_customheader.h * src/prefs_display_header.c * src/prefs_display_header.h * src/prefs_filtering.c * src/prefs_filtering.h * src/prefs_filtering_action.c * src/prefs_filtering_action.h * src/prefs_folder_column.c * src/prefs_folder_column.h * src/prefs_folder_item.c * src/prefs_folder_item.h * src/prefs_fonts.c * src/prefs_fonts.h * src/prefs_gtk.c * src/prefs_gtk.h * src/prefs_image_viewer.c * src/prefs_image_viewer.h * src/prefs_matcher.c * src/prefs_matcher.h * src/prefs_message.c * src/prefs_msg_colors.c * src/prefs_msg_colors.h * src/prefs_other.c * src/prefs_quote.c * src/prefs_receive.c * src/prefs_send.c * src/prefs_spelling.c * src/prefs_spelling.h * src/prefs_summaries.c * src/prefs_summaries.h * src/prefs_summary_column.c * src/prefs_summary_column.h * src/prefs_template.c * src/prefs_template.h * src/prefs_themes.c * src/prefs_themes.h * src/prefs_toolbar.c * src/prefs_toolbar.h * src/prefs_wrapping.c * src/prefs_wrapping.h * src/privacy.c * src/privacy.h * src/procheader.c * src/procheader.h * src/procmime.c * src/procmime.h * src/procmsg.c * src/procmsg.h * src/quote_fmt.c * src/quote_fmt_parse.y * src/recv.c * src/recv.h * src/remotefolder.c * src/remotefolder.h * src/send_message.c * src/send_message.h * src/setup.c * src/setup.h * src/sourcewindow.c * src/sourcewindow.h * src/ssl_manager.c * src/ssl_manager.h * src/statusbar.c * src/statusbar.h * src/stock_pixmap.c * src/stock_pixmap.h * src/summary_search.c * src/summary_search.h * src/summaryview.c * src/summaryview.h * src/textview.c * src/textview.h * src/toolbar.c * src/toolbar.h * src/undo.c * src/undo.h * src/unmime.c * src/unmime.h * src/vcard.c * src/vcard.h * src/wizard.c * src/wizard.h * src/common/base64.c * src/common/base64.h * src/common/defs.h * src/common/hooks.c * src/common/hooks.h * src/common/log.c * src/common/log.h * src/common/mgutils.c * src/common/mgutils.h * src/common/nntp.c * src/common/nntp.h * src/common/passcrypt.c * src/common/passcrypt.h.in * src/common/plugin.c * src/common/plugin.h * src/common/prefs.c * src/common/prefs.h * src/common/progressindicator.c * src/common/progressindicator.h * src/common/quoted-printable.c * src/common/quoted-printable.h * src/common/session.c * src/common/session.h * src/common/smtp.c * src/common/smtp.h * src/common/socket.c * src/common/socket.h * src/common/ssl.c * src/common/ssl.h * src/common/ssl_certificate.c * src/common/ssl_certificate.h * src/common/stringtable.c * src/common/stringtable.h * src/common/template.c * src/common/template.h * src/common/timing.h * src/common/utils.c * src/common/utils.h * src/common/version.h.in * src/common/xml.c * src/common/xml.h * src/common/xmlprops.c * src/common/xmlprops.h * src/gtk/about.c * src/gtk/colorlabel.c * src/gtk/colorsel.c * src/gtk/colorsel.h * src/gtk/combobox.c * src/gtk/combobox.h * src/gtk/description_window.c * src/gtk/description_window.h * src/gtk/filesel.c * src/gtk/filesel.h * src/gtk/foldersort.c * src/gtk/foldersort.h * src/gtk/gtksctree.c * src/gtk/gtkutils.c * src/gtk/gtkutils.h * src/gtk/inputdialog.c * src/gtk/inputdialog.h * src/gtk/logwindow.c * src/gtk/logwindow.h * src/gtk/manage_window.c * src/gtk/manage_window.h * src/gtk/menu.c * src/gtk/menu.h * src/gtk/pluginwindow.c * src/gtk/pluginwindow.h * src/gtk/prefswindow.c * src/gtk/prefswindow.h * src/gtk/progressdialog.c * src/gtk/progressdialog.h * src/gtk/sslcertwindow.c * src/gtk/sslcertwindow.h * src/plugins/bogofilter/bogofilter.c * src/plugins/bogofilter/bogofilter.h * src/plugins/bogofilter/bogofilter_gtk.c * src/plugins/clamav/clamav_plugin.c * src/plugins/clamav/clamav_plugin.h * src/plugins/clamav/clamav_plugin_gtk.c * src/plugins/demo/demo.c * src/plugins/dillo_viewer/dillo_prefs.c * src/plugins/dillo_viewer/dillo_prefs.h * src/plugins/dillo_viewer/dillo_viewer.c * src/plugins/pgpcore/passphrase.c * src/plugins/pgpcore/passphrase.h * src/plugins/pgpcore/pgp_viewer.c * src/plugins/pgpcore/pgp_viewer.h * src/plugins/pgpcore/plugin.c * src/plugins/pgpcore/select-keys.c * src/plugins/pgpcore/select-keys.h * src/plugins/pgpcore/sgpgme.c * src/plugins/pgpcore/sgpgme.h * src/plugins/pgpinline/pgpinline.c * src/plugins/pgpinline/pgpinline.h * src/plugins/pgpinline/plugin.c * src/plugins/pgpmime/pgpmime.c * src/plugins/pgpmime/pgpmime.h * src/plugins/pgpmime/plugin.c * src/plugins/spamassassin/spamassassin.c * src/plugins/spamassassin/spamassassin.h * src/plugins/spamassassin/spamassassin_gtk.c * src/plugins/trayicon/trayicon.c it's 2007, update the year in the copyright headers
2007-01-03 06:42:43 +01:00
* Copyright (C) 1999-2007 Hiroyuki Yamamoto and the Claws Mail team
2001-04-19 14:21:46 +02:00
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
2007-07-11 [colin] 2.10.0cvs16 * COPYING * README * autogen.sh * manual/claws-mail-manual.xml * manual/gpl.xml * manual/es/claws-mail-manual.xml * manual/es/gpl.xml * manual/fr/claws-mail-manual.xml * manual/fr/gpl.xml * manual/pl/gpl.xml * src/account.c * src/account.h * src/action.c * src/action.h * src/adbookbase.h * src/addr_compl.c * src/addr_compl.h * src/addrbook.c * src/addrbook.h * src/addrcache.c * src/addrcache.h * src/addrcindex.c * src/addrcindex.h * src/addrclip.c * src/addrclip.h * src/addrdefs.h * src/addressadd.c * src/addressadd.h * src/addressbook.c * src/addressbook.h * src/addressbook_foldersel.c * src/addressbook_foldersel.h * src/addressitem.h * src/addrgather.c * src/addrgather.h * src/addrharvest.c * src/addrharvest.h * src/addrindex.c * src/addrindex.h * src/addritem.c * src/addritem.h * src/addrquery.c * src/addrquery.h * src/addrselect.c * src/addrselect.h * src/alertpanel.c * src/alertpanel.h * src/browseldap.c * src/browseldap.h * src/codeconv.c * src/codeconv.h * src/compose.c * src/compose.h * src/crash.c * src/crash.h * src/customheader.c * src/customheader.h * src/displayheader.c * src/displayheader.h * src/editaddress.c * src/editaddress.h * src/editaddress_other_attributes_ldap.c * src/editaddress_other_attributes_ldap.h * src/editbook.c * src/editbook.h * src/editgroup.c * src/editgroup.h * src/editjpilot.c * src/editjpilot.h * src/editldap.c * src/editldap.h * src/editldap_basedn.c * src/editldap_basedn.h * src/edittags.c * src/edittags.h * src/editvcard.c * src/editvcard.h * src/enriched.c * src/enriched.h * src/exphtmldlg.c * src/exphtmldlg.h * src/expldifdlg.c * src/expldifdlg.h * src/export.c * src/export.h * src/exporthtml.c * src/exporthtml.h * src/exportldif.c * src/exportldif.h * src/filtering.c * src/filtering.h * src/folder.c * src/folder.h * src/folder_item_prefs.c * src/folder_item_prefs.h * src/foldersel.c * src/foldersel.h * src/folderutils.c * src/folderutils.h * src/folderview.c * src/folderview.h * src/gedit-print.c * src/gedit-print.h * src/grouplistdialog.c * src/grouplistdialog.h * src/headerview.c * src/headerview.h * src/html.c * src/html.h * src/image_viewer.c * src/image_viewer.h * src/imap.c * src/imap.h * src/imap_gtk.c * src/imap_gtk.h * src/import.c * src/import.h * src/importldif.c * src/importldif.h * src/importmutt.c * src/importmutt.h * src/importpine.c * src/importpine.h * src/inc.c * src/inc.h * src/jpilot.c * src/jpilot.h * src/ldapctrl.c * src/ldapctrl.h * src/ldaplocate.c * src/ldaplocate.h * src/ldapquery.c * src/ldapquery.h * src/ldapserver.c * src/ldapserver.h * src/ldapupdate.c * src/ldapupdate.h * src/ldaputil.c * src/ldaputil.h * src/ldif.c * src/ldif.h * src/localfolder.c * src/localfolder.h * src/main.c * src/main.h * src/mainwindow.c * src/mainwindow.h * src/manual.c * src/manual.h * src/matcher.c * src/matcher.h * src/matcher_parser.h * src/matcher_parser_lex.l * src/matcher_parser_parse.y * src/mbox.c * src/mbox.h * src/message_search.c * src/message_search.h * src/messageview.c * src/messageview.h * src/mh.c * src/mh.h * src/mh_gtk.c * src/mh_gtk.h * src/mimeview.c * src/mimeview.h * src/msgcache.c * src/msgcache.h * src/mutt.c * src/mutt.h * src/news.c * src/news.h * src/news_gtk.c * src/news_gtk.h * src/noticeview.c * src/noticeview.h * src/partial_download.c * src/partial_download.h * src/pine.c * src/pine.h * src/pop.c * src/pop.h * src/prefs_account.c * src/prefs_account.h * src/prefs_actions.c * src/prefs_actions.h * src/prefs_common.c * src/prefs_common.h * src/prefs_compose_writing.c * src/prefs_compose_writing.h * src/prefs_customheader.c * src/prefs_customheader.h * src/prefs_display_header.c * src/prefs_display_header.h * src/prefs_ext_prog.c * src/prefs_ext_prog.h * src/prefs_filtering.c * src/prefs_filtering.h * src/prefs_filtering_action.c * src/prefs_filtering_action.h * src/prefs_folder_column.c * src/prefs_folder_column.h * src/prefs_folder_item.c * src/prefs_folder_item.h * src/prefs_fonts.c * src/prefs_fonts.h * src/prefs_gtk.c * src/prefs_gtk.h * src/prefs_image_viewer.c * src/prefs_image_viewer.h * src/prefs_logging.c * src/prefs_logging.h * src/prefs_matcher.c * src/prefs_matcher.h * src/prefs_message.c * src/prefs_message.h * src/prefs_msg_colors.c * src/prefs_msg_colors.h * src/prefs_other.c * src/prefs_other.h * src/prefs_quote.c * src/prefs_quote.h * src/prefs_receive.c * src/prefs_receive.h * src/prefs_send.c * src/prefs_send.h * src/prefs_spelling.c * src/prefs_spelling.h * src/prefs_summaries.c * src/prefs_summaries.h * src/prefs_summary_column.c * src/prefs_summary_column.h * src/prefs_summary_open.c * src/prefs_summary_open.h * src/prefs_template.c * src/prefs_template.h * src/prefs_themes.c * src/prefs_themes.h * src/prefs_toolbar.c * src/prefs_toolbar.h * src/prefs_wrapping.c * src/prefs_wrapping.h * src/privacy.c * src/privacy.h * src/procheader.c * src/procheader.h * src/procmime.c * src/procmime.h * src/procmsg.c * src/procmsg.h * src/quote_fmt.c * src/quote_fmt_lex.l * src/quote_fmt_parse.y * src/recv.c * src/recv.h * src/remotefolder.c * src/remotefolder.h * src/send_message.c * src/send_message.h * src/setup.c * src/setup.h * src/simple-gettext.c * src/sourcewindow.c * src/sourcewindow.h * src/ssl_manager.c * src/ssl_manager.h * src/statusbar.c * src/statusbar.h * src/stock_pixmap.c * src/stock_pixmap.h * src/summary_search.c * src/summary_search.h * src/summaryview.c * src/summaryview.h * src/textview.c * src/textview.h * src/toolbar.c * src/toolbar.h * src/undo.c * src/undo.h * src/unmime.c * src/unmime.h * src/uri_opener.c * src/uri_opener.h * src/vcard.c * src/vcard.h * src/wizard.c * src/wizard.h * src/common/base64.c * src/common/base64.h * src/common/claws.c * src/common/claws.h * src/common/defs.h * src/common/fnmatch.c * src/common/fnmatch.h * src/common/fnmatch_loop.c * src/common/hooks.c * src/common/hooks.h * src/common/log.c * src/common/log.h * src/common/md5.c * src/common/md5.h * src/common/mgutils.c * src/common/mgutils.h * src/common/nntp.c * src/common/nntp.h * src/common/passcrypt.c * src/common/passcrypt.h.in * src/common/plugin.c * src/common/plugin.h * src/common/prefs.c * src/common/prefs.h * src/common/progressindicator.c * src/common/progressindicator.h * src/common/quoted-printable.c * src/common/quoted-printable.h * src/common/session.c * src/common/session.h * src/common/smtp.c * src/common/smtp.h * src/common/socket.c * src/common/socket.h * src/common/ssl.c * src/common/ssl.h * src/common/ssl_certificate.c * src/common/ssl_certificate.h * src/common/string_match.c * src/common/string_match.h * src/common/stringtable.c * src/common/stringtable.h * src/common/tags.c * src/common/tags.h * src/common/template.c * src/common/template.h * src/common/timing.h * src/common/utils.c * src/common/utils.h * src/common/uuencode.c * src/common/uuencode.h * src/common/version.h.in * src/common/w32_dirent.c * src/common/w32_reg.c * src/common/w32_signal.c * src/common/w32_stat.c * src/common/w32_stdlib.c * src/common/w32_string.c * src/common/w32_time.c * src/common/w32_unistd.c * src/common/w32_wait.c * src/common/w32lib.h * src/common/xml.c * src/common/xml.h * src/common/xmlprops.c * src/common/xmlprops.h * src/etpan/etpan-errors.h * src/etpan/etpan-thread-manager-types.h * src/etpan/etpan-thread-manager.c * src/etpan/etpan-thread-manager.h * src/etpan/imap-thread.c * src/etpan/imap-thread.h * src/gtk/about.c * src/gtk/about.h * src/gtk/colorlabel.c * src/gtk/colorlabel.h * src/gtk/colorsel.c * src/gtk/colorsel.h * src/gtk/combobox.c * src/gtk/combobox.h * src/gtk/description_window.c * src/gtk/description_window.h * src/gtk/filesel.c * src/gtk/filesel.h * src/gtk/foldersort.c * src/gtk/foldersort.h * src/gtk/gtkaspell.c * src/gtk/gtkaspell.h * src/gtk/gtksctree.c * src/gtk/gtkshruler.c * src/gtk/gtkshruler.h * src/gtk/gtksourceprintjob.c * src/gtk/gtksourceprintjob.h * src/gtk/gtkutils.c * src/gtk/gtkutils.h * src/gtk/gtkvscrollbutton.c * src/gtk/gtkvscrollbutton.h * src/gtk/icon_legend.c * src/gtk/icon_legend.h * src/gtk/inputdialog.c * src/gtk/inputdialog.h * src/gtk/logwindow.c * src/gtk/logwindow.h * src/gtk/manage_window.c * src/gtk/manage_window.h * src/gtk/menu.c * src/gtk/menu.h * src/gtk/pluginwindow.c * src/gtk/pluginwindow.h * src/gtk/prefswindow.c * src/gtk/prefswindow.h * src/gtk/progressdialog.c * src/gtk/progressdialog.h * src/gtk/quicksearch.c * src/gtk/quicksearch.h * src/gtk/sslcertwindow.c * src/gtk/sslcertwindow.h * src/plugins/bogofilter/bogofilter.c * src/plugins/bogofilter/bogofilter.h * src/plugins/bogofilter/bogofilter_gtk.c * src/plugins/clamav/clamav_plugin.c * src/plugins/clamav/clamav_plugin.h * src/plugins/clamav/clamav_plugin_gtk.c * src/plugins/demo/demo.c * src/plugins/dillo_viewer/dillo_prefs.c * src/plugins/dillo_viewer/dillo_prefs.h * src/plugins/dillo_viewer/dillo_viewer.c * src/plugins/pgpcore/passphrase.c * src/plugins/pgpcore/passphrase.h * src/plugins/pgpcore/pgp_viewer.c * src/plugins/pgpcore/pgp_viewer.h * src/plugins/pgpcore/plugin.c * src/plugins/pgpcore/prefs_gpg.c * src/plugins/pgpcore/prefs_gpg.h * src/plugins/pgpcore/select-keys.c * src/plugins/pgpcore/select-keys.h * src/plugins/pgpcore/sgpgme.c * src/plugins/pgpcore/sgpgme.h * src/plugins/pgpinline/pgpinline.c * src/plugins/pgpinline/pgpinline.h * src/plugins/pgpinline/plugin.c * src/plugins/pgpmime/pgpmime.c * src/plugins/pgpmime/pgpmime.h * src/plugins/pgpmime/plugin.c * src/plugins/spamassassin/spamassassin.c * src/plugins/spamassassin/spamassassin.h * src/plugins/spamassassin/spamassassin_gtk.c * src/plugins/trayicon/trayicon.c * src/plugins/trayicon/trayicon_prefs.c * src/plugins/trayicon/trayicon_prefs.h * src/plugins/trayicon/libeggtrayicon/eggtrayicon.c * src/plugins/trayicon/libeggtrayicon/eggtrayicon.h * src/plugins/trayicon/libeggtrayicon/gtk2-funcs.h * src/plugins/trayicon/libeggtrayicon/gtkplugxembed.c * src/plugins/trayicon/libeggtrayicon/gtkplugxembed.h * tools/OOo2claws-mail.pl * tools/README.sylprint * tools/acroread2claws-mail.pl * tools/claws-mail-compose-insert-files.pl * tools/convert_mbox.pl * tools/filter_conv.pl * tools/filter_conv_new.pl * tools/fix_date.sh * tools/freshmeat_search.pl * tools/google_search.pl * tools/kmail-mailbox2claws-mail.pl * tools/kmail2claws-mail.pl * tools/kmail2claws-mail_v2.pl * tools/mairix.sh * tools/make.themes.project * tools/multiwebsearch.pl * tools/nautilus2claws-mail.sh * tools/outlook2claws-mail.pl * tools/textviewer.sh * tools/thunderbird-filters-convertor.pl * tools/update-po * tools/uuooffice * tools/vcard2xml.py * tools/kdeservicemenu/claws-mail-kdeservicemenu.pl Upgrade to GPLv3 or later.
2007-07-11 18:38:12 +02:00
* the Free Software Foundation; either version 3 of the License, or
2001-04-19 14:21:46 +02:00
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
2007-07-11 [colin] 2.10.0cvs16 * COPYING * README * autogen.sh * manual/claws-mail-manual.xml * manual/gpl.xml * manual/es/claws-mail-manual.xml * manual/es/gpl.xml * manual/fr/claws-mail-manual.xml * manual/fr/gpl.xml * manual/pl/gpl.xml * src/account.c * src/account.h * src/action.c * src/action.h * src/adbookbase.h * src/addr_compl.c * src/addr_compl.h * src/addrbook.c * src/addrbook.h * src/addrcache.c * src/addrcache.h * src/addrcindex.c * src/addrcindex.h * src/addrclip.c * src/addrclip.h * src/addrdefs.h * src/addressadd.c * src/addressadd.h * src/addressbook.c * src/addressbook.h * src/addressbook_foldersel.c * src/addressbook_foldersel.h * src/addressitem.h * src/addrgather.c * src/addrgather.h * src/addrharvest.c * src/addrharvest.h * src/addrindex.c * src/addrindex.h * src/addritem.c * src/addritem.h * src/addrquery.c * src/addrquery.h * src/addrselect.c * src/addrselect.h * src/alertpanel.c * src/alertpanel.h * src/browseldap.c * src/browseldap.h * src/codeconv.c * src/codeconv.h * src/compose.c * src/compose.h * src/crash.c * src/crash.h * src/customheader.c * src/customheader.h * src/displayheader.c * src/displayheader.h * src/editaddress.c * src/editaddress.h * src/editaddress_other_attributes_ldap.c * src/editaddress_other_attributes_ldap.h * src/editbook.c * src/editbook.h * src/editgroup.c * src/editgroup.h * src/editjpilot.c * src/editjpilot.h * src/editldap.c * src/editldap.h * src/editldap_basedn.c * src/editldap_basedn.h * src/edittags.c * src/edittags.h * src/editvcard.c * src/editvcard.h * src/enriched.c * src/enriched.h * src/exphtmldlg.c * src/exphtmldlg.h * src/expldifdlg.c * src/expldifdlg.h * src/export.c * src/export.h * src/exporthtml.c * src/exporthtml.h * src/exportldif.c * src/exportldif.h * src/filtering.c * src/filtering.h * src/folder.c * src/folder.h * src/folder_item_prefs.c * src/folder_item_prefs.h * src/foldersel.c * src/foldersel.h * src/folderutils.c * src/folderutils.h * src/folderview.c * src/folderview.h * src/gedit-print.c * src/gedit-print.h * src/grouplistdialog.c * src/grouplistdialog.h * src/headerview.c * src/headerview.h * src/html.c * src/html.h * src/image_viewer.c * src/image_viewer.h * src/imap.c * src/imap.h * src/imap_gtk.c * src/imap_gtk.h * src/import.c * src/import.h * src/importldif.c * src/importldif.h * src/importmutt.c * src/importmutt.h * src/importpine.c * src/importpine.h * src/inc.c * src/inc.h * src/jpilot.c * src/jpilot.h * src/ldapctrl.c * src/ldapctrl.h * src/ldaplocate.c * src/ldaplocate.h * src/ldapquery.c * src/ldapquery.h * src/ldapserver.c * src/ldapserver.h * src/ldapupdate.c * src/ldapupdate.h * src/ldaputil.c * src/ldaputil.h * src/ldif.c * src/ldif.h * src/localfolder.c * src/localfolder.h * src/main.c * src/main.h * src/mainwindow.c * src/mainwindow.h * src/manual.c * src/manual.h * src/matcher.c * src/matcher.h * src/matcher_parser.h * src/matcher_parser_lex.l * src/matcher_parser_parse.y * src/mbox.c * src/mbox.h * src/message_search.c * src/message_search.h * src/messageview.c * src/messageview.h * src/mh.c * src/mh.h * src/mh_gtk.c * src/mh_gtk.h * src/mimeview.c * src/mimeview.h * src/msgcache.c * src/msgcache.h * src/mutt.c * src/mutt.h * src/news.c * src/news.h * src/news_gtk.c * src/news_gtk.h * src/noticeview.c * src/noticeview.h * src/partial_download.c * src/partial_download.h * src/pine.c * src/pine.h * src/pop.c * src/pop.h * src/prefs_account.c * src/prefs_account.h * src/prefs_actions.c * src/prefs_actions.h * src/prefs_common.c * src/prefs_common.h * src/prefs_compose_writing.c * src/prefs_compose_writing.h * src/prefs_customheader.c * src/prefs_customheader.h * src/prefs_display_header.c * src/prefs_display_header.h * src/prefs_ext_prog.c * src/prefs_ext_prog.h * src/prefs_filtering.c * src/prefs_filtering.h * src/prefs_filtering_action.c * src/prefs_filtering_action.h * src/prefs_folder_column.c * src/prefs_folder_column.h * src/prefs_folder_item.c * src/prefs_folder_item.h * src/prefs_fonts.c * src/prefs_fonts.h * src/prefs_gtk.c * src/prefs_gtk.h * src/prefs_image_viewer.c * src/prefs_image_viewer.h * src/prefs_logging.c * src/prefs_logging.h * src/prefs_matcher.c * src/prefs_matcher.h * src/prefs_message.c * src/prefs_message.h * src/prefs_msg_colors.c * src/prefs_msg_colors.h * src/prefs_other.c * src/prefs_other.h * src/prefs_quote.c * src/prefs_quote.h * src/prefs_receive.c * src/prefs_receive.h * src/prefs_send.c * src/prefs_send.h * src/prefs_spelling.c * src/prefs_spelling.h * src/prefs_summaries.c * src/prefs_summaries.h * src/prefs_summary_column.c * src/prefs_summary_column.h * src/prefs_summary_open.c * src/prefs_summary_open.h * src/prefs_template.c * src/prefs_template.h * src/prefs_themes.c * src/prefs_themes.h * src/prefs_toolbar.c * src/prefs_toolbar.h * src/prefs_wrapping.c * src/prefs_wrapping.h * src/privacy.c * src/privacy.h * src/procheader.c * src/procheader.h * src/procmime.c * src/procmime.h * src/procmsg.c * src/procmsg.h * src/quote_fmt.c * src/quote_fmt_lex.l * src/quote_fmt_parse.y * src/recv.c * src/recv.h * src/remotefolder.c * src/remotefolder.h * src/send_message.c * src/send_message.h * src/setup.c * src/setup.h * src/simple-gettext.c * src/sourcewindow.c * src/sourcewindow.h * src/ssl_manager.c * src/ssl_manager.h * src/statusbar.c * src/statusbar.h * src/stock_pixmap.c * src/stock_pixmap.h * src/summary_search.c * src/summary_search.h * src/summaryview.c * src/summaryview.h * src/textview.c * src/textview.h * src/toolbar.c * src/toolbar.h * src/undo.c * src/undo.h * src/unmime.c * src/unmime.h * src/uri_opener.c * src/uri_opener.h * src/vcard.c * src/vcard.h * src/wizard.c * src/wizard.h * src/common/base64.c * src/common/base64.h * src/common/claws.c * src/common/claws.h * src/common/defs.h * src/common/fnmatch.c * src/common/fnmatch.h * src/common/fnmatch_loop.c * src/common/hooks.c * src/common/hooks.h * src/common/log.c * src/common/log.h * src/common/md5.c * src/common/md5.h * src/common/mgutils.c * src/common/mgutils.h * src/common/nntp.c * src/common/nntp.h * src/common/passcrypt.c * src/common/passcrypt.h.in * src/common/plugin.c * src/common/plugin.h * src/common/prefs.c * src/common/prefs.h * src/common/progressindicator.c * src/common/progressindicator.h * src/common/quoted-printable.c * src/common/quoted-printable.h * src/common/session.c * src/common/session.h * src/common/smtp.c * src/common/smtp.h * src/common/socket.c * src/common/socket.h * src/common/ssl.c * src/common/ssl.h * src/common/ssl_certificate.c * src/common/ssl_certificate.h * src/common/string_match.c * src/common/string_match.h * src/common/stringtable.c * src/common/stringtable.h * src/common/tags.c * src/common/tags.h * src/common/template.c * src/common/template.h * src/common/timing.h * src/common/utils.c * src/common/utils.h * src/common/uuencode.c * src/common/uuencode.h * src/common/version.h.in * src/common/w32_dirent.c * src/common/w32_reg.c * src/common/w32_signal.c * src/common/w32_stat.c * src/common/w32_stdlib.c * src/common/w32_string.c * src/common/w32_time.c * src/common/w32_unistd.c * src/common/w32_wait.c * src/common/w32lib.h * src/common/xml.c * src/common/xml.h * src/common/xmlprops.c * src/common/xmlprops.h * src/etpan/etpan-errors.h * src/etpan/etpan-thread-manager-types.h * src/etpan/etpan-thread-manager.c * src/etpan/etpan-thread-manager.h * src/etpan/imap-thread.c * src/etpan/imap-thread.h * src/gtk/about.c * src/gtk/about.h * src/gtk/colorlabel.c * src/gtk/colorlabel.h * src/gtk/colorsel.c * src/gtk/colorsel.h * src/gtk/combobox.c * src/gtk/combobox.h * src/gtk/description_window.c * src/gtk/description_window.h * src/gtk/filesel.c * src/gtk/filesel.h * src/gtk/foldersort.c * src/gtk/foldersort.h * src/gtk/gtkaspell.c * src/gtk/gtkaspell.h * src/gtk/gtksctree.c * src/gtk/gtkshruler.c * src/gtk/gtkshruler.h * src/gtk/gtksourceprintjob.c * src/gtk/gtksourceprintjob.h * src/gtk/gtkutils.c * src/gtk/gtkutils.h * src/gtk/gtkvscrollbutton.c * src/gtk/gtkvscrollbutton.h * src/gtk/icon_legend.c * src/gtk/icon_legend.h * src/gtk/inputdialog.c * src/gtk/inputdialog.h * src/gtk/logwindow.c * src/gtk/logwindow.h * src/gtk/manage_window.c * src/gtk/manage_window.h * src/gtk/menu.c * src/gtk/menu.h * src/gtk/pluginwindow.c * src/gtk/pluginwindow.h * src/gtk/prefswindow.c * src/gtk/prefswindow.h * src/gtk/progressdialog.c * src/gtk/progressdialog.h * src/gtk/quicksearch.c * src/gtk/quicksearch.h * src/gtk/sslcertwindow.c * src/gtk/sslcertwindow.h * src/plugins/bogofilter/bogofilter.c * src/plugins/bogofilter/bogofilter.h * src/plugins/bogofilter/bogofilter_gtk.c * src/plugins/clamav/clamav_plugin.c * src/plugins/clamav/clamav_plugin.h * src/plugins/clamav/clamav_plugin_gtk.c * src/plugins/demo/demo.c * src/plugins/dillo_viewer/dillo_prefs.c * src/plugins/dillo_viewer/dillo_prefs.h * src/plugins/dillo_viewer/dillo_viewer.c * src/plugins/pgpcore/passphrase.c * src/plugins/pgpcore/passphrase.h * src/plugins/pgpcore/pgp_viewer.c * src/plugins/pgpcore/pgp_viewer.h * src/plugins/pgpcore/plugin.c * src/plugins/pgpcore/prefs_gpg.c * src/plugins/pgpcore/prefs_gpg.h * src/plugins/pgpcore/select-keys.c * src/plugins/pgpcore/select-keys.h * src/plugins/pgpcore/sgpgme.c * src/plugins/pgpcore/sgpgme.h * src/plugins/pgpinline/pgpinline.c * src/plugins/pgpinline/pgpinline.h * src/plugins/pgpinline/plugin.c * src/plugins/pgpmime/pgpmime.c * src/plugins/pgpmime/pgpmime.h * src/plugins/pgpmime/plugin.c * src/plugins/spamassassin/spamassassin.c * src/plugins/spamassassin/spamassassin.h * src/plugins/spamassassin/spamassassin_gtk.c * src/plugins/trayicon/trayicon.c * src/plugins/trayicon/trayicon_prefs.c * src/plugins/trayicon/trayicon_prefs.h * src/plugins/trayicon/libeggtrayicon/eggtrayicon.c * src/plugins/trayicon/libeggtrayicon/eggtrayicon.h * src/plugins/trayicon/libeggtrayicon/gtk2-funcs.h * src/plugins/trayicon/libeggtrayicon/gtkplugxembed.c * src/plugins/trayicon/libeggtrayicon/gtkplugxembed.h * tools/OOo2claws-mail.pl * tools/README.sylprint * tools/acroread2claws-mail.pl * tools/claws-mail-compose-insert-files.pl * tools/convert_mbox.pl * tools/filter_conv.pl * tools/filter_conv_new.pl * tools/fix_date.sh * tools/freshmeat_search.pl * tools/google_search.pl * tools/kmail-mailbox2claws-mail.pl * tools/kmail2claws-mail.pl * tools/kmail2claws-mail_v2.pl * tools/mairix.sh * tools/make.themes.project * tools/multiwebsearch.pl * tools/nautilus2claws-mail.sh * tools/outlook2claws-mail.pl * tools/textviewer.sh * tools/thunderbird-filters-convertor.pl * tools/update-po * tools/uuooffice * tools/vcard2xml.py * tools/kdeservicemenu/claws-mail-kdeservicemenu.pl Upgrade to GPLv3 or later.
2007-07-11 18:38:12 +02:00
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
2001-04-19 14:21:46 +02:00
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "defs.h"
#include <glib.h>
2005-02-10 [paul] 1.0.1cvs3.2 * AUTHORS * Makefile.am * autogen.sh * configure.ac * config/mkinstalldirs * intl/.cvsignore * intl/ChangeLog * intl/VERSION * intl/bindtextdom.c * intl/config.charset * intl/dcgettext.c * intl/dcigettext.c * intl/dcngettext.c * intl/dgettext.c * intl/dngettext.c * intl/eval-plural.h * intl/explodename.c * intl/finddomain.c * intl/gettext.c * intl/gettextP.h * intl/gmo.h * intl/hash-string.h * intl/intl-compat.c * intl/l10nflist.c * intl/libgnuintl.h.in * intl/loadinfo.h * intl/loadmsgcat.c * intl/localcharset.c * intl/localcharset.h * intl/locale.alias * intl/localealias.c * intl/localename.c * intl/log.c * intl/ngettext.c * intl/os2compat.c * intl/os2compat.h * intl/osdep.c * intl/plural-exp.c * intl/plural-exp.h * intl/plural.c * intl/plural.y * intl/ref-add.sin * intl/ref-del.sin * intl/relocatable.c * intl/relocatable.h * intl/textdomain.c * m4/Makefile.am * po/Makefile.in.in * src/Makefile.am * src/account.c * src/action.c * src/addr_compl.c * src/addressadd.c * src/addressbook.c * src/addrgather.c * src/addrindex.c * src/alertpanel.c * src/browseldap.c * src/codeconv.c * src/codeconv.h * src/compose.c * src/compose.h * src/crash.c * src/editaddress.c * src/editbook.c * src/editgroup.c * src/editjpilot.c * src/editldap.c * src/editldap_basedn.c * src/editvcard.c * src/exphtmldlg.c * src/expldifdlg.c * src/export.c * src/exporthtml.c * src/filtering.c * src/folder.c * src/folder_item_prefs.c * src/foldersel.c * src/folderview.c * src/grouplistdialog.c * src/headerview.c * src/imap.c * src/imap_gtk.c * src/import.c * src/importldif.c * src/importmutt.c * src/importpine.c * src/inc.c * src/ldif.c * src/main.c * src/mainwindow.c * src/matcher.c * src/mbox.c * src/message_search.c * src/messageview.c * src/mh.c * src/mh_gtk.c * src/mimeview.c * src/msgcache.c * src/news.c * src/news_gtk.c * src/noticeview.c * src/partial_download.c * src/pop.c * src/prefs_account.c * src/prefs_actions.c * src/prefs_common.c * src/prefs_customheader.c * src/prefs_display_header.c * src/prefs_ext_prog.c * src/prefs_filtering.c * src/prefs_filtering_action.c * src/prefs_folder_item.c * src/prefs_fonts.c * src/prefs_gtk.c * src/prefs_matcher.c * src/prefs_msg_colors.c * src/prefs_spelling.c * src/prefs_summary_column.c * src/prefs_template.c * src/prefs_themes.c * src/prefs_toolbar.c * src/prefs_wrapping.c * src/privacy.c * src/procheader.c * src/procmime.c * src/procmsg.c * src/quote_fmt.c * src/recv.c * src/send_message.c * src/setup.c * src/sourcewindow.c * src/ssl_manager.c * src/statusbar.c * src/summary_search.c * src/summaryview.c * src/textview.c * src/toolbar.c * src/wizard.c * src/common/nntp.c * src/common/plugin.c * src/common/smtp.c * src/common/ssl.c * src/common/ssl_certificate.c * src/common/string_match.c * src/common/sylpheed.c * src/common/template.c * src/common/utils.c * src/gtk/about.c * src/gtk/colorlabel.c * src/gtk/description_window.c * src/gtk/filesel.c * src/gtk/foldersort.c * src/gtk/gtkaspell.c * src/gtk/gtkutils.c * src/gtk/inputdialog.c * src/gtk/logwindow.c * src/gtk/menu.c * src/gtk/pluginwindow.c * src/gtk/prefswindow.c * src/gtk/progressdialog.c * src/gtk/quicksearch.c * src/gtk/sslcertwindow.c * src/plugins/clamav/clamav_plugin.c * src/plugins/clamav/clamav_plugin_gtk.c * src/plugins/demo/demo.c * src/plugins/dillo_viewer/dillo_prefs.c * src/plugins/dillo_viewer/dillo_viewer.c * src/plugins/image_viewer/plugin.c * src/plugins/image_viewer/viewer.c * src/plugins/image_viewer/viewerprefs.c * src/plugins/mathml_viewer/mathml_viewer.c * src/plugins/pgpmime/passphrase.c * src/plugins/pgpmime/plugin.c * src/plugins/pgpmime/prefs_gpg.c * src/plugins/pgpmime/select-keys.c * src/plugins/pgpmime/sgpgme.c * src/plugins/spamassassin/spamassassin.c * src/plugins/spamassassin/spamassassin_gtk.c * src/plugins/trayicon/trayicon.c sync with main (revision 104)
2005-02-10 13:06:07 +01:00
#include <glib/gi18n.h>
2001-04-19 14:21:46 +02:00
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
2001-11-07 11:29:45 +01:00
#include <errno.h>
2001-04-19 14:21:46 +02:00
#include "main.h"
#include "prefs_gtk.h"
2001-04-19 14:21:46 +02:00
#include "prefs_common.h"
2001-05-06 22:06:56 +02:00
#include "prefs_display_header.h"
2001-10-22 10:42:36 +02:00
#include "prefs_summary_column.h"
#include "prefs_folder_column.h"
2001-04-19 14:21:46 +02:00
#include "mainwindow.h"
#include "summaryview.h"
#include "folderview.h"
2001-04-19 14:21:46 +02:00
#include "messageview.h"
#include "manage_window.h"
2001-05-06 22:06:56 +02:00
#include "inc.h"
2001-04-19 14:21:46 +02:00
#include "menu.h"
#include "codeconv.h"
#include "utils.h"
#include "gtkutils.h"
#include "alertpanel.h"
#include "folder.h"
2003-05-27 09:36:59 +02:00
#include "socket.h"
#include "filesel.h"
2001-07-31 08:17:48 +02:00
#include "folderview.h"
2002-02-11 20:46:04 +01:00
#include "stock_pixmap.h"
#include "prefswindow.h"
#include "colorlabel.h"
#include "addrcustomattr.h"
2001-04-19 14:21:46 +02:00
enum {
DATEFMT_FMT,
DATEFMT_TXT,
N_DATEFMT_COLUMNS
};
2001-04-19 14:21:46 +02:00
PrefsCommon prefs_common;
GtkWidget *notebook;
2001-04-19 14:21:46 +02:00
#ifdef G_OS_WIN32
/*
* In the Windows version prefs_common contains
* - the non-OS-specific settings of the "Common" section and
* - the OS-specific settings of the "CommonWin32" section
* The OS-specific settings of the "Common" section are not used
* but saved in prefs_unix.
*/
# define SPECIFIC_PREFS prefs_unix
static PrefsCommon prefs_unix;
static PrefParam param_os_specific[] = {
/* Receive */
{"ext_inc_path", "",
&prefs_common.extinc_cmd, P_STRING, NULL, NULL, NULL},
{"newmail_notify_cmd", "",
&prefs_common.newmail_notify_cmd, P_STRING, NULL, NULL, NULL},
/* new fonts */
{"widget_font_gtk2", NULL,
&prefs_common.widgetfont, P_STRING, NULL, NULL, NULL},
{"message_font_gtk2", "Monospace 9",
&prefs_common.textfont, P_STRING, NULL, NULL, NULL},
{"print_font_gtk2", "Monospace 9",
&prefs_common.printfont, P_STRING, NULL, NULL, NULL},
{"small_font_gtk2", "Sans 9",
&prefs_common.smallfont, P_STRING, NULL, NULL, NULL},
{"normal_font_gtk2", "Sans 9",
&prefs_common.normalfont, P_STRING, NULL, NULL, NULL},
{"bold_font_gtk2", "Sans 9 Bold",
&prefs_common.boldfont, P_STRING, NULL, NULL, NULL},
/* Message */
{"attach_save_directory", NULL,
&prefs_common.attach_save_dir, P_STRING, NULL, NULL, NULL},
{"attach_load_directory", NULL,
&prefs_common.attach_load_dir, P_STRING, NULL, NULL, NULL},
/* MIME viewer */
{"mime_textviewer", NULL,
&prefs_common.mime_textviewer, P_STRING, NULL, NULL, NULL},
{"mime_open_command", "notepad '%s'",
&prefs_common.mime_open_cmd, P_STRING, NULL, NULL, NULL},
/* Interface */
{"pixmap_theme_path", DEFAULT_PIXMAP_THEME,
&prefs_common.pixmap_theme_path, P_STRING, NULL, NULL, NULL},
/* Other */
{"uri_open_command", NULL,
&prefs_common.uri_cmd, P_STRING, NULL, NULL, NULL},
{"print_command", "notepad /p %s",
&prefs_common.print_cmd, P_STRING, NULL, NULL, NULL},
{"ext_editor_command", "notepad %s",
&prefs_common.ext_editor_cmd, P_STRING, NULL, NULL, NULL},
{NULL, NULL, NULL, P_OTHER, NULL, NULL, NULL}
};
#else
# define SPECIFIC_PREFS prefs_common
#endif
2001-04-19 14:21:46 +02:00
/*
parameter name, default value, pointer to the prefs variable, data type,
pointer to the widget pointer,
pointer to the function for data setting,
pointer to the function for widget setting
*/
static PrefParam param[] = {
#ifdef MAEMO
{"data_root", "", &prefs_common.data_root, P_STRING,
NULL, NULL, NULL},
#endif
2001-04-19 14:21:46 +02:00
/* Receive */
{"use_ext_inc", "FALSE", &prefs_common.use_extinc, P_BOOL,
NULL, NULL, NULL},
{"ext_inc_path", DEFAULT_INC_PATH, &SPECIFIC_PREFS.extinc_cmd, P_STRING,
NULL, NULL, NULL},
2001-04-19 14:21:46 +02:00
{"autochk_newmail", "FALSE", &prefs_common.autochk_newmail, P_BOOL,
NULL, NULL, NULL},
2001-04-19 14:21:46 +02:00
{"autochk_interval", "10", &prefs_common.autochk_itv, P_INT,
NULL, NULL, NULL},
2001-04-19 14:21:46 +02:00
{"check_on_startup", "FALSE", &prefs_common.chk_on_startup, P_BOOL,
NULL, NULL, NULL},
{"open_inbox_on_inc", "FALSE", &prefs_common.open_inbox_on_inc,
P_BOOL, NULL, NULL, NULL},
2001-08-16 13:28:10 +02:00
{"scan_all_after_inc", "FALSE", &prefs_common.scan_all_after_inc,
P_BOOL, NULL, NULL, NULL},
{"newmail_notify_manu", "FALSE", &prefs_common.newmail_notify_manu,
P_BOOL, NULL, NULL, NULL},
{"newmail_notify_auto", "FALSE", &prefs_common.newmail_notify_auto,
P_BOOL, NULL, NULL, NULL},
{"newmail_notify_cmd", "", &SPECIFIC_PREFS.newmail_notify_cmd, P_STRING,
NULL, NULL, NULL},
#ifdef MAEMO
{"maemo_show_led", "TRUE", &prefs_common.maemo_show_led, P_BOOL,
NULL, NULL, NULL},
{"maemo_play_sound", "FALSE", &prefs_common.maemo_play_sound, P_BOOL,
NULL, NULL, NULL},
{"maemo_show_banner", "FALSE", &prefs_common.maemo_show_banner, P_BOOL,
NULL, NULL, NULL},
#endif
{"receive_dialog_mode", "2", &prefs_common.recv_dialog_mode, P_ENUM,
NULL, NULL, NULL},
{"receivewin_width", "460", &prefs_common.receivewin_width, P_INT,
NULL, NULL, NULL},
{"receivewin_height", "-1", &prefs_common.receivewin_height, P_INT,
NULL, NULL, NULL},
2003-04-15 22:48:37 +02:00
{"no_receive_error_panel", "FALSE", &prefs_common.no_recv_err_panel,
P_BOOL, NULL, NULL, NULL},
2003-04-15 22:48:37 +02:00
{"close_receive_dialog", "TRUE", &prefs_common.close_recv_dialog,
P_BOOL, NULL, NULL, NULL},
2001-04-19 14:21:46 +02:00
/* Send */
{"save_message", "TRUE", &prefs_common.savemsg, P_BOOL,
NULL, NULL, NULL},
{"confirm_send_queued_messages", "FALSE", &prefs_common.confirm_send_queued_messages,
P_BOOL, NULL, NULL, NULL},
#ifndef MAEMO
{"send_dialog_mode", "0", &prefs_common.send_dialog_invisible, P_BOOL,
NULL, NULL, NULL},
#else
{"send_dialog_mode", "1", &prefs_common.send_dialog_invisible, P_BOOL,
NULL, NULL, NULL},
#endif
{"sendwin_width", "460", &prefs_common.sendwin_width, P_INT,
NULL, NULL, NULL},
{"sendwin_height", "-1", &prefs_common.sendwin_height, P_INT,
NULL, NULL, NULL},
2001-04-19 14:21:46 +02:00
{"outgoing_charset", CS_AUTO, &prefs_common.outgoing_charset, P_STRING,
NULL, NULL, NULL},
2003-01-16 12:02:43 +01:00
{"encoding_method", "0", &prefs_common.encoding_method, P_ENUM,
NULL, NULL, NULL},
2001-04-19 14:21:46 +02:00
2004-02-21 12:01:01 +01:00
{"allow_jisx0201_kana", "FALSE", &prefs_common.allow_jisx0201_kana,
P_BOOL, NULL, NULL, NULL},
2001-04-19 14:21:46 +02:00
/* Compose */
2001-09-13 15:38:32 +02:00
{"auto_ext_editor", "FALSE", &prefs_common.auto_exteditor, P_BOOL,
NULL, NULL, NULL},
{"forward_as_attachment", "FALSE", &prefs_common.forward_as_attachment,
P_BOOL, NULL, NULL, NULL},
2002-05-23 10:18:33 +02:00
{"redirect_keep_from", "FALSE",
&prefs_common.redirect_keep_from, P_BOOL,
NULL, NULL, NULL},
2001-12-18 08:36:38 +01:00
{"undo_level", "50", &prefs_common.undolevels, P_INT,
NULL, NULL, NULL},
{"compose_with_format", "FALSE", &prefs_common.compose_with_format, P_BOOL,
NULL, NULL, NULL},
{"compose_subject_format", "",
&prefs_common.compose_subject_format, P_STRING, NULL, NULL, NULL},
{"compose_body_format", NULL,
&prefs_common.compose_body_format, P_STRING, NULL, NULL, NULL},
2001-12-16 14:34:13 +01:00
2001-12-22 01:30:32 +01:00
{"linewrap_length", "72", &prefs_common.linewrap_len, P_INT,
2004-07-12 12:39:50 +02:00
NULL, NULL, NULL},
2004-07-18 18:22:33 +02:00
{"linewrap_quotation", "TRUE", &prefs_common.linewrap_quote, P_BOOL,
2004-07-12 12:39:50 +02:00
NULL, NULL, NULL},
{"linewrap_pastes", "TRUE", &prefs_common.linewrap_pastes, P_BOOL,
NULL, NULL, NULL},
2004-07-18 18:22:33 +02:00
{"linewrap_auto", "TRUE", &prefs_common.autowrap, P_BOOL,
2004-07-12 12:39:50 +02:00
NULL, NULL, NULL},
{"autosave", "TRUE", &prefs_common.autosave,
P_BOOL, NULL, NULL, NULL},
{"autosave_length", "50", &prefs_common.autosave_length, P_INT,
NULL, NULL, NULL},
2002-08-28 15:04:15 +02:00
#if USE_ASPELL
{"enable_aspell", "TRUE", &prefs_common.enable_aspell, P_BOOL,
NULL, NULL, NULL},
{"aspell_path", ASPELL_PATH, &prefs_common.aspell_path, P_STRING,
NULL, NULL, NULL},
{"dictionary", "", &prefs_common.dictionary, P_STRING,
NULL, NULL, NULL},
{"alt_dictionary", "", &prefs_common.alt_dictionary, P_STRING,
NULL, NULL, NULL},
{"aspell_sugmode", "1", &prefs_common.aspell_sugmode, P_INT,
NULL, NULL, NULL},
{"use_alternate_dict", "FALSE", &prefs_common.use_alternate, P_BOOL,
NULL, NULL, NULL},
{"check_while_typing", "TRUE", &prefs_common.check_while_typing, P_BOOL,
NULL, NULL, NULL},
{"recheck_when_changing_dict", "TRUE", &prefs_common.recheck_when_changing_dict,
P_BOOL, NULL, NULL, NULL},
{"misspelled_color", "16711680", &prefs_common.misspelled_col, P_COLOR,
NULL, NULL, NULL},
{"use_both_dicts", "FALSE", &prefs_common.use_both_dicts, P_BOOL,
NULL, NULL, NULL},
2001-09-18 18:43:10 +02:00
#endif
2001-11-07 11:29:45 +01:00
{"reply_with_quote", "TRUE", &prefs_common.reply_with_quote, P_BOOL,
NULL, NULL, NULL},
{"compose_dnd_insert_or_attach", "0", &prefs_common.compose_dnd_mode, P_ENUM,
NULL, NULL, NULL},
/* Account autoselection */
2001-11-07 11:29:45 +01:00
{"reply_account_autoselect", "TRUE",
&prefs_common.reply_account_autosel, P_BOOL,
NULL, NULL, NULL},
{"forward_account_autoselect", "TRUE",
&prefs_common.forward_account_autosel, P_BOOL,
NULL, NULL, NULL},
{"reedit_account_autoselect", "TRUE",
&prefs_common.reedit_account_autosel, P_BOOL,
NULL, NULL, NULL},
2001-11-07 11:29:45 +01:00
2002-10-02 12:24:03 +02:00
{"default_reply_list", "TRUE", &prefs_common.default_reply_list, P_BOOL,
NULL, NULL, NULL},
2002-10-02 12:24:03 +02:00
#ifndef MAEMO
2001-04-19 14:21:46 +02:00
{"show_ruler", "TRUE", &prefs_common.show_ruler, P_BOOL,
NULL, NULL, NULL},
#else
{"show_ruler", "FALSE", &prefs_common.show_ruler, P_BOOL,
NULL, NULL, NULL},
#endif
2001-04-19 14:21:46 +02:00
2001-11-07 11:29:45 +01:00
/* Quote */
{"reply_quote_mark", "> ", &prefs_common.quotemark, P_STRING,
NULL, NULL, NULL},
{"reply_quote_format", NULL,
&prefs_common.quotefmt, P_STRING, NULL, NULL, NULL},
2001-11-07 11:29:45 +01:00
2001-12-03 11:06:10 +01:00
{"forward_quote_mark", "> ", &prefs_common.fw_quotemark, P_STRING,
NULL, NULL, NULL},
{"forward_quote_format", NULL, &prefs_common.fw_quotefmt, P_STRING,
NULL, NULL, NULL},
{"quote_chars", ">", &prefs_common.quote_chars, P_STRING,
NULL, NULL, NULL},
2001-11-07 11:29:45 +01:00
2001-04-19 14:21:46 +02:00
/* Display */
2003-10-05 12:10:30 +02:00
/* Obsolete fonts. For coexisting with Gtk+-1.2 version */
{"widget_font", NULL,
&prefs_common.widgetfont_gtk1, P_STRING, NULL, NULL, NULL},
{"message_font", "-misc-fixed-medium-r-normal--14-*-*-*-*-*-*-*",
&prefs_common.textfont_gtk1, P_STRING, NULL, NULL, NULL},
{"small_font", "-*-helvetica-medium-r-normal--10-*-*-*-*-*-*-*",
&prefs_common.smallfont_gtk1, P_STRING, NULL, NULL, NULL},
{"bold_font", "-*-helvetica-bold-r-normal--12-*-*-*-*-*-*-*",
&prefs_common.boldfont_gtk1, P_STRING, NULL, NULL, NULL},
{"normal_font", "-*-helvetica-medium-r-normal--12-*-*-*-*-*-*-*",
&prefs_common.normalfont_gtk1, P_STRING, NULL, NULL, NULL},
2003-10-05 12:10:30 +02:00
/* new fonts */
#ifndef MAEMO
{"widget_font_gtk2", NULL,
&SPECIFIC_PREFS.widgetfont, P_STRING, NULL, NULL, NULL},
{"message_font_gtk2", "Monospace 9",
&SPECIFIC_PREFS.textfont, P_STRING, NULL, NULL, NULL},
{"print_font_gtk2", "Monospace 9",
&SPECIFIC_PREFS.printfont, P_STRING, NULL, NULL, NULL},
{"small_font_gtk2", "Sans 9",
&SPECIFIC_PREFS.smallfont, P_STRING, NULL, NULL, NULL},
{"normal_font_gtk2", "Sans 9",
&SPECIFIC_PREFS.normalfont, P_STRING, NULL, NULL, NULL},
{"bold_font_gtk2", "Sans Bold 9",
&SPECIFIC_PREFS.boldfont, P_STRING, NULL, NULL, NULL},
#else
{"widget_font_gtk2", NULL,
&SPECIFIC_PREFS.widgetfont, P_STRING, NULL, NULL, NULL},
{"message_font_gtk2", "Monospace 8",
&SPECIFIC_PREFS.textfont, P_STRING, NULL, NULL, NULL},
{"print_font_gtk2", "Monospace 8",
&SPECIFIC_PREFS.printfont, P_STRING, NULL, NULL, NULL},
{"small_font_gtk2", "Sans 8",
&SPECIFIC_PREFS.smallfont, P_STRING, NULL, NULL, NULL},
{"normal_font_gtk2", "Sans 8",
&SPECIFIC_PREFS.normalfont, P_STRING, NULL, NULL, NULL},
{"bold_font_gtk2", "Sans Bold 8",
&SPECIFIC_PREFS.boldfont, P_STRING, NULL, NULL, NULL},
#endif
{"use_different_print_font", "FALSE", &prefs_common.use_different_print_font, P_BOOL,
NULL, NULL, NULL},
{"derive_from_normal_font", "TRUE", &prefs_common.derive_from_normal_font, P_BOOL,
NULL, NULL, NULL},
/* custom colors */
{"custom_color1", "#ff9900", &prefs_common.custom_colorlabel[0].color, P_COLOR,
NULL, NULL, NULL},
{"custom_colorlabel1", N_("Orange"), &prefs_common.custom_colorlabel[0].label, P_STRING,
NULL, NULL, NULL},
{"custom_color2", "#ff0000", &prefs_common.custom_colorlabel[1].color, P_COLOR,
NULL, NULL, NULL},
{"custom_colorlabel2", N_("Red"), &prefs_common.custom_colorlabel[1].label, P_STRING,
NULL, NULL, NULL},
{"custom_color3", "#ff66ff", &prefs_common.custom_colorlabel[2].color, P_COLOR,
NULL, NULL, NULL},
{"custom_colorlabel3", N_("Pink"), &prefs_common.custom_colorlabel[2].label, P_STRING,
NULL, NULL, NULL},
{"custom_color4", "#00ccff", &prefs_common.custom_colorlabel[3].color, P_COLOR,
NULL, NULL, NULL},
{"custom_colorlabel4", N_("Sky blue"), &prefs_common.custom_colorlabel[3].label, P_STRING,
NULL, NULL, NULL},
{"custom_color5", "#0000ff", &prefs_common.custom_colorlabel[4].color, P_COLOR,
NULL, NULL, NULL},
{"custom_colorlabel5", N_("Blue"), &prefs_common.custom_colorlabel[4].label, P_STRING,
NULL, NULL, NULL},
{"custom_color6", "#009900", &prefs_common.custom_colorlabel[5].color, P_COLOR,
NULL, NULL, NULL},
{"custom_colorlabel6", N_("Green"), &prefs_common.custom_colorlabel[5].label, P_STRING,
NULL, NULL, NULL},
{"custom_color7", "#663333", &prefs_common.custom_colorlabel[6].color, P_COLOR,
NULL, NULL, NULL},
{"custom_colorlabel7", N_("Brown"), &prefs_common.custom_colorlabel[6].label, P_STRING,
NULL, NULL, NULL},
{"custom_color8", "#aaaaaa", &prefs_common.custom_colorlabel[7].color, P_COLOR,
NULL, NULL, NULL},
{"custom_colorlabel8", N_("Grey"), &prefs_common.custom_colorlabel[7].label, P_STRING,
NULL, NULL, NULL},
{"custom_color9", "#c07254", &prefs_common.custom_colorlabel[8].color, P_COLOR,
NULL, NULL, NULL},
{"custom_colorlabel9", N_("Light brown"), &prefs_common.custom_colorlabel[8].label, P_STRING,
NULL, NULL, NULL},
{"custom_color10", "#c00000", &prefs_common.custom_colorlabel[9].color, P_COLOR,
NULL, NULL, NULL},
{"custom_colorlabel10", N_("Dark red"), &prefs_common.custom_colorlabel[9].label, P_STRING,
NULL, NULL, NULL},
{"custom_color11", "#cc1074", &prefs_common.custom_colorlabel[10].color, P_COLOR,
NULL, NULL, NULL},
{"custom_colorlabel11", N_("Dark pink"), &prefs_common.custom_colorlabel[10].label, P_STRING,
NULL, NULL, NULL},
{"custom_color12", "#5094cd", &prefs_common.custom_colorlabel[11].color, P_COLOR,
NULL, NULL, NULL},
{"custom_colorlabel12", N_("Steel blue"), &prefs_common.custom_colorlabel[11].label, P_STRING,
NULL, NULL, NULL},
{"custom_color13", "#ffd500", &prefs_common.custom_colorlabel[12].color, P_COLOR,
NULL, NULL, NULL},
{"custom_colorlabel13", N_("Gold"), &prefs_common.custom_colorlabel[12].label, P_STRING,
NULL, NULL, NULL},
{"custom_color14", "#00d800", &prefs_common.custom_colorlabel[13].color, P_COLOR,
NULL, NULL, NULL},
{"custom_colorlabel14", N_("Bright green"), &prefs_common.custom_colorlabel[13].label, P_STRING,
NULL, NULL, NULL},
{"custom_color15", "#c060c0", &prefs_common.custom_colorlabel[14].color, P_COLOR,
NULL, NULL, NULL},
{"custom_colorlabel15", N_("Magenta"), &prefs_common.custom_colorlabel[14].label, P_STRING,
NULL, NULL, NULL},
/* image viewer */
{"display_image", "TRUE", &prefs_common.display_img, P_BOOL,
NULL, NULL, NULL},
{"resize_image", "TRUE", &prefs_common.resize_img, P_BOOL,
NULL, NULL, NULL},
{"inline_image", "TRUE", &prefs_common.inline_img, P_BOOL,
NULL, NULL, NULL},
{"display_folder_unread_num", "0",
&prefs_common.display_folder_unread, P_INT,
NULL, NULL, NULL},
2002-05-10 09:32:09 +02:00
{"newsgroup_abbrev_len", "16",
&prefs_common.ng_abbrev_len, P_INT,
NULL, NULL, NULL},
{"translate_header", "FALSE", &prefs_common.trans_hdr, P_BOOL,
NULL, NULL, NULL},
2001-04-27 22:27:24 +02:00
/* Display: Summary View */
{"use_address_book", "FALSE", &prefs_common.use_addr_book, P_BOOL,
NULL, NULL, NULL},
2003-02-04 21:57:27 +01:00
{"thread_by_subject", "TRUE", &prefs_common.thread_by_subject, P_BOOL,
NULL, NULL, NULL},
{"date_format", N_("%y/%m/%d(%a) %H:%M"), &prefs_common.date_format,
P_STRING, NULL, NULL, NULL},
2002-11-27 10:26:17 +01:00
2001-08-16 13:28:10 +02:00
{"bold_unread", "TRUE", &prefs_common.bold_unread, P_BOOL,
2002-11-27 10:26:17 +01:00
NULL, NULL, NULL},
2001-04-19 14:21:46 +02:00
{"enable_thread", "TRUE", &prefs_common.enable_thread, P_BOOL,
NULL, NULL, NULL},
#ifndef MAEMO
2001-04-19 14:21:46 +02:00
{"toolbar_style", "3", &prefs_common.toolbar_style, P_ENUM,
NULL, NULL, NULL},
#else
{"toolbar_style", "1", &prefs_common.toolbar_style, P_ENUM,
NULL, NULL, NULL},
#endif
{"toolbar_detachable", "FALSE", &prefs_common.toolbar_detachable, P_BOOL,
NULL, NULL, NULL},
{"show_col_headers", "TRUE", &prefs_common.show_col_headers, P_BOOL,
NULL, NULL, NULL},
#ifndef MAEMO
2001-04-19 14:21:46 +02:00
{"show_statusbar", "TRUE", &prefs_common.show_statusbar, P_BOOL,
NULL, NULL, NULL},
{"show_searchbar", "TRUE", &prefs_common.show_searchbar, P_BOOL,
NULL, NULL, NULL},
#else
{"show_statusbar", "FALSE", &prefs_common.show_statusbar, P_BOOL,
NULL, NULL, NULL},
{"show_searchbar", "FALSE", &prefs_common.show_searchbar, P_BOOL,
NULL, NULL, NULL},
#endif
2002-06-22 19:49:39 +02:00
2001-10-22 10:42:36 +02:00
{"summary_col_show_mark", "TRUE",
&prefs_common.summary_col_visible[S_COL_MARK], P_BOOL, NULL, NULL, NULL},
{"summary_col_show_unread", "TRUE",
2003-01-26 13:56:56 +01:00
&prefs_common.summary_col_visible[S_COL_STATUS], P_BOOL, NULL, NULL, NULL},
2001-10-22 10:42:36 +02:00
{"summary_col_show_subject", "TRUE",
&prefs_common.summary_col_visible[S_COL_SUBJECT], P_BOOL, NULL, NULL, NULL},
{"summary_col_show_from", "TRUE",
&prefs_common.summary_col_visible[S_COL_FROM], P_BOOL, NULL, NULL, NULL},
{"summary_col_show_to", "FALSE",
&prefs_common.summary_col_visible[S_COL_TO], P_BOOL, NULL, NULL, NULL},
2001-10-22 10:42:36 +02:00
{"summary_col_show_date", "TRUE",
&prefs_common.summary_col_visible[S_COL_DATE], P_BOOL, NULL, NULL, NULL},
{"summary_col_show_mime", "TRUE",
&prefs_common.summary_col_visible[S_COL_MIME], P_BOOL, NULL, NULL, NULL},
2001-10-22 10:42:36 +02:00
{"summary_col_show_size", "TRUE",
&prefs_common.summary_col_visible[S_COL_SIZE], P_BOOL, NULL, NULL, NULL},
{"summary_col_show_number", "FALSE",
&prefs_common.summary_col_visible[S_COL_NUMBER], P_BOOL, NULL, NULL, NULL},
{"summary_col_show_score", "FALSE",
&prefs_common.summary_col_visible[S_COL_SCORE], P_BOOL, NULL, NULL, NULL},
{"summary_col_show_locked", "FALSE",
&prefs_common.summary_col_visible[S_COL_LOCKED], P_BOOL, NULL, NULL, NULL},
{"summary_col_show_tags", "FALSE",
&prefs_common.summary_col_visible[S_COL_TAGS], P_BOOL, NULL, NULL, NULL},
2001-10-22 10:42:36 +02:00
{"summary_col_pos_mark", "0",
&prefs_common.summary_col_pos[S_COL_MARK], P_INT, NULL, NULL, NULL},
{"summary_col_pos_unread", "1",
2003-01-26 13:56:56 +01:00
&prefs_common.summary_col_pos[S_COL_STATUS], P_INT, NULL, NULL, NULL},
2001-10-22 10:42:36 +02:00
{"summary_col_pos_mime", "2",
&prefs_common.summary_col_pos[S_COL_MIME], P_INT, NULL, NULL, NULL},
{"summary_col_pos_subject", "3",
&prefs_common.summary_col_pos[S_COL_SUBJECT], P_INT, NULL, NULL, NULL},
{"summary_col_pos_from", "4",
&prefs_common.summary_col_pos[S_COL_FROM], P_INT, NULL, NULL, NULL},
{"summary_col_pos_date", "5",
&prefs_common.summary_col_pos[S_COL_DATE], P_INT, NULL, NULL, NULL},
{"summary_col_pos_size", "6",
&prefs_common.summary_col_pos[S_COL_SIZE], P_INT, NULL, NULL, NULL},
{"summary_col_pos_number", "7",
&prefs_common.summary_col_pos[S_COL_NUMBER], P_INT, NULL, NULL, NULL},
{"summary_col_pos_score", "8",
&prefs_common.summary_col_pos[S_COL_SCORE], P_INT, NULL, NULL, NULL},
{"summary_col_pos_locked", "9",
&prefs_common.summary_col_pos[S_COL_LOCKED], P_INT, NULL, NULL, NULL},
{"summary_col_pos_to", "10",
&prefs_common.summary_col_pos[S_COL_TO], P_INT, NULL, NULL, NULL},
{"summary_col_pos_tags", "11",
&prefs_common.summary_col_pos[S_COL_TAGS], P_INT, NULL, NULL, NULL},
2001-10-22 10:42:36 +02:00
{"summary_col_size_mark", "10",
&prefs_common.summary_col_size[S_COL_MARK], P_INT, NULL, NULL, NULL},
{"summary_col_size_unread", "13",
2003-01-26 13:56:56 +01:00
&prefs_common.summary_col_size[S_COL_STATUS], P_INT, NULL, NULL, NULL},
2001-10-22 10:42:36 +02:00
{"summary_col_size_mime", "10",
&prefs_common.summary_col_size[S_COL_MIME], P_INT, NULL, NULL, NULL},
#ifndef MAEMO
2001-10-22 10:42:36 +02:00
{"summary_col_size_subject", "200",
&prefs_common.summary_col_size[S_COL_SUBJECT], P_INT, NULL, NULL, NULL},
{"summary_col_size_from", "120",
&prefs_common.summary_col_size[S_COL_FROM], P_INT, NULL, NULL, NULL},
{"summary_col_size_to", "120",
&prefs_common.summary_col_size[S_COL_TO], P_INT, NULL, NULL, NULL},
#else
{"summary_col_size_subject", "300",
&prefs_common.summary_col_size[S_COL_SUBJECT], P_INT, NULL, NULL, NULL},
{"summary_col_size_from", "150",
&prefs_common.summary_col_size[S_COL_FROM], P_INT, NULL, NULL, NULL},
{"summary_col_size_to", "150",
&prefs_common.summary_col_size[S_COL_TO], P_INT, NULL, NULL, NULL},
#endif
2001-10-22 10:42:36 +02:00
{"summary_col_size_date", "118",
&prefs_common.summary_col_size[S_COL_DATE], P_INT, NULL, NULL, NULL},
{"summary_col_size_size", "45",
&prefs_common.summary_col_size[S_COL_SIZE], P_INT, NULL, NULL, NULL},
{"summary_col_size_number", "40",
&prefs_common.summary_col_size[S_COL_NUMBER], P_INT, NULL, NULL, NULL},
{"summary_col_size_score", "40",
&prefs_common.summary_col_size[S_COL_SCORE], P_INT, NULL, NULL, NULL},
{"summary_col_size_locked", "13",
&prefs_common.summary_col_size[S_COL_LOCKED], P_INT, NULL, NULL, NULL},
{"summary_col_size_tags", "150",
&prefs_common.summary_col_size[S_COL_TAGS], P_INT, NULL, NULL, NULL},
2001-04-19 14:21:46 +02:00
/* Widget size */
2003-08-09 08:26:27 +02:00
{"folderwin_x", "16", &prefs_common.folderwin_x, P_INT,
NULL, NULL, NULL},
{"folderwin_y", "16", &prefs_common.folderwin_y, P_INT,
NULL, NULL, NULL},
{"folderview_width", "270", &prefs_common.folderview_width, P_INT,
2001-04-19 14:21:46 +02:00
NULL, NULL, NULL},
{"folderview_height", "450", &prefs_common.folderview_height, P_INT,
2001-04-19 14:21:46 +02:00
NULL, NULL, NULL},
2003-08-21 10:45:43 +02:00
{"folderview_visible", "TRUE", &prefs_common.folderview_visible, P_BOOL,
NULL, NULL, NULL},
2003-08-09 08:26:27 +02:00
{"folder_col_show_folder", "TRUE",
&prefs_common.folder_col_visible[F_COL_FOLDER], P_BOOL, NULL, NULL, NULL},
{"folder_col_show_new", "TRUE",
&prefs_common.folder_col_visible[F_COL_NEW], P_BOOL, NULL, NULL, NULL},
{"folder_col_show_unread", "TRUE",
&prefs_common.folder_col_visible[F_COL_UNREAD], P_BOOL, NULL, NULL, NULL},
{"folder_col_show_total", "TRUE",
&prefs_common.folder_col_visible[F_COL_TOTAL], P_BOOL, NULL, NULL, NULL},
{"folder_col_pos_folder", "0",
&prefs_common.folder_col_pos[F_COL_FOLDER], P_INT, NULL, NULL, NULL},
{"folder_col_pos_new", "1",
&prefs_common.folder_col_pos[F_COL_NEW], P_INT, NULL, NULL, NULL},
{"folder_col_pos_unread", "2",
&prefs_common.folder_col_pos[F_COL_UNREAD], P_INT, NULL, NULL, NULL},
{"folder_col_pos_total", "3",
&prefs_common.folder_col_pos[F_COL_TOTAL], P_INT, NULL, NULL, NULL},
#ifndef MAEMO
{"folder_col_size_folder", "120",
&prefs_common.folder_col_size[F_COL_FOLDER], P_INT, NULL, NULL, NULL},
{"folder_col_size_new", "32",
&prefs_common.folder_col_size[F_COL_NEW], P_INT, NULL, NULL, NULL},
{"folder_col_size_unread", "32",
&prefs_common.folder_col_size[F_COL_UNREAD], P_INT, NULL, NULL, NULL},
{"folder_col_size_total", "32",
&prefs_common.folder_col_size[F_COL_TOTAL], P_INT, NULL, NULL, NULL},
#else
{"folder_col_size_folder", "400",
&prefs_common.folder_col_size[F_COL_FOLDER], P_INT, NULL, NULL, NULL},
{"folder_col_size_new", "32",
&prefs_common.folder_col_size[F_COL_NEW], P_INT, NULL, NULL, NULL},
{"folder_col_size_unread", "32",
&prefs_common.folder_col_size[F_COL_UNREAD], P_INT, NULL, NULL, NULL},
{"folder_col_size_total", "32",
&prefs_common.folder_col_size[F_COL_TOTAL], P_INT, NULL, NULL, NULL},
#endif
{"summaryview_width", "500", &prefs_common.summaryview_width, P_INT,
2001-04-19 14:21:46 +02:00
NULL, NULL, NULL},
{"summaryview_height", "244", &prefs_common.summaryview_height, P_INT,
2001-04-19 14:21:46 +02:00
NULL, NULL, NULL},
2001-10-22 10:42:36 +02:00
2003-08-09 08:26:27 +02:00
{"main_messagewin_x", "256", &prefs_common.main_msgwin_x, P_INT,
NULL, NULL, NULL},
{"main_messagewin_y", "210", &prefs_common.main_msgwin_y, P_INT,
NULL, NULL, NULL},
{"messageview_width", "500", &prefs_common.msgview_width, P_INT,
2003-08-09 08:26:27 +02:00
NULL, NULL, NULL},
{"messageview_height", "213", &prefs_common.msgview_height, P_INT,
2003-08-09 08:26:27 +02:00
NULL, NULL, NULL},
2003-08-21 10:45:43 +02:00
{"messageview_visible", "TRUE", &prefs_common.msgview_visible, P_BOOL,
NULL, NULL, NULL},
2003-08-09 08:26:27 +02:00
2001-04-19 14:21:46 +02:00
{"mainview_x", "64", &prefs_common.mainview_x, P_INT,
NULL, NULL, NULL},
{"mainview_y", "64", &prefs_common.mainview_y, P_INT,
NULL, NULL, NULL},
{"mainview_width", "500", &prefs_common.mainview_width, P_INT,
2001-04-19 14:21:46 +02:00
NULL, NULL, NULL},
{"mainview_height", "400", &prefs_common.mainview_height, P_INT,
2001-04-19 14:21:46 +02:00
NULL, NULL, NULL},
{"mainwin_x", "64", &prefs_common.mainwin_x, P_INT,
NULL, NULL, NULL},
{"mainwin_y", "64", &prefs_common.mainwin_y, P_INT,
NULL, NULL, NULL},
{"mainwin_maximised", "FALSE", &prefs_common.mainwin_maximised, P_BOOL,
NULL, NULL, NULL},
#ifndef MAEMO
2001-04-19 14:21:46 +02:00
{"mainwin_width", "800", &prefs_common.mainwin_width, P_INT,
NULL, NULL, NULL},
{"mainwin_height", "600", &prefs_common.mainwin_height, P_INT,
NULL, NULL, NULL},
{"messagewin_width", "600", &prefs_common.msgwin_width, P_INT,
NULL, NULL, NULL},
{"messagewin_height", "540", &prefs_common.msgwin_height, P_INT,
2003-02-18 06:42:13 +01:00
NULL, NULL, NULL},
{"sourcewin_width", "600", &prefs_common.sourcewin_width, P_INT,
NULL, NULL, NULL},
{"sourcewin_height", "500", &prefs_common.sourcewin_height, P_INT,
2001-04-19 14:21:46 +02:00
NULL, NULL, NULL},
{"compose_width", "600", &prefs_common.compose_width, P_INT,
NULL, NULL, NULL},
{"compose_height", "560", &prefs_common.compose_height, P_INT,
NULL, NULL, NULL},
#else
{"mainwin_width", "700", &prefs_common.mainwin_width, P_INT,
NULL, NULL, NULL},
{"mainwin_height", "470", &prefs_common.mainwin_height, P_INT,
NULL, NULL, NULL},
{"messagewin_width", "700", &prefs_common.msgwin_width, P_INT,
NULL, NULL, NULL},
{"messagewin_height", "470", &prefs_common.msgwin_height, P_INT,
NULL, NULL, NULL},
{"sourcewin_width", "700", &prefs_common.sourcewin_width, P_INT,
NULL, NULL, NULL},
{"sourcewin_height", "470", &prefs_common.sourcewin_height, P_INT,
NULL, NULL, NULL},
{"compose_width", "700", &prefs_common.compose_width, P_INT,
NULL, NULL, NULL},
{"compose_height", "470", &prefs_common.compose_height, P_INT,
NULL, NULL, NULL},
#endif
2004-02-21 12:01:01 +01:00
{"compose_x", "0", &prefs_common.compose_x, P_INT,
NULL, NULL, NULL},
{"compose_y", "0", &prefs_common.compose_y, P_INT,
NULL, NULL, NULL},
2001-04-19 14:21:46 +02:00
/* Message */
{"enable_color", "TRUE", &prefs_common.enable_color, P_BOOL,
2004-07-12 12:39:50 +02:00
NULL, NULL, NULL},
2001-04-19 14:21:46 +02:00
{"quote_level1_color", "179", &prefs_common.quote_level1_col, P_COLOR,
2001-04-19 14:21:46 +02:00
NULL, NULL, NULL},
{"quote_level2_color", "179", &prefs_common.quote_level2_col, P_COLOR,
2001-04-19 14:21:46 +02:00
NULL, NULL, NULL},
{"quote_level3_color", "179", &prefs_common.quote_level3_col, P_COLOR,
2001-04-19 14:21:46 +02:00
NULL, NULL, NULL},
{"enable_bgcolor", "FALSE", &prefs_common.enable_bgcolor, P_BOOL,
NULL, NULL, NULL},
{"quote_level1_bgcolor", "13421772", &prefs_common.quote_level1_bgcol, P_COLOR,
NULL, NULL, NULL},
{"quote_level2_bgcolor", "13948116", &prefs_common.quote_level2_bgcol, P_COLOR,
NULL, NULL, NULL},
{"quote_level3_bgcolor", "14540253", &prefs_common.quote_level3_bgcol, P_COLOR,
NULL, NULL, NULL},
{"uri_color", "32512", &prefs_common.uri_col, P_COLOR,
2001-04-19 14:21:46 +02:00
NULL, NULL, NULL},
{"emphasis_color", "207", &prefs_common.emphasis_col, P_COLOR,
NULL, NULL, NULL},
{"target_folder_color", "14294218", &prefs_common.tgt_folder_col, P_COLOR,
2001-07-31 08:17:48 +02:00
NULL, NULL, NULL},
{"signature_color", "7960953", &prefs_common.signature_col, P_COLOR,
2001-04-19 14:21:46 +02:00
NULL, NULL, NULL},
{"recycle_quote_colors", "FALSE", &prefs_common.recycle_quote_colors,
P_BOOL, NULL, NULL, NULL},
{"display_header_pane", "FALSE", &prefs_common.display_header_pane,
P_BOOL, NULL, NULL, NULL},
2001-04-19 14:21:46 +02:00
{"display_header", "TRUE", &prefs_common.display_header, P_BOOL,
NULL, NULL, NULL},
{"display_xface", "TRUE", &prefs_common.display_xface,
P_BOOL, NULL, NULL, NULL},
2005-03-30 [paul] 1.9.6cvs12 partial sync with main: * src/action.c create_io_dialog(): use user-defined text font (thanks to Alfons), and modified its appearance. * src/addrgather.c * src/addrharvest.c * src/browseldap.c replace old code * src/compose.c don't join (presumably) itemized lines on line-wrapping fixed wrapping of quote when auto-wrapping is enabled compose_destroy(): destroy paned only if it's not attached to window. Fixed memory leak of popup menu. * src/exphtmldlg.c * src/expldifdlg.c replace old code * src/html.c * src/html.h * src/importmutt.c * src/importpine.c replace old code * src/main.c removed redundant code * src/mainwindow.c changed 'Code set' (which is rather incorrect) in the menu to 'Character encoding' main_window_set_widgets(): request size first to prevent window size becoming wrong fixed remembering of the state of the visibility of MessageView * src/messageview.c changed 'Code set' (which is rather incorrect) in the menu to 'Character encoding' * src/prefs_common.c * src/prefs_common.h added an option whether to render HTML as text or not added separators to outgoing encoding menu * src/procheader.c procheader_scan_date_string(): support header like: "[Tue,] 01 Feb 2005 09:57[:00]" * src/summaryview.c * src/summaryview.h minor code cleanup * src/textview.c textview_show_html(): force output of newline added an option whether to render HTML as text or not * src/common/utils.c strncpy2(): optimized based on Alfons' code * src/gtk/gtkutils.c * src/gtk/gtkutils.h removed non-used code * src/plugins/pgpmime/passphrase.c partially fixed grab input of passphrase dialog Confine pointer to window
2005-03-30 14:01:26 +02:00
{"render_html", "TRUE", &prefs_common.render_html, P_BOOL,
NULL, NULL, NULL},
{"invoke_plugin_on_html", "FALSE", &prefs_common.invoke_plugin_on_html, P_BOOL,
NULL, NULL, NULL},
2001-04-19 14:21:46 +02:00
{"line_space", "2", &prefs_common.line_space, P_INT,
NULL, NULL, NULL},
{"never_send_retrcpt", "FALSE", &prefs_common.never_send_retrcpt, P_BOOL,
NULL, NULL, NULL},
2001-04-19 14:21:46 +02:00
{"enable_smooth_scroll", "FALSE",
&prefs_common.enable_smooth_scroll, P_BOOL,
NULL, NULL, NULL},
2001-04-19 14:21:46 +02:00
{"scroll_step", "1", &prefs_common.scroll_step, P_INT,
NULL, NULL, NULL},
2001-04-19 14:21:46 +02:00
{"scroll_half_page", "FALSE", &prefs_common.scroll_halfpage, P_BOOL,
NULL, NULL, NULL},
{"respect_flowed_format", "FALSE", &prefs_common.respect_flowed_format, P_BOOL,
NULL, NULL, NULL},
2001-04-19 14:21:46 +02:00
2001-05-06 22:06:56 +02:00
{"show_other_header", "FALSE", &prefs_common.show_other_header, P_BOOL,
NULL, NULL, NULL},
{"attach_desc", "TRUE", &prefs_common.attach_desc, P_BOOL,
NULL, NULL, NULL},
2004-05-10 12:22:28 +02:00
{"attach_save_directory", NULL,
&SPECIFIC_PREFS.attach_save_dir, P_STRING, NULL, NULL, NULL},
{"attach_load_directory", NULL,
&SPECIFIC_PREFS.attach_load_dir, P_STRING, NULL, NULL, NULL},
2001-04-19 14:21:46 +02:00
/* MIME viewer */
{"mime_textviewer", NULL,
&SPECIFIC_PREFS.mime_textviewer, P_STRING, NULL, NULL, NULL},
2001-11-07 11:29:45 +01:00
{"mime_open_command", "gedit '%s'",
&SPECIFIC_PREFS.mime_open_cmd, P_STRING, NULL, NULL, NULL},
2001-04-19 14:21:46 +02:00
/* Interface */
#ifndef MAEMO
{"layout_mode", "0", &prefs_common.layout_mode, P_INT,
2001-04-19 14:21:46 +02:00
NULL, NULL, NULL},
#else
{"layout_mode", "5", &prefs_common.layout_mode, P_INT,
NULL, NULL, NULL},
#endif
2001-08-22 12:58:38 +02:00
/* {"emulate_emacs", "FALSE", &prefs_common.emulate_emacs, P_BOOL,
NULL, NULL, NULL}, */
2003-05-09 10:21:45 +02:00
{"always_show_message_when_selected", "FALSE",
&prefs_common.always_show_msg,
P_BOOL, NULL, NULL, NULL},
{"select_on_entry", "3", &prefs_common.select_on_entry,
P_ENUM, NULL, NULL, NULL},
{"show_tooltips", "TRUE", &prefs_common.show_tooltips,
P_BOOL, NULL, NULL, NULL},
/* do it SUMMARY_OPEN_ACTIONS-1 times */
{"summary_select_prio1", "0", &prefs_common.summary_select_prio[0], P_ENUM,
NULL, NULL, NULL},
{"summary_select_prio2", "0", &prefs_common.summary_select_prio[1], P_ENUM,
NULL, NULL, NULL},
{"summary_select_prio3", "0", &prefs_common.summary_select_prio[2], P_ENUM,
NULL, NULL, NULL},
{"summary_select_prio4", "0", &prefs_common.summary_select_prio[3], P_ENUM,
NULL, NULL, NULL},
{"summary_select_prio5", "0", &prefs_common.summary_select_prio[4], P_ENUM,
NULL, NULL, NULL},
{"summary_select_prio6", "0", &prefs_common.summary_select_prio[5], P_ENUM,
NULL, NULL, NULL},
{"summary_select_prio7", "0", &prefs_common.summary_select_prio[6], P_ENUM,
NULL, NULL, NULL},
2002-09-06 09:38:22 +02:00
{"mark_as_read_on_new_window", "FALSE",
&prefs_common.mark_as_read_on_new_window,
P_BOOL, NULL, NULL, NULL},
{"mark_as_read_delay", "0",
&prefs_common.mark_as_read_delay, P_INT,
NULL, NULL, NULL},
2001-04-19 14:21:46 +02:00
{"immediate_execution", "TRUE", &prefs_common.immediate_exec, P_BOOL,
NULL, NULL, NULL},
{"nextunreadmsg_dialog", "1", &prefs_common.next_unread_msg_dialog, P_ENUM,
NULL, NULL, NULL},
2001-08-22 12:58:38 +02:00
2002-02-11 20:46:04 +01:00
{"pixmap_theme_path", DEFAULT_PIXMAP_THEME,
&SPECIFIC_PREFS.pixmap_theme_path, P_STRING,
2004-02-21 12:01:01 +01:00
NULL, NULL, NULL},
{"ask_mark_all_read", "TRUE", &prefs_common.ask_mark_all_read, P_BOOL,
NULL, NULL, NULL},
{"ask_apply_per_account_filtering_rules", "TRUE", &prefs_common.ask_apply_per_account_filtering_rules, P_BOOL,
NULL, NULL, NULL},
{"apply_per_account_filtering_rules", "0", &prefs_common.apply_per_account_filtering_rules, P_ENUM,
NULL, NULL, NULL},
/* Addressbook */
{"addressbook_use_editaddress_dialog", "TRUE", &prefs_common.addressbook_use_editaddress_dialog,
P_BOOL, NULL, NULL, NULL},
{"addressbook_hpaned_pos", "-1", &prefs_common.addressbook_hpaned_pos,
P_INT, NULL, NULL, NULL},
{"addressbook_vpaned_pos", "-1", &prefs_common.addressbook_vpaned_pos,
P_INT, NULL, NULL, NULL},
2002-01-28 13:46:49 +01:00
/* Other */
2002-12-20 08:33:23 +01:00
{"uri_open_command", DEFAULT_BROWSER_CMD,
&SPECIFIC_PREFS.uri_cmd, P_STRING, NULL, NULL, NULL},
{"print_command", "lpr %s",
&SPECIFIC_PREFS.print_cmd, P_STRING, NULL, NULL, NULL},
{"ext_editor_command", DEFAULT_EDITOR_CMD,
&SPECIFIC_PREFS.ext_editor_cmd, P_STRING, NULL, NULL, NULL},
{"cmds_use_system_default", "FALSE",
&prefs_common.cmds_use_system_default, P_BOOL, NULL, NULL, NULL},
2002-11-27 10:26:17 +01:00
{"add_address_by_click", "FALSE", &prefs_common.add_address_by_click,
P_BOOL, NULL, NULL, NULL},
2004-06-25 10:05:09 +02:00
{"confirm_on_exit", "FALSE", &prefs_common.confirm_on_exit, P_BOOL,
NULL, NULL, NULL},
2001-04-19 14:21:46 +02:00
{"clean_trash_on_exit", "FALSE", &prefs_common.clean_on_exit, P_BOOL,
NULL, NULL, NULL},
2001-04-19 14:21:46 +02:00
{"ask_on_cleaning", "TRUE", &prefs_common.ask_on_clean, P_BOOL,
NULL, NULL, NULL},
{"warn_queued_on_exit", "TRUE", &prefs_common.warn_queued_on_exit,
P_BOOL, NULL, NULL, NULL},
2002-04-21 14:11:43 +02:00
{"work_offline", "FALSE", &prefs_common.work_offline, P_BOOL,
NULL, NULL, NULL},
2002-12-11 11:16:39 +01:00
{"summary_quicksearch_type", "0", &prefs_common.summary_quicksearch_type, P_INT,
NULL, NULL, NULL},
#ifndef MAEMO
{"summary_quicksearch_recurse", "1", &prefs_common.summary_quicksearch_recurse, P_INT,
NULL, NULL, NULL},
#else
{"summary_quicksearch_recurse", "0", &prefs_common.summary_quicksearch_recurse, P_INT,
NULL, NULL, NULL},
#endif
2001-04-19 14:21:46 +02:00
2003-05-27 09:36:59 +02:00
{"io_timeout_secs", "60", &prefs_common.io_timeout_secs,
P_INT, NULL, NULL, NULL},
{"hide_score", "-9999", &prefs_common.kill_score, P_INT,
NULL, NULL, NULL},
{"important_score", "1", &prefs_common.important_score, P_INT,
NULL, NULL, NULL},
{"clip_log", "TRUE", &prefs_common.cliplog, P_BOOL,
NULL, NULL, NULL},
2003-05-09 10:21:45 +02:00
{"log_length", "500", &prefs_common.loglength, P_INT,
NULL, NULL, NULL},
#ifndef MAEMO
{"enable_log_standard", "TRUE", &prefs_common.enable_log_standard, P_BOOL,
NULL, NULL, NULL},
{"enable_log_warning", "TRUE", &prefs_common.enable_log_warning, P_BOOL,
NULL, NULL, NULL},
{"enable_log_error", "TRUE", &prefs_common.enable_log_error, P_BOOL,
NULL, NULL, NULL},
{"enable_log_status", "TRUE", &prefs_common.enable_log_status, P_BOOL,
NULL, NULL, NULL},
#else
{"enable_log_standard", "FALSE", &prefs_common.enable_log_standard, P_BOOL,
NULL, NULL, NULL},
{"enable_log_warning", "FALSE", &prefs_common.enable_log_warning, P_BOOL,
NULL, NULL, NULL},
{"enable_log_error", "FALSE", &prefs_common.enable_log_error, P_BOOL,
NULL, NULL, NULL},
{"enable_log_status", "FALSE", &prefs_common.enable_log_status, P_BOOL,
NULL, NULL, NULL},
#endif
{"log_msg_color", "#00af00", &prefs_common.log_msg_color, P_COLOR,
NULL, NULL, NULL},
{"log_warn_color", "#af0000", &prefs_common.log_warn_color, P_COLOR,
NULL, NULL, NULL},
{"log_error_color", "#af0000", &prefs_common.log_error_color, P_COLOR,
NULL, NULL, NULL},
{"log_in_color", "#000000", &prefs_common.log_in_color, P_COLOR,
NULL, NULL, NULL},
{"log_out_color", "#0000ef", &prefs_common.log_out_color, P_COLOR,
NULL, NULL, NULL},
{"log_status_ok_color", "#00af00", &prefs_common.log_status_ok_color, P_COLOR,
NULL, NULL, NULL},
{"log_status_nok_color", "#0000af", &prefs_common.log_status_nok_color, P_COLOR,
NULL, NULL, NULL},
{"log_status_skip_color", "#aa00aa", &prefs_common.log_status_skip_color, P_COLOR,
NULL, NULL, NULL},
{"enable_filtering_debug", "FALSE", &prefs_common.enable_filtering_debug, P_BOOL,
NULL, NULL, NULL},
{"filtering_debug_level", "1", &prefs_common.filtering_debug_level, P_INT,
NULL, NULL, NULL},
{"enable_filtering_debug_inc", "TRUE", &prefs_common.enable_filtering_debug_inc, P_BOOL,
NULL, NULL, NULL},
{"enable_filtering_debug_manual", "TRUE", &prefs_common.enable_filtering_debug_manual, P_BOOL,
NULL, NULL, NULL},
{"enable_filtering_debug_folder_proc", "FALSE", &prefs_common.enable_filtering_debug_folder_proc, P_BOOL,
NULL, NULL, NULL},
{"enable_filtering_debug_pre_proc", "FALSE", &prefs_common.enable_filtering_debug_pre_proc, P_BOOL,
NULL, NULL, NULL},
{"enable_filtering_debug_post_proc", "FALSE", &prefs_common.enable_filtering_debug_post_proc, P_BOOL,
NULL, NULL, NULL},
{"filtering_debug_clip_log", "TRUE", &prefs_common.filtering_debug_cliplog, P_BOOL,
NULL, NULL, NULL},
{"filtering_debug_log_length", "500", &prefs_common.filtering_debug_loglength, P_INT,
NULL, NULL, NULL},
{"gtk_can_change_accels", "TRUE", &prefs_common.gtk_can_change_accels, P_BOOL,
NULL, NULL, NULL},
{"color_new", "179", &prefs_common.color_new, P_COLOR,
2003-02-18 06:55:38 +01:00
NULL, NULL, NULL},
/* Some windows' sizes */
{"filteringwin_width", "500", &prefs_common.filteringwin_width, P_INT,
NULL, NULL, NULL},
{"filteringwin_height", "-1", &prefs_common.filteringwin_height, P_INT,
NULL, NULL, NULL},
2005-09-22 23:08:02 +02:00
{"filteringactionwin_width", "490", &prefs_common.filteringactionwin_width, P_INT,
NULL, NULL, NULL},
{"filteringactionwin_height", "-1", &prefs_common.filteringactionwin_height, P_INT,
NULL, NULL, NULL},
{"matcherwin_width", "520", &prefs_common.matcherwin_width, P_INT,
NULL, NULL, NULL},
{"matcherwin_height", "-1", &prefs_common.matcherwin_height, P_INT,
NULL, NULL, NULL},
{"templateswin_width", "480", &prefs_common.templateswin_width, P_INT,
NULL, NULL, NULL},
{"templateswin_height", "-1", &prefs_common.templateswin_height, P_INT,
NULL, NULL, NULL},
{"actionswin_width", "486", &prefs_common.actionswin_width, P_INT,
NULL, NULL, NULL},
{"actionswin_height", "-1", &prefs_common.actionswin_height, P_INT,
NULL, NULL, NULL},
{"tagswin_width", "486", &prefs_common.tagswin_width, P_INT,
NULL, NULL, NULL},
{"tagswin_height", "-1", &prefs_common.tagswin_height, P_INT,
NULL, NULL, NULL},
{"addressbookwin_width", "520", &prefs_common.addressbookwin_width, P_INT,
NULL, NULL, NULL},
{"addressbookwin_height", "-1", &prefs_common.addressbookwin_height, P_INT,
NULL, NULL, NULL},
{"addressbookeditpersonwin_width", "640", &prefs_common.addressbookeditpersonwin_width, P_INT,
NULL, NULL, NULL},
{"addressbookeditpersonwin_height", "320", &prefs_common.addressbookeditpersonwin_height, P_INT,
NULL, NULL, NULL},
{"addressbookeditgroupwin_width", "580", &prefs_common.addressbookeditgroupwin_width, P_INT,
NULL, NULL, NULL},
{"addressbookeditgroupwin_height", "340", &prefs_common.addressbookeditgroupwin_height, P_INT,
NULL, NULL, NULL},
{"pluginswin_width", "-1", &prefs_common.pluginswin_width, P_INT,
NULL, NULL, NULL},
{"pluginswin_height", "-1", &prefs_common.pluginswin_height, P_INT,
NULL, NULL, NULL},
{"prefswin_width", "600", &prefs_common.prefswin_width, P_INT,
NULL, NULL, NULL},
{"prefswin_height", "-1", &prefs_common.prefswin_height, P_INT,
NULL, NULL, NULL},
{"folderitemwin_width", "500", &prefs_common.folderitemwin_width, P_INT,
NULL, NULL, NULL},
{"folderitemwin_height", "-1", &prefs_common.folderitemwin_height, P_INT,
NULL, NULL, NULL},
{"zero_replacement_char", "0", &prefs_common.zero_replacement, P_STRING,
NULL, NULL, NULL},
{"editaccountwin_width", "500", &prefs_common.editaccountwin_width, P_INT,
NULL, NULL, NULL},
{"editaccountwin_height", "-1", &prefs_common.editaccountwin_height, P_INT,
NULL, NULL, NULL},
{"accountswin_width", "500", &prefs_common.accountswin_width, P_INT,
NULL, NULL, NULL},
{"accountswin_height", "-1", &prefs_common.accountswin_height, P_INT,
NULL, NULL, NULL},
{"logwin_width", "520", &prefs_common.logwin_width, P_INT,
NULL, NULL, NULL},
{"logwin_height", "-1", &prefs_common.logwin_height, P_INT,
NULL, NULL, NULL},
{"filtering_debugwin_width", "600", &prefs_common.filtering_debugwin_width, P_INT,
NULL, NULL, NULL},
{"filtering_debugwin_height", "-1", &prefs_common.filtering_debugwin_height, P_INT,
NULL, NULL, NULL},
{"folderselwin_width", "300", &prefs_common.folderselwin_width, P_INT,
NULL, NULL, NULL},
{"folderselwin_height", "-1", &prefs_common.folderselwin_height, P_INT,
NULL, NULL, NULL},
{"addressaddwin_width", "300", &prefs_common.addressaddwin_width, P_INT,
NULL, NULL, NULL},
{"addressaddwin_height", "-1", &prefs_common.addressaddwin_height, P_INT,
NULL, NULL, NULL},
{"addressbook_folderselwin_width", "300", &prefs_common.addressbook_folderselwin_width, P_INT,
NULL, NULL, NULL},
{"addressbook_folderselwin_height", "-1", &prefs_common.addressbook_folderselwin_height, P_INT,
NULL, NULL, NULL},
2005-09-22 23:08:02 +02:00
/* Hidden */
{"warn_dnd", "1", &prefs_common.warn_dnd, P_INT,
NULL, NULL, NULL},
2005-09-22 23:08:02 +02:00
{"utf8_instead_of_locale_for_broken_mail", "0",
&prefs_common.broken_are_utf8, P_INT,
NULL, NULL, NULL},
{"enable_swap_from", "FALSE", &prefs_common.swap_from, P_BOOL,
NULL, NULL, NULL},
{"use_stripes_everywhere", "TRUE", &prefs_common.use_stripes_everywhere, P_BOOL,
NULL, NULL, NULL},
{"use_stripes_in_summaries", "TRUE", &prefs_common.use_stripes_in_summaries, P_BOOL,
2005-09-22 23:08:02 +02:00
NULL, NULL, NULL},
{"stripes_color_offset", "4000", &prefs_common.stripes_color_offset, P_INT,
NULL, NULL, NULL},
{"enable_dotted_lines", "FALSE", &prefs_common.enable_dotted_lines, P_BOOL,
NULL, NULL, NULL},
2005-09-22 23:08:02 +02:00
{"enable_hscrollbar", "TRUE", &prefs_common.enable_hscrollbar, P_BOOL,
NULL, NULL, NULL},
{"folderview_vscrollbar_policy", "0",
&prefs_common.folderview_vscrollbar_policy, P_ENUM,
NULL, NULL, NULL},
{"textview_cursor_visible", "FALSE",
&prefs_common.textview_cursor_visible, P_BOOL,
NULL, NULL, NULL},
{"hover_timeout", "500", &prefs_common.hover_timeout, P_INT,
NULL, NULL, NULL},
#ifndef MAEMO
2005-09-22 23:08:02 +02:00
{"cache_max_mem_usage", "4096", &prefs_common.cache_max_mem_usage, P_INT,
NULL, NULL, NULL},
{"cache_min_keep_time", "15", &prefs_common.cache_min_keep_time, P_INT,
NULL, NULL, NULL},
#else
{"cache_max_mem_usage", "4096", &prefs_common.cache_max_mem_usage, P_INT,
NULL, NULL, NULL},
{"cache_min_keep_time", "0", &prefs_common.cache_min_keep_time, P_INT,
NULL, NULL, NULL},
#endif
2005-09-22 23:08:02 +02:00
{"thread_by_subject_max_age", "10", &prefs_common.thread_by_subject_max_age,
P_INT, NULL, NULL, NULL },
{"last_opened_folder", "", &prefs_common.last_opened_folder,
P_STRING, NULL, NULL, NULL },
{"goto_last_folder_on_startup", "FALSE", &prefs_common.goto_last_folder_on_startup,
P_BOOL, NULL, NULL, NULL },
2005-09-22 23:08:02 +02:00
{"summary_quicksearch_sticky", "1", &prefs_common.summary_quicksearch_sticky, P_INT,
NULL, NULL, NULL},
{"summary_quicksearch_dynamic", "0", &prefs_common.summary_quicksearch_dynamic, P_INT,
NULL, NULL, NULL},
{"summary_quicksearch_autorun", "0", &prefs_common.summary_quicksearch_autorun, P_INT,
NULL, NULL, NULL},
2005-09-22 23:08:02 +02:00
{"statusbar_update_step", "10", &prefs_common.statusbar_update_step, P_INT,
NULL, NULL, NULL},
{"compose_no_markup", "FALSE", &prefs_common.compose_no_markup, P_BOOL,
NULL, NULL, NULL},
{"skip_ssl_cert_check", "FALSE", &prefs_common.skip_ssl_cert_check, P_BOOL,
NULL, NULL, NULL},
{"live_dangerously", "FALSE", &prefs_common.live_dangerously, P_BOOL,
NULL, NULL, NULL},
{"save_parts_readwrite", "FALSE", &prefs_common.save_parts_readwrite, P_BOOL,
NULL, NULL, NULL},
{"hide_quotes", "0", &prefs_common.hide_quotes, P_INT,
NULL, NULL, NULL},
{"unsafe_ssl_certs", "FALSE", &prefs_common.unsafe_ssl_certs, P_BOOL,
NULL, NULL, NULL},
#ifndef MAEMO
{"real_time_sync", "FALSE", &prefs_common.real_time_sync, P_BOOL,
NULL, NULL, NULL},
#else
{"real_time_sync", "TRUE", &prefs_common.real_time_sync, P_BOOL,
NULL, NULL, NULL},
#endif
{"print_paper_type", NULL, &prefs_common.print_paper_type, P_STRING,
NULL, NULL, NULL},
{"print_paper_orientation", "0", &prefs_common.print_paper_orientation, P_INT,
NULL, NULL, NULL},
{"print_use_color", "0", &prefs_common.print_use_color, P_INT,
NULL, NULL, NULL},
{"print_use_collate", "0", &prefs_common.print_use_collate, P_INT,
NULL, NULL, NULL},
{"print_use_reverse", "0", &prefs_common.print_use_reverse, P_INT,
NULL, NULL, NULL},
{"print_use_duplex", "0", &prefs_common.print_use_duplex, P_INT,
NULL, NULL, NULL},
{"print_imgs", "1", &prefs_common.print_imgs, P_INT,
NULL, NULL, NULL},
{"print_previewwin_width", "600", &prefs_common.print_previewwin_width, P_INT,
NULL, NULL, NULL},
{"print_previewwin_height", "-1", &prefs_common.print_previewwin_height, P_INT,
NULL, NULL, NULL},
{"use_networkmanager", "TRUE", &prefs_common.use_networkmanager, P_BOOL,
NULL, NULL, NULL},
{"use_shred", "FALSE", &prefs_common.use_shred, P_BOOL,
NULL, NULL, NULL},
2001-04-19 14:21:46 +02:00
{NULL, NULL, NULL, P_OTHER, NULL, NULL, NULL}
};
2004-05-10 12:22:28 +02:00
/*
* Read history list from the specified history file in the specified directory (subdir of rc_dir)
* Fallback to default_list if history file is not found
2004-05-10 12:22:28 +02:00
*/
GList *prefs_common_read_history_from_dir_with_defaults(const gchar *dirname, const gchar *history,
GList *default_list)
2001-04-19 14:21:46 +02:00
{
2001-11-07 11:29:45 +01:00
FILE *fp;
gchar *path;
gchar buf[PREFSBUFSIZE];
2004-05-10 12:22:28 +02:00
GList *tmp = NULL;
2001-11-07 11:29:45 +01:00
if (dirname) {
path = g_strconcat(get_rc_dir(), G_DIR_SEPARATOR_S, dirname,
G_DIR_SEPARATOR_S, history,
NULL);
} else {
2004-05-10 12:22:28 +02:00
path = g_strconcat(get_rc_dir(), G_DIR_SEPARATOR_S, history,
2001-11-07 11:29:45 +01:00
NULL);
}
if ((fp = g_fopen(path, "rb")) == NULL) {
2001-11-07 11:29:45 +01:00
if (ENOENT != errno) FILE_OP_ERROR(path, "fopen");
g_free(path);
/* returns default list if set, otherwise NULL */
return default_list;
2001-11-07 11:29:45 +01:00
}
g_free(path);
while (fgets(buf, sizeof(buf), fp) != NULL) {
g_strstrip(buf);
if (buf[0] == '\0') continue;
2004-05-10 12:22:28 +02:00
tmp = add_history(tmp, buf);
2001-11-07 11:29:45 +01:00
}
fclose(fp);
2004-05-10 12:22:28 +02:00
tmp = g_list_reverse(tmp);
return tmp;
}
/*
* Read history list from the specified history file in the specified directory (subdir of rc_dir)
*/
static GList *prefs_common_read_history_from_dir(const gchar *dirname, const gchar *history)
{
return prefs_common_read_history_from_dir_with_defaults(dirname, history, NULL);
}
/*
* Read history list from the specified history file
*/
static GList *prefs_common_read_history(const gchar *history)
{
return prefs_common_read_history_from_dir(NULL, history);
}
2004-05-10 12:22:28 +02:00
void prefs_common_read_config(void)
{
gchar *rcpath;
gchar *tmp;
rcpath = g_strconcat(get_rc_dir(), G_DIR_SEPARATOR_S, COMMON_RC, NULL);
prefs_read_config(param, "Common", rcpath, NULL);
#ifdef G_OS_WIN32
prefs_read_config(param_os_specific, "CommonWin32", rcpath, NULL);
#endif
g_free(rcpath);
tmp = g_strdup(gettext(prefs_common.date_format));
g_free(prefs_common.date_format);
prefs_common.date_format = tmp;
2001-11-07 11:29:45 +01:00
prefs_common.mime_open_cmd_history =
2004-05-10 12:22:28 +02:00
prefs_common_read_history(COMMAND_HISTORY);
prefs_common.summary_quicksearch_history =
prefs_common_read_history(QUICKSEARCH_HISTORY);
prefs_common.summary_search_from_history =
prefs_common_read_history(SUMMARY_SEARCH_FROM_HISTORY);
prefs_common.summary_search_to_history =
prefs_common_read_history(SUMMARY_SEARCH_TO_HISTORY);
prefs_common.summary_search_subject_history =
prefs_common_read_history(SUMMARY_SEARCH_SUBJECT_HISTORY);
prefs_common.summary_search_body_history =
prefs_common_read_history(SUMMARY_SEARCH_BODY_HISTORY);
prefs_common.summary_search_adv_condition_history =
prefs_common_read_history(SUMMARY_SEARCH_ADV_CONDITION_HISTORY);
prefs_common.message_search_history =
prefs_common_read_history(MESSAGE_SEARCH_HISTORY);
prefs_common.addressbook_custom_attributes = addressbook_update_custom_attr_from_prefs();
colorlabel_update_colortable_from_prefs();
2001-04-19 14:21:46 +02:00
}
#define TRY(func) \
if (!(func)) \
{ \
g_warning("failed to write\n"); \
goto out; \
} \
2004-05-10 12:22:28 +02:00
/*
* Save history list to the specified history file in the specified directory (subdir of rc_dir)
2004-05-10 12:22:28 +02:00
*/
static void prefs_common_save_history_to_dir(const gchar *dirname, const gchar *history, GList *list)
2001-04-19 14:21:46 +02:00
{
2001-11-07 11:29:45 +01:00
GList *cur;
FILE *fp;
gchar *path, *tmp_path;
2001-11-07 11:29:45 +01:00
if (dirname) {
path = g_strconcat(get_rc_dir(), G_DIR_SEPARATOR_S, dirname,
G_DIR_SEPARATOR_S, history,
NULL);
} else {
2004-05-10 12:22:28 +02:00
path = g_strconcat(get_rc_dir(), G_DIR_SEPARATOR_S, history,
2001-11-07 11:29:45 +01:00
NULL);
}
tmp_path = g_strconcat(path, ".tmp", NULL);
if ((fp = g_fopen(tmp_path, "wb")) == NULL) {
FILE_OP_ERROR(tmp_path, "fopen");
goto out;
2001-11-07 11:29:45 +01:00
}
2004-05-10 12:22:28 +02:00
for (cur = list; cur != NULL; cur = cur->next) {
TRY(fputs((gchar *)cur->data, fp) != EOF &&
fputc('\n', fp) != EOF);
2001-11-07 11:29:45 +01:00
}
if (fclose(fp) == EOF) {
FILE_OP_ERROR(tmp_path, "fclose");
fp = NULL;
goto out;
}
fp = NULL;
#ifdef G_OS_WIN32
claws_unlink(path);
#endif
if (g_rename(tmp_path, path) < 0) {
FILE_OP_ERROR(path, "rename");
goto out;
}
out:
if (fp)
fclose(fp);
g_free(tmp_path);
2001-11-07 11:29:45 +01:00
g_free(path);
2001-04-19 14:21:46 +02:00
}
/*
* Save history list to the specified history file
*/
static void prefs_common_save_history(const gchar *history, GList *list)
{
prefs_common_save_history_to_dir(NULL, history, list);
}
#undef TRY
2004-07-16 13:12:46 +02:00
void prefs_common_write_config(void)
2004-05-10 12:22:28 +02:00
{
2004-07-16 13:12:46 +02:00
prefs_write_config(param, "Common", COMMON_RC);
#ifdef G_OS_WIN32
prefs_write_config(param_os_specific, "CommonWin32", COMMON_RC);
#endif
2004-05-10 12:22:28 +02:00
prefs_common_save_history(COMMAND_HISTORY,
prefs_common.mime_open_cmd_history);
prefs_common_save_history(QUICKSEARCH_HISTORY,
prefs_common.summary_quicksearch_history);
prefs_common_save_history(SUMMARY_SEARCH_FROM_HISTORY,
prefs_common.summary_search_from_history);
prefs_common_save_history(SUMMARY_SEARCH_TO_HISTORY,
prefs_common.summary_search_to_history);
prefs_common_save_history(SUMMARY_SEARCH_SUBJECT_HISTORY,
prefs_common.summary_search_subject_history);
prefs_common_save_history(SUMMARY_SEARCH_BODY_HISTORY,
prefs_common.summary_search_body_history);
prefs_common_save_history(SUMMARY_SEARCH_ADV_CONDITION_HISTORY,
prefs_common.summary_search_adv_condition_history);
prefs_common_save_history(MESSAGE_SEARCH_HISTORY,
prefs_common.message_search_history);
prefs_common_save_history_to_dir(ADDRBOOK_DIR,
ADDRESSBOOK_CUSTOM_ATTRIBUTES,
prefs_common.addressbook_custom_attributes);
2004-05-10 12:22:28 +02:00
}
/* make a copy of string 'in' into buffer 'out'. un-escape \ sequences.
both 'in' and 'out' must be non-NULL.
'out' must be a pointer to a buffer whose size is at least equal
to strlen(txt)+1, this buffer will get cleared. out's contents
will always get set to a valid string, even if it's "".*/
void pref_get_unescaped_pref(gchar *out, const gchar *in)
{
const gchar *i;
gchar *o;
*out = '\0';
g_return_if_fail( in != NULL );
g_return_if_fail( out != NULL );
i = in;
o = out;
memset(out, 0, strlen(in)+1);
while (*i != '\0') {
if (*i == '\\' && *(i+1) == 'n') {
*o++ = '\n';
i++;
} else if (*i == '\\' && *(i+1) == 't') {
*o++ = '\t';
i++;
} else if (*i == '\\' && *(i+1) == '\\') {
*o++ = '\\';
i++;
} else {
*o++ = *i;
}
i++;
}
*o='\0';
}
/* make a copy of string 'in' into buffer 'out'. escape \ sequences.
both 'in' and 'out' must be non-NULL.
'out' must be a pointer to a buffer whose size is at least equal
to 2*strlen(txt)+1. out's contents will always get set to a valid
string, even if it's "". */
void pref_get_escaped_pref(gchar *out, const gchar *in)
{
const gchar *i;
gchar *o;
*out = '\0';
g_return_if_fail( in != NULL );
g_return_if_fail( out != NULL );
i = in;
o = out;
while (*i != '\0') {
if (*i == '\n') {
*o++ = '\\';
*o++ = 'n';
} else if (*i == '\t') {
*o++ = '\\';
*o++ = 't';
} else if (*i == '\\') {
*o++ = '\\';
*o++ = '\\';
} else {
*o++ = *i;
}
i++;
}
*o = '\0';
}
/* set the contents of a textview widget from the internal \-escaped
representation of a pref string. both txt and textview must be non-NULL. */
void pref_set_textview_from_pref(GtkTextView *textview, const gchar *txt)
{
GtkTextBuffer *buffer;
gchar *out = NULL;
g_return_if_fail( textview != NULL );
buffer = gtk_text_view_get_buffer(textview);
if (!txt) {
gtk_text_buffer_set_text(buffer, "", -1);
} else {
out = malloc(strlen(txt)+1);
pref_get_unescaped_pref(out, txt);
gtk_text_buffer_set_text(buffer, out?out:"", -1);
g_free(out);
}
}
/* set the contents of a gtkentry widget from the internal \-escaped
representation of a pref string. both txt and entry must be non-NULL. */
void pref_set_entry_from_pref(GtkEntry *entry, const gchar *txt)
{
gchar *out = NULL;
g_return_if_fail( entry != NULL );
if (!txt) {
gtk_entry_set_text(entry, "");
} else {
out = malloc(strlen(txt)+1);
pref_get_unescaped_pref(out, txt);
gtk_entry_set_text(entry, out?out:"");
g_free(out);
}
}
/* get the \-escaped internal representation of a pref from the contents of
a textview widget. textview must be non-NULL. */
gchar *pref_get_pref_from_textview(GtkTextView *textview)
{
GtkTextBuffer *buffer;
GtkTextIter start, end;
gchar *out, *tmp;
g_return_val_if_fail( textview != NULL, "" );
buffer = gtk_text_view_get_buffer(textview);
gtk_text_buffer_get_start_iter(buffer, &start);
gtk_text_buffer_get_iter_at_offset(buffer, &end, -1);
tmp = gtk_text_buffer_get_text(buffer, &start, &end, FALSE);
out = malloc(2*strlen(tmp)+1);
pref_get_escaped_pref(out, tmp);
g_free(tmp);
return out?out:"";
}
/* get the \-escaped internal representation of a pref from the contents of
a gtkentry widget. entry must be non-NULL. */
gchar *pref_get_pref_from_entry(GtkEntry *entry)
{
gchar *out, *tmp;
g_return_val_if_fail( entry != NULL, "" );
tmp = gtk_editable_get_chars(GTK_EDITABLE(entry), 0, -1);
out = malloc(2*strlen(tmp)+1);
pref_get_escaped_pref(out, tmp);
g_free(tmp);
return out?out:"";
}
/* ugly hack to be able to get this pref from ssl_certificate.c */
gboolean prefs_common_unsafe_ssl_certs(void)
{
return prefs_common.unsafe_ssl_certs;
}
gboolean prefs_common_enable_log_standard(void)
{
return prefs_common.enable_log_standard;
}
gboolean prefs_common_enable_log_warning(void)
{
return prefs_common.enable_log_warning;
}
gboolean prefs_common_enable_log_error(void)
{
return prefs_common.enable_log_error;
}
gboolean prefs_common_enable_log_status(void)
{
return prefs_common.enable_log_status;
}
#ifdef MAEMO
const gchar *prefs_common_get_data_root(void)
{
if (prefs_common.data_root && *prefs_common.data_root)
return prefs_common.data_root;
else
return NULL;
}
#endif
/**
return the translated name of a header, if the translate_header option is
set, otherwise return the untranslated header name (header_name itself).
this function is provided for convenience, it's an interface to
prefs_common.trans_hdr.
works with header names either with or without trailing colon, provided
that gettext found such header name in the sources (they should all be
found in src/gtk/headers.h anyway).
*/
const gchar *prefs_common_translated_header_name(const gchar *header_name)
{
if (header_name == NULL || *header_name == '\0')
return header_name;
return prefs_common.trans_hdr ? gettext(header_name) : header_name;
}
const gchar *prefs_common_get_uri_cmd(void)
{
gchar *tmp = NULL;
if (!prefs_common.cmds_use_system_default)
return prefs_common.uri_cmd;
tmp = g_find_program_in_path("xdg-open");
if (!tmp)
return prefs_common.uri_cmd;
g_free(tmp);
return "xdg-open %s";
}
const gchar *prefs_common_get_ext_editor_cmd(void)
{
return prefs_common.ext_editor_cmd;
#if 0 /* we should do that, but it detaches the editor and breaks
compose.c's external composition. */
gchar *tmp = NULL;
if (!prefs_common.cmds_use_system_default)
return prefs_common.ext_editor_cmd;
tmp = g_find_program_in_path("xdg-open");
if (!tmp)
return prefs_common.ext_editor_cmd;
g_free(tmp);
return "xdg-open %s";
#endif
}
gboolean prefs_common_get_use_shred(void)
{
return prefs_common.use_shred;
}