From pll at lanminds.com Mon Jun 2 08:57:58 2003 From: pll at lanminds.com (Paul L Lussier) Date: Mon Aug 2 21:33:08 2004 Subject: [Nh-pm] findinrpm In-Reply-To: Message from Ben Boulanger of "31 May 2003 11:45:00 EDT." <1054395900.31172.3.camel@bensbox.blackavar.com> References: <1054395900.31172.3.camel@bensbox.blackavar.com> Message-ID: <20030602135759.3D8C9F73E@tater> In a message dated: 31 May 2003 11:45:00 EDT Ben Boulanger said: > >--=-FZO1+WIhhNK2HV5Tfbef >Content-Type: text/plain >Content-Transfer-Encoding: 7bit > >Thought some people might find this useful beyond just me... > >Finds which RPM a file belongs to - anyone know of a better way to do >this? rpm -qf /path/to/file :) -- Seeya, Paul -- Key fingerprint = 1660 FECC 5D21 D286 F853 E808 BB07 9239 53F1 28EE It may look like I'm just sitting here doing nothing, but I'm really actively waiting for all my problems to go away. If you're not having fun, you're not doing it right! From ben at blackavar.com Mon Jun 2 13:13:44 2003 From: ben at blackavar.com (Ben Boulanger) Date: Mon Aug 2 21:33:08 2004 Subject: [Nh-pm] findinrpm In-Reply-To: <20030602135759.3D8C9F73E@tater> Message-ID: On Mon, 2 Jun 2003, Paul L Lussier wrote: > rpm -qf /path/to/file > > :) I only have one thing to say.... Doh. -- To understand your parents' love you must raise children yourself. From pll at lanminds.com Mon Jun 9 12:00:16 2003 From: pll at lanminds.com (pll@lanminds.com) Date: Mon Aug 2 21:33:08 2004 Subject: [Nh-pm] Sending mail, setting From Message-ID: <20030609170016.20C6EF6F5@tater> Hi all, I'm trying to wrap my head around the Mail::Internet package, and not succeeding for some reason. I've figured out Mail::Send, but I need the From: header to be set to something other than the invoking user's e-mail address (since the invoking user will ultimately be a web form running as www-data, aka, apache :) Mail:Send for some reason doesn't allow you to set the From header. I've tried, and it seems to work, but when the mail is recieved, it doesn't have the From addr I set. Does anyone have a quick example of doing this with Mail::Internet or some other module? (I know I've done this in the past, but I don't seem to have that code here at work :( Thanks, -- Seeya, Paul -- Key fingerprint = 1660 FECC 5D21 D286 F853 E808 BB07 9239 53F1 28EE It may look like I'm just sitting here doing nothing, but I'm really actively waiting for all my problems to go away. If you're not having fun, you're not doing it right! From allen at thirstyfishy.com Tue Jun 10 13:39:34 2003 From: allen at thirstyfishy.com (Allen Barriere) Date: Mon Aug 2 21:33:08 2004 Subject: [Nh-pm] Re: Nh-pm digest, Vol 1 #46 - 1 msg In-Reply-To: <200306101701.h5AH15E14330@mail.pm.org> References: <200306101701.h5AH15E14330@mail.pm.org> Message-ID: <20030610183934.15439.qmail@thirstyfishy.com> I've had a lot of luck with the Mailtools package -- fill in servers and addresses #!perl -w use Mail::Mailer; my @maillist = ("me@here.com","you@there.com",) my $body = "You're text here\n\nAllen"; sub email { print "sending mail...\n"; $from = "Whoever"; $subject="blah blah"; $type="smtp"; $server="mail.whereever.com"; foreach $address (@maillist) { my $mailer = Mail::Mailer->new($type, Server => $server); $mailer->open({From => ${from}, To => $address, Subject => $subject}); print $mailer $body; $mailer->close; } print "mail sent.\n"; } nh-pm-request@mail.pm.org writes: > Send Nh-pm mailing list submissions to > nh-pm@mail.pm.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.pm.org/mailman/listinfo/nh-pm > or, via email, send a message with subject or body 'help' to > nh-pm-request@mail.pm.org > > You can reach the person managing the list at > nh-pm-admin@mail.pm.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Nh-pm digest..." > > > Today's Topics: > > 1. Sending mail, setting From (pll@lanminds.com) > > --__--__-- > > Message: 1 > Reply-To: pll@lanminds.com > From: pll@lanminds.com > To: nh-pm@mail.pm.org > Date: Mon, 09 Jun 2003 13:00:16 -0400 > Subject: [Nh-pm] Sending mail, setting From > > > Hi all, > > I'm trying to wrap my head around the Mail::Internet package, and not > succeeding for some reason. I've figured out Mail::Send, but I need > the From: header to be set to something other than the invoking > user's e-mail address (since the invoking user will ultimately be a > web form running as www-data, aka, apache :) > > Mail:Send for some reason doesn't allow you to set the From header. > I've tried, and it seems to work, but when the mail is recieved, it > doesn't have the From addr I set. > > Does anyone have a quick example of doing this with Mail::Internet or > some other module? > > (I know I've done this in the past, but I don't seem to have that > code here at work :( > > Thanks, > > > > > -- > > Seeya, > Paul > -- > Key fingerprint = 1660 FECC 5D21 D286 F853 E808 BB07 9239 53F1 28EE > > It may look like I'm just sitting here doing nothing, > but I'm really actively waiting for all my problems to go away. > > If you're not having fun, you're not doing it right! > > > > > --__--__-- > > _______________________________________________ > Nh-pm mailing list > Nh-pm@mail.pm.org > http://mail.pm.org/mailman/listinfo/nh-pm > > > End of Nh-pm Digest