Re: formail recipe that queries asn.routeviews.org

Mathias Bauer <[email protected]> Tue, 21 Oct 2014 20:40:05 +0200
Newsgroups gmane.mail.procmail
Message-ID <[email protected]>
* Chris wrote on Mon, 20 Oct 2014, at 21:00 (-0500):

> RAW_ASN=`host -W 6 -R 10 -t txt $REVERSE_SENDERIP.asn.routeviews.org |
> sed -e 's/.* text //' -e 's/"//g'`
>
> ASN = `echo $RAW_ASN | cut -d ' ' -f 1`
>
> [...]
>
> The problem I'm having is that in my procmaillog I'm seeing
> this periodically:
>
> host: '.asn.routeviews.org' is not a legal name (empty label)

The variable REVERSE_SENDERIP is empty.  As it is not a procmail
internal variable you may have a look where its values originate
from.

> ASN= From [email protected]  Mon Oct 20 11:41:44 2014
>  Subject: Cron <chris@localhost> fetchmail
> --quit; /usr/local/bin/fetchmail -v
>   Folder: /home/chris/Maildir/new/1413823304.2785_1.localhost

Regards,
Mathias

-- 
CAcert Assurer - See http://www.CAcert.org for details or ask me
GnuPG/OpenPGP: B100 5DC4 9686 BE64 87E9 0E22 44C3 983F A762 9DE8

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
[email protected]
http://mailman.rwth-aachen.de/mailman/listinfo/procmail
signature.asc (application/pgp-signature, 455 B)
-----BEGIN PGP SIGNATURE-----

iQEcBAEBCgAGBQJURqiFAAoJEAC+R9yZE+vYuWwIAKJrG45L3U5CUaZ5z8W1wLNP
vwcxSR02yJKr7XktKspNN6Uy9HWSmNS4wOHknvhE5QunG57iycBE7B27S+D3j3Lz
4jOk4oHvO/AralA5Th5QoxZtIXeuUEJT48OLeKE1c9t8hJ2G+cTu+M1eWOoUgJZG
ePMvv+NruJWiRmsYmrzc8ok/9oGhU4Ai820QUkTIVFUEtcaZ8Y9RoXZPQx2bODXm
nIMQuttsWFvUTgAykl2Hcgl4cd43eSBMTRBDgkaptA4Wg5RuI0r5AVk/T+FUWYUB
pm9KQKM7Yom/bqWgC+AETHe5Mecoqp7IRKsQhNLxiBJYomAEG3tVHe3fCpMX+BA=
=1nUp
-----END PGP SIGNATURE-----