On Saturday 30 August 2003 14:15, Yorkshire Dave wrote: > On Fri, 2003-08-29 at 14:50, Jason Stubbs wrote: > > Hmmm.... > > > > I've called the script notify and changed it as follows: > > > > #!/bin/sh > > This is probably a silly question but why not just script it straight > into ~/.procmailrc? Because I don't know procmail well enough - barely at all, actually - to be able to do it straight out. Also, I'd like to get the first x lines of the body into the notification message as well. If it's a short e-mail my girlfriend may not have to use the computer at all! ;-) > Oh, and it makes sense to use formail to extract the relevant fields, > that's what it's for. > FROM=`formail -xFrom:` > SUBJ=`formail -xSubject:` > DATE=`formail -xDate:` Hmmm. Sounds cleaner but I've only got one stdin. Wouldn't formail want to see the entire mail message or at least all of the headers? If so, how could I duplicate stdin for each field? Regards, Jason -- [EMAIL PROTECTED] mailing list
- Re: [gentoo-user] Procmail and mail "notifi... Jason Stubbs
- Re: [gentoo-user] Procmail and mail "no... Jason Stubbs
- Re: [gentoo-user] Procmail and mail &quo... Jason Stubbs
- Re: [gentoo-user] Procmail and mail... Spider
- Re: [gentoo-user] Procmail and mail... Spider
- Re: [gentoo-user] Procmail and ... Jason Stubbs
- Re: [gentoo-user] Procmail and mail &quo... Marshal Newrock
- Re: [gentoo-user] Procmail and mail... Jason Stubbs
- Re: [gentoo-user] Procmail and ... Marshal Newrock
- Re: [gentoo-user] Procmail and mail &quo... Yorkshire Dave
- Re: [gentoo-user] Procmail and mail... Jason Stubbs
- Re: [gentoo-user] Procmail and mail "notification&qu... Christopher Fisk
- Re: [gentoo-user] Procmail and mail "notificati... Jason Stubbs
- Re: [gentoo-user] Procmail and mail "notifi... Spider
- Re: [gentoo-user] Procmail and mail "no... Jason Stubbs
- Re: [gentoo-user] Procmail and mail &quo... Spider
- Re: [gentoo-user] Procmail and mail... Jason Stubbs
- Re: [gentoo-user] Procmail and ... Spider
- Re: [gentoo-user] Procmail and ... Jason Stubbs
- Re: [gentoo-user] Procmail and ... Jason Stubbs
- Re: [gentoo-user] Procmail and ... Marshal Newrock
