Mercurial > pidgin
comparison plugins/mailchk.c @ 11256:bb0d7b719af2
[gaim-migrate @ 13430]
I give you regex filtering in the debug window.
We keep a buffer of all the text, so when unpausing all the messages that were output when paused will be displayed, as well as when you change the filter.
This _should_ be alright on systems that don't have regex.h but I haven't gotten anyone to test it recently, if it's busted, just #ifdef HAVE_REGEX_H it.
committer: Tailor Script <tailor@pidgin.im>
author | Gary Kramlich <grim@reaperworld.com> |
---|---|
date | Sat, 13 Aug 2005 22:09:34 +0000 |
parents | 50224ac8184d |
children | 58bc500cf226 |
comparison
equal
deleted
inserted
replaced
11255:1b1d63602d77 | 11256:bb0d7b719af2 |
---|---|
115 plugin_load(GaimPlugin *plugin) | 115 plugin_load(GaimPlugin *plugin) |
116 { | 116 { |
117 GaimBuddyList *list = gaim_get_blist(); | 117 GaimBuddyList *list = gaim_get_blist(); |
118 void *conn_handle = gaim_connections_get_handle(); | 118 void *conn_handle = gaim_connections_get_handle(); |
119 | 119 |
120 gaim_debug_register_category("mailchk"); | |
121 | |
122 if (!check_timeout(NULL)) { | 120 if (!check_timeout(NULL)) { |
123 gaim_debug_warning("mailchk", "Could not read $MAIL or /var/spool/mail/$USER"); | 121 gaim_debug_warning("mailchk", "Could not read $MAIL or /var/spool/mail/$USER"); |
124 return FALSE; | 122 return FALSE; |
125 } | 123 } |
126 | 124 |
142 g_source_remove(timer); | 140 g_source_remove(timer); |
143 timer = 0; | 141 timer = 0; |
144 if (mail) | 142 if (mail) |
145 gtk_widget_destroy(mail); | 143 gtk_widget_destroy(mail); |
146 mail = NULL; | 144 mail = NULL; |
147 | |
148 gaim_debug_unregister_category("mailchk"); | |
149 | 145 |
150 return TRUE; | 146 return TRUE; |
151 } | 147 } |
152 | 148 |
153 static GaimPluginInfo info = | 149 static GaimPluginInfo info = |