Hi,

just an idea:

> actionban = oifs=${IFS}; IFS=.; SEP_IP=( <ip> ); set -- ${SEP_IP}; 
> ADDRESSES=$(dig +short -t txt -q $4.$3.$2.$1.abuse-contacts.abusix.org); 
> IFS=${oifs}
>            printf %%b "Subject: [Fail2Ban] <name>: abuse contact info for <ip>
>            Date: `LC_TIME=C date +"%%a, %%d %%h %%Y %%T %%z"`
>            From: <sendername> <<sender>>
>            To: <dest>\n
>            The IP <ip> has the following abuse contacts according to 
> abusix.org:\n
>            ${ADDRESSES//,/\" \"/}\n\n
>            Fail2Ban" | /usr/sbin/sendmail -f <sender> <dest>

is that kind of indentation\continuation lines OK?

I thought that indented lines would rather express extra, distinct 
actions, one per line, not details for one action (but I haven't checked 
that).

Iosif Fettich

------------------------------------------------------------------------------
_______________________________________________
Fail2ban-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fail2ban-users

Reply via email to