static pthread_t timer_thread;
-inline void ErrorLocation(const char *file, int line)
+void ErrorLocation(const char *file, int line)
{
fprintf(stderr, " Error in file \"%s\" at line #%d\n", file,
line);
int status;
if (wmnotify_infos.mail_client_argv[0] != NULL) {
- /* Starting external mail client. */
+ if (wmnotify_infos.debug)
+ printf("%s: Starting mail client\n", PACKAGE);
+
ExecuteCommand(wmnotify_infos.mail_client_argv);
double_click_notif = true;
if (wmnotify_infos.debug)
printf("%s: Timer thread iteration.\n", PACKAGE);
+ if (manual_check && wmnotify_infos.debug)
+ printf("%s: Manual check requested\n", PACKAGE);
+
if ((manual_check == true) || (counter == 0)) {
new_messages = CheckForNewMail(manual_check);
manual_check = false;
NewMailAnimation();
(void) usleep(NEW_MAIL_ANIMATION_DURATION);
counter--;
- }
- if (wmnotify_infos.debug)
- printf("%s: counter = %d\n", PACKAGE, counter);
+ if (wmnotify_infos.debug)
+ printf("%s: counter = %d\n", PACKAGE, counter);
+ }
} /* end while */
if (wmnotify_infos.debug)