Re: [Evolution] notifying external programs of new mail...



On Thu, 2004-10-28 at 02:40, simran wrote:
Hi All, 

I have the need to alert an external program ("Inbox Monitor" under
gnome, 
which is much like xbiff as far as i'm concerned :-) when new mail has
arrived
in certain folders. 

I have the following setup:

Inbox 
  -> LC
  -> SS
  -> REF
  -> Lists
      -> evolution
      -> mod_perl
      -> htmltmpl


Where LC, SS, REF, Lists are subfolders of Inbox, and 
evolution, mod_perl, htmltmpl are subfolders of Lists. 

I have filters setup so that all my important mail goes into one of
LC, SS or REF
and any list stuff (which i don't want to be alerted about but
regularly check whenever
i can) goes into evolution, mod_perl or htmltmpl. 

I then wrote the attached script that checks the size of the Inbox
files relating
to LC, SS and REF and writes the total size out to a file (which Gnome
Inbox Monitor
looks at and alerts me via a visual icon in a panel).

The problem i am facing now is: 

* When Junk mail arrives, i do not want to be notified of it...
however, i find that 
   Junk mail is stored in the folder it originally got filtered to
(eg. LC) and so the size
   of LC increases.... 

My questoin... is the mail "copied" to the Junk folder and if so...
can i get it autodeleted
from the folder... 

If Junk is a "virtual" folder... how can i either:
  * Tell from the message headers that a message went to Junk

you can't

  or
  * Tell from a certain file that the message is filed in Junk

you can't


I can then modify my script to look at message headers instead of file
size etc... 

simran.

Jeff






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]