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



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... 

Well, not entirely sure (as I don't use the Junk Filtering option
myself), but it should be possible to physically move Junk mails, rather
than stuffing them into a vFolder.

Disable the global Junk Filtering option and enable Filtering (which you
likely already have). Then set up a custom Mail Filter to physically
move Junk mail:

  if    Junk Test, Message is Junk
  then  Move to Folder, <spam>

Make that the first Filter. (You might want to add a Stop Precessing
action at the end of every Filter which is expected to trigger on mails
that should never be caught by any other Filter.)

That way these mails will never end up in one of your 3 Folders which
are checked for new mail.


Question to Jeff or Michael: Moving mails by Filters is the same as
moving using the UI? So that mail still remains in Inbox, marked for
deletion?

(Simran: This should not be an issue for you, if it does -- cause you
don't check Inbox but your special folders only, if you understood it
correctly.)


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

"Junk" actually is a vFolder. Jeff already answered these... ;)

...guenther


-- 
char *t="\10pse\0r\0dtu\0  ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}




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