Szerző: ml
Dátum:
Címzett: exim-users
Tárgy: [exim] message_body in .forward
Hi list,
i have a little problem - i get mails, that look like something:
HANDLE: somestring.ABC
or
HANDLE: somestring.123
one of the lines in the body´s does always start with "HANDLE: " followed by some string and always followed by either ".ABC" or ".123"
Now I would like to sort all Mails that end on .ABC into file_ABC and all Mails that end on .123 into file_123.
Is this possible via a RegEx in .forward, e.G.:
if ($message_body contains "^HANDLE: *.123$") then
save file_123
elif ($message_body contains "^HANDLE: *.ABC$") then
save file_abc
finish
endif
?
Thanks and regards
Sascha