Re: [Evolution] Using filter to forward attachments



Yeah this is correct.  We never implemented a forward-to filter action. 
Not sure why exactly ...

About the only way is to setup an 'incoming filter' which has a matching
criteria of "pipe message to shell command" which does its own
processing of stdin.  If you do something like

rule:

Subject contains Itinerary
pipe to shell command <foo>

action:
stop processing

the shell command will only get run for the right messages, and no
further filters will be run on them (if thats what you want).
  

On Sat, 2003-03-01 at 16:03, guenther wrote:
cheers();

I would appreciate help in using a filter to automatically forward
attachments. The situation is as follows: I get mail with the word
"Itinerary" in the subject; these messages usually have an attachment
which is an HTML file which contains my itinerary for a trip. I would
like to forward the message and attachment to another email account (my
personal account at home). How can I do this?

I just played around with that, but I couldn't find a solution. The only
way I can think of right now (using Evo) is passing that messages to a
shell script, that gets the whole message on STDIN, performs some
substitution (at least for the To: header) and sends that mail using
sendmail, Perl mudules, ...

But I really wonder, how many itineraries you get? ;-) It is not that
much trouble, to forward a mail...

A handy solution to automagic perform those forwards is procmail.
procmail even does that, when you do _not_ have Evo running and thus
adds additional value.

Hope, that helps a bit...

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

_______________________________________________
evolution maillist  -  evolution lists ximian com
http://lists.ximian.com/mailman/listinfo/evolution




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