Re: [Q] : policy to run external commands



hi,

> I want to be able to call a user defined external command on each message
> that a filter matches. I plan to use gnome_execute_shell function but :
> 
> 	what are the security issue I have to keep in mind, ie how to be as
> safe as possible,

running apps on unknown content is always dangerous - and in your case
if you haven't read the mail yet you don't know it's content - so
eeeck!!!

but if you still want to do this and if your mailbox is pop3 you can
filter the mails through procmail to do that stuff. read 'man procmail'
and 'man procmailrc'.

good luck.

ps: hope that balsa wont ever allow stuff like this. i see what happens
on m$ world.

> 	
> 	and I want to be able to feed the command with certain parts of the
> matching message (header fields, even body in one or another form), so what
> would you want to see there : fork one command per matching message (using
> command line to pass header fiels, but not the body) or fork one command
> for all matching messages and create a thread that feed the command with
> messages part (here there are locking issue because if the command is long
> enough, I don't want that someone can delete/move a message the feeding
> thread will reference later leading to a crash).






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