[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bb-services: regexes in expect string?
- To: "hobbit (at) hswn.dk" <hobbit (at) hswn.dk>
- Subject: bb-services: regexes in expect string?
- From: Aaron Zink <AaronZink (at) eharmony.com>
- Date: Wed, 2 Jul 2008 12:33:08 -0700
- Accept-language: en-US
- Acceptlanguage: en-US
- Dkim-signature: v=1; a=rsa-sha256; c=simple/simple;  d=eharmony.com; i=AaronZink (at) eharmony.com; q=dns/txt;  s=corp; t=1215027193; x=1246563193;  h=from:sender:reply-to:subject:date:message-id:to:cc:   mime-version:content-transfer-encoding:content-id:   content-description:resent-date:resent-from:resent-sender:   resent-to:resent-cc:resent-message-id:in-reply-to:   references:list-id:list-help:list-unsubscribe:   list-subscribe:list-post:list-owner:list-archive;  z=From:=20Aaron=20Zink=20<AaronZink (at) eharmony.com>|Subject:   =20bb-services:=20regexes=20in=20expect=20string?|Date:   =20Wed,=202=20Jul=202008=2012:33:08=20-0700|Message-ID:   =20<1C7B7B9A7479234582BB043380014B9A131DF1311C (at) EXCHANGE-V   S1.eharmony.com>|To:=20"hobbit (at) hswn.dk"=20<hobbit (at) hswn.dk   >|MIME-Version:=201.0|Content-Transfer-Encoding:=20quoted   -printable;  bh=dU0JIdXKH4lRIR2FeZ6H85nDWrd1jb/EJPPQCKYalIs=;  b=hk9OQyfDGkTpnLzAmVLfAmFW9gJs4cMv5wGr66rVm2UAf6H2fgYIAgdk   NYS/Fyuk9RCSPLs1zPf+KclgsnWalQPdb6YV2+NJvnN39ZcWfDLZIOYhI   yvRlmd5vRBFILrr;
- Domainkey-signature: s=corp; d=eharmony.com; c=nofws; q=dns;  h=X-IronPort-AV:Received:Received:From:To:Date:Subject:   Thread-Topic:Thread-Index:Message-ID:Accept-Language:   Content-Language:X-MS-Has-Attach:X-MS-TNEF-Correlator:   x-cr-puzzleid:x-cr-hashedpuzzle:acceptlanguage:   Content-Type:Content-Transfer-Encoding:MIME-Version;  b=orlS5guVCCFCcyCd88VRIu52k3LLCj3itLX5PsXQ/Gk/XyHbqMCiYiEB   z1wrqdpNHYxo1+uLODv/YSCmMMFv8c+wa6nDVNT5Qq0JiB87cf3LRdoth   4Fxzgr5dLJn7S5i;
- Thread-index: AcjcenTu/L/3WK2hT2OKx7gYVRdBaQ==
- Thread-topic: bb-services: regexes in expect string?
I have this defined in bb-services:
[smtp-transaction]
        send "helo hobbit.domain.com\r\nmail from: <test (at) domain.com>\r\nrcpt to: <test (at) anotherdomain.com>\r\nquit\r\n"
        expect "220-mx01.domain.com ESMTP\r\n220 ESMTP READY\r\n250 mx01.domain.com\r\n250 sender <test (at) domain.com> ok\r\n"
        port 25
and a host that uses it in bb-hosts.  This works great, except that it's tied to the host mx01.domain.com in the expect string.
Is it possible to use regexes in the expect string, such as expect "220-mx0[0|1].domain.com"?  So far my attempts have been unsuccessful and the man pages don't seem to indicate if this is possible.
Aaron Zink
Manager, Corporate IT
eHarmony.com
626.795.4814