* [gentoo-user] Changing subject and from lines of cron emails
@ 2009-12-21 11:35 Stroller
2009-12-21 16:19 ` [gentoo-user] " reader
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Stroller @ 2009-12-21 11:35 UTC (permalink / raw
To: gentoo-user
'Sup Gentoo?
I'm working on a daily cron job to email me daily. It happens to be
details of new shows available for download on the BBC's iPlayer
website. OMG! get_iplayer rocks!
If I have the following in my crontab:
0 8 * * * /usr/local/bin/get_iplayer -z "Daily Summary" 2>&1 | grep -v
^Added
Then the email's subject is ugly.
A bit of Googling [1] shows me that:
0 8 * * * /usr/local/bin/get_iplayer -z "Daily Summary" 2>&1 | grep -v
^Added | mailx -s "iPlayer Daily Summary" stroller
which gives a neater subject line.
However the "from: " address is stroller@host.long.domain, which I
feel is a little untidy.
It's probably OCD of me to care, but I would prefer the mails to
appear in my mail client as from "iPlayer".
Can anyone suggest a better solution than writing a wrapper script as
described at:
http://www.mail-archive.com/freebsd-questions@freebsd.org/msg223401.html
please?
This is a great answer, but it means I have extra wrapper scripts
cluttering up my system, and since I will probably want multiple
summaries (say weekly reports of "drama" and "comedy" categories,
delivered on different days) it would mean I need either multiple
wrapper scripts, or a single much more complicated one.
I am probably making my life complicated just for the pernicketyness
of it, but any suggestions gratefully received.
Stroller.
[1] http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1261393668323+28353475&threadId=886847
^ permalink raw reply [flat|nested] 5+ messages in thread
* [gentoo-user] Re: Changing subject and from lines of cron emails
2009-12-21 11:35 [gentoo-user] Changing subject and from lines of cron emails Stroller
@ 2009-12-21 16:19 ` reader
2009-12-21 22:23 ` walt
2009-12-21 22:41 ` [gentoo-user] Changing subject and from lines of cron emails Etaoin Shrdlu
2 siblings, 0 replies; 5+ messages in thread
From: reader @ 2009-12-21 16:19 UTC (permalink / raw
To: gentoo-user
Stroller <stroller@stellar.eclipse.co.uk> writes:
> However the "from: " address is stroller@host.long.domain, which I
> feel is a little untidy.
Hopefully you use sendmail as mta. If so either, Masquerading or
generics table can rewrite in or out going mail far as from field.
I'm familiar only with sendmail and masquerading. Sendmail can be
made to masquerade as a certain doemain fairly painlessly... If
interersted I can provide details.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [gentoo-user] Re: Changing subject and from lines of cron emails
2009-12-21 11:35 [gentoo-user] Changing subject and from lines of cron emails Stroller
2009-12-21 16:19 ` [gentoo-user] " reader
@ 2009-12-21 22:23 ` walt
2009-12-22 11:07 ` [gentoo-user] Re: get_iplayer rocks! Stroller
2009-12-21 22:41 ` [gentoo-user] Changing subject and from lines of cron emails Etaoin Shrdlu
2 siblings, 1 reply; 5+ messages in thread
From: walt @ 2009-12-21 22:23 UTC (permalink / raw
To: gentoo-user
On 12/21/2009 03:35 AM, Stroller wrote:
> OMG! get_iplayer rocks!
Very cool, thanks. I can't answer your question, but I'm listening to
A Celtic Heartbeat from Radio Wales just 15 minutes after I saw this,
so thanks for the tip and happy holidays :o)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] Changing subject and from lines of cron emails
2009-12-21 11:35 [gentoo-user] Changing subject and from lines of cron emails Stroller
2009-12-21 16:19 ` [gentoo-user] " reader
2009-12-21 22:23 ` walt
@ 2009-12-21 22:41 ` Etaoin Shrdlu
2 siblings, 0 replies; 5+ messages in thread
From: Etaoin Shrdlu @ 2009-12-21 22:41 UTC (permalink / raw
To: gentoo-user
On Monday 21 December 2009, Stroller wrote:
> A bit of Googling [1] shows me that:
>
> 0 8 * * * /usr/local/bin/get_iplayer -z "Daily Summary" 2>&1 | grep -v
> ^Added | mailx -s "iPlayer Daily Summary" stroller
>
> which gives a neater subject line.
>
> However the "from: " address is stroller@host.long.domain, which I
> feel is a little untidy.
>
> It's probably OCD of me to care, but I would prefer the mails to
> appear in my mail client as from "iPlayer".
Some (don't know about gentoo's) versions of the "mail" command have a "-r"
switch that lets you specify the "from" address.
In any case, if, instead of mail/mailx, you use a sendmail-compatible agent
like ssmtp, there you'll definitely have a -r option.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [gentoo-user] Re: get_iplayer rocks!
2009-12-21 22:23 ` walt
@ 2009-12-22 11:07 ` Stroller
0 siblings, 0 replies; 5+ messages in thread
From: Stroller @ 2009-12-22 11:07 UTC (permalink / raw
To: gentoo-user
On 21 Dec 2009, at 22:23, walt wrote:
> On 12/21/2009 03:35 AM, Stroller wrote:
>
>> OMG! get_iplayer rocks!
>
> Very cool, thanks. I can't answer your question, but I'm listening to
> A Celtic Heartbeat from Radio Wales just 15 minutes after I saw this,
> so thanks for the tip and happy holidays :o)
I'm just really impressed by get_iplayer.
It makes it easy to schedule recordings, so that you just create a
search for a series name using the --pvr related options and the whole
series downloads automagically. I always miss the first episodes of
"Have I Got News For You" when a new series starts, because I never
notice that it's on until weeks later, but now never again - the
search is stored, so any new shows will be downloaded.
If you add "tvmode = flashhd,flashvhigh" to your .get_iplayer options
then the shows are downloaded in hi-def 720p. They're converted to mp4
container (the streams are already in the right codecs) and they play
on the PS3. The video quality is really quite good indeed.
I've got my get_iplayer output directory set to one that MediaTomb
knows about (via inotify), so anything new is just there ready waiting
to be watched. I find the command-line options slightly obscure, but
aside from that get_iplayer will revolutionise my TV watching - it
makes it easier than piracy!
I miss out on the best of BBC radio because I'm rarely driving when
it's on, and I just don't listen at home. A customer of mine gave me
an old iPod mini a while back - is an obsolete model, but its 4gig
memory is still enough for hours of shows - so I've bought a £7 radio
transmitter on eBay so I can time-shift radio, too. That's gonna be
great, too!
Stroller.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-12-22 11:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-21 11:35 [gentoo-user] Changing subject and from lines of cron emails Stroller
2009-12-21 16:19 ` [gentoo-user] " reader
2009-12-21 22:23 ` walt
2009-12-22 11:07 ` [gentoo-user] Re: get_iplayer rocks! Stroller
2009-12-21 22:41 ` [gentoo-user] Changing subject and from lines of cron emails Etaoin Shrdlu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox