[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] Monitoring Backups
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] Monitoring Backups
- From: "Rob MacGregor" <rob.macgregor (at) gmail.com>
- Date: Wed, 27 Feb 2008 15:26:46 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=JKhz/QjjoAQrgFcgEn7ZFuFmsOrxqTRzmmKj2ncvuwA=; b=pwZmtHxM67NTAblAd/UoscJQtEdq92g+GT8RrxG1TpjZX8O/kG3p3LFr8yd4ivrLSuvo1l1XZH4wdetINcqGbaqyPE1zmQvv2B4ALheVBTyZYMnuSb5d+cklAfgXJBDRf2CY2xq+CYhj0/v/YYuVsXYmH3rfQm3XUDzJneosmKE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Fr2EK1btVtmzrBYCdaN7cuUWjDkmdJl/t+WMgSAY1JKBDefFb/lRTFn8h6c4lhGby+V6UjwFSphZBudp60feauXCD6jYFKOAy9NpnOLp2aGSrDDPwycUQkG5w5wo0MFW9hI+vofxsjum1pcS0dwdcXuK+nZvuTB/xu0P6ZVaAD8=
- References: <E217882A588751409B3A2C4BCE3629A461ADE80F40 (at) winx64.stenhouse.local> <997a524e0802261426r3f7c60cbyb9a168354cbd7c37 (at) mail.gmail.com> <73C3337877023246872FB2E97FD1636CF0466E (at) mailx10.virtual-email.net> <E217882A588751409B3A2C4BCE3629A461ADE80F5C (at) winx64.stenhouse.local>
On Wed, Feb 27, 2008 at 2:26 PM, Joshua Johnson
<joshua (at) stenhouseconsulting.com> wrote:
> Steve,
>
> Thanks that is another good option that we will consider. Would it be possible to call fetchmail directly from the hobbit script and just process new mail on each run? I haven't used fetchmail so I don't know what the options for scripting with it.
[I'll say now I'm a long term user of fetchmail, not to mention one of
the list admins for the fetchmail-users mailing list]
Yes, you could do that. You could easily configure fetchmail to pass
the emails through a script which would give you a log of your choice
to parse for your final Hobbit report. Something like the following
(not tested, but should work) for your fetchmail config:
poll pop.my.net uidl user 'name' password 'secure' keep mda
/usr/local/bin/myscript
Then call fetchmail as "fetchmail -f /path/to/config" from your hobbit
script and configure your hobbit script to parse the results of
"myscript".
(Note that the above will NOT delete the emails from the POP server)
--
Please keep list traffic on the list.
Rob MacGregor
Whoever fights monsters should see to it that in the process he
doesn't become a monster. Friedrich Nietzsche