From mboxrd@z Thu Jan 1 00:00:00 1970 From: daniel.neubacher@xing.com (Daniel Neubacher) Date: Wed, 06 Aug 2008 14:24:01 +0200 Subject: [sup-talk] safe index in the after-poll.rb ? Message-ID: <1218025176-sup-6853@daniel-laptop> Hello there, i've build me a after-poll hook to display the unread mail count in my window manager: system ("echo 0 widget_tell mystatusbar mails text \\|#{num_inbox_total_unread}\\| | awesome-client") This is working, but only when the index is safed. When i read some mails and do not safe the index the count doesnt give me the right amount of unread mails back. So is there a way to save the index automaticly after polling my mails ? thanks in advance Daniel Neubacher