[Mimedefang] action_external_filter: entire contents
Steffen Kaiser
skmimedefang at smail.inf.fh-bonn-rhein-sieg.de
Tue Jun 10 03:17:33 EDT 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Mon, 9 Jun 2008, TOUZEAU DAVID wrote:
> I prefer the second way explain by scanning message in INPUTMSG but i did not
> really understand mimedefang-protocol.
The structure / calling sequence of the functions are described in man
mimedefang-filter, the directory structure etc. in mimedefang-protocol.
> In this way, how to hook Mimedefang in order to force it to run an executable
> program just after write INPUTMSG file, wait the execution an return back to
> proccess
>
> What do you think if i write this code and put it in filter_end() ?
>
> if(-e "./INPUTMSG"){
> open(MYTOOL,"/usr/sbin/mytool |") or md_graphdefang_log("Failed opening
> mytool");
> @result = <MYTOOL>;
> chomp $result[0];
> close(MYTOOL) or md_graphdefang_log("Failed closing mytool");
> }
Well, I suppose this piece of code does not do anything useful.
David did a good job crafting the various resend_message_...() functions
in order to bypass shell, pitfalls, etc. (it's the backend function of
stream_by_recipient())
>> filter user can write to the backup store, you can do so right in filter()
^^^^^^
meant filter_begin() actually :(
>> or filter_end() directly. (see man mimedefang-protocol)
Bye,
- --
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFITiqQ5ThHZhj8SBwRAnpmAJ0TYiJJvn8PTC9veehXdFhHMY9YSgCeMTzi
1NDUbQg/OrmZO72zPSZoJ0c=
=fwxF
-----END PGP SIGNATURE-----
More information about the MIMEDefang
mailing list