Re: [gentoo-user] PERL and 'mail notification'

2003-09-07 Thread Jason Stubbs
On Monday 08 September 2003 02:12, Doug Weimer wrote: > On Sun, 2003-09-07 at 08:01, Jason Stubbs wrote: > > > > # Can I combine the following two lines in any way? > > # $mail_body = @$mail->body(); does not work. > > $mail_body_ref = $mail->body(); > > @mail_body = @$mail_bo

Re: [gentoo-user] PERL and 'mail notification'

2003-09-07 Thread Doug Weimer
On Sun, 2003-09-07 at 08:01, Jason Stubbs wrote: > # Can I combine the following two lines in any way? > # $mail_body = @$mail->body(); does not work. > $mail_body_ref = $mail->body(); > @mail_body = @$mail_body_ref; @{$mail->body()} works here. If you want, you can also use foreach(@{$mail->body

Re: [gentoo-user] PERL and 'mail notification'

2003-09-07 Thread Jason Cooper
Jason Stubbs ([EMAIL PROTECTED]) scribbled: > On Tuesday 02 September 2003 10:50, Marshal Newrock wrote: > > On Mon, 1 Sep 2003, Jason wrote: > > > above, what I want to do is: > > > > > > @sometext = ("text\n\with\nmore\nthan\none\nnewline\n", > > > "some\nother\nline\n"); > > > @newtext = ("text\

Re: [gentoo-user] PERL and 'mail notification'

2003-09-07 Thread Jason Stubbs
On Tuesday 02 September 2003 10:50, Marshal Newrock wrote: > On Mon, 1 Sep 2003, Jason wrote: > > above, what I want to do is: > > > > @sometext = ("text\n\with\nmore\nthan\none\nnewline\n", > > "some\nother\nline\n"); > > @newtext = ("text\n", "with\n", "more\n", "than\n", "one\n", "newline\n", >

RE: [gentoo-user] PERL and 'mail notification'

2003-09-02 Thread Marshal Newrock
On Mon, 1 Sep 2003, Jason wrote: > >The problem here is you have to define a "line". A line of email can have > >up to 1000 (I think) characters. Postfix will split the line at 990 > >characters by default. And then there's all the extra information added > >by using HTML. > > All the extra HTM

RE: [gentoo-user] PERL and 'mail notification'

2003-09-02 Thread Jason
>= Original Message From Marshal Newrock <[EMAIL PROTECTED]> = >On Mon, 1 Sep 2003, Jason Stubbs wrote: > >> The only other thing which I haven't had time to really check into yet - too >> much time spent reading man pages! - is that it seems 1 element of @bodytext >> has more than one li

Re: [gentoo-user] PERL and 'mail notification'

2003-09-01 Thread Marshal Newrock
On Mon, 1 Sep 2003, Jason Stubbs wrote: > The only other thing which I haven't had time to really check into yet - too > much time spent reading man pages! - is that it seems 1 element of @bodytext > has more than one line of text; that is to say, each of element of @bodytext > has >=1 newline. Th

Re: [gentoo-user] PERL and 'mail notification'

2003-09-01 Thread Jason Stubbs
Well, Background: I'm writing a script to send a notification mail to an e-mail address based on an incoming mail. I'm using procmail to decide which messages should be notified about and to pipe them one by one into said script. [edit]I wish I could perform edits like in the forums ;-)[/edi