Gentoo Archives: gentoo-user

From: Stroller <stroller@××××××××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Changing subject and from lines of cron emails
Date: Mon, 21 Dec 2009 12:07:20
Message-Id: D860741D-827D-4933-9E93-C7A0C8A7E66D@stellar.eclipse.co.uk
1 'Sup Gentoo?
2
3 I'm working on a daily cron job to email me daily. It happens to be
4 details of new shows available for download on the BBC's iPlayer
5 website. OMG! get_iplayer rocks!
6
7 If I have the following in my crontab:
8
9 0 8 * * * /usr/local/bin/get_iplayer -z "Daily Summary" 2>&1 | grep -v
10 ^Added
11
12 Then the email's subject is ugly.
13
14 A bit of Googling [1] shows me that:
15
16 0 8 * * * /usr/local/bin/get_iplayer -z "Daily Summary" 2>&1 | grep -v
17 ^Added | mailx -s "iPlayer Daily Summary" stroller
18
19 which gives a neater subject line.
20
21 However the "from: " address is stroller@×××××××××.domain, which I
22 feel is a little untidy.
23
24 It's probably OCD of me to care, but I would prefer the mails to
25 appear in my mail client as from "iPlayer".
26
27 Can anyone suggest a better solution than writing a wrapper script as
28 described at:
29 http://www.mail-archive.com/freebsd-questions@×××××××.org/msg223401.html
30 please?
31
32 This is a great answer, but it means I have extra wrapper scripts
33 cluttering up my system, and since I will probably want multiple
34 summaries (say weekly reports of "drama" and "comedy" categories,
35 delivered on different days) it would mean I need either multiple
36 wrapper scripts, or a single much more complicated one.
37
38 I am probably making my life complicated just for the pernicketyness
39 of it, but any suggestions gratefully received.
40
41 Stroller.
42
43
44
45 [1] http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1261393668323+28353475&threadId=886847

Replies

Subject Author
[gentoo-user] Re: Changing subject and from lines of cron emails reader@×××××××.com
[gentoo-user] Re: Changing subject and from lines of cron emails walt <w41ter@×××××.com>
Re: [gentoo-user] Changing subject and from lines of cron emails Etaoin Shrdlu <shrdlu@×××××××××××××.org>