[rt-users] sendmail with e-mail

Jeff Ballard ballard at engr.wisc.edu
Fri Aug 31 10:02:46 EDT 2001


You're welcome.

-Jeff

On Fri, 31 Aug 2001 09:22:03 -0400  Mitchell Wright wrote:

> Too cool man thanks!
> 
> On 8/31/01 9:13 AM, "Jeff Ballard" <ballard at engr.wisc.edu> wrote:
> 
> > 
> > I have a handy script to take a MBOX file and resend it.  As root:
> > 
> > ------ Begin Included File
> > 
> > #!/usr/bin/perl
> > # (c)2001 Jeff Ballard <ballardATengr.wisc.edu>
> > 
> > $DESTINATION = "your_rt_address\@your.site";
> > 
> > while(<>) {
> >       if ($_ =~ /^From /) {
> >               $first++;
> >               open (FILE, "| sendmail $DESTINATION");
> >               #open (FILE, "| cat");
> >       }
> >       print FILE $_;
> > }
> > 
> > 
> > ------- End Included File
> > 
> > (extra $_'s added for clarity).
> > 
> > Its run by:
> > 
> > ./resend_mbox.pl < mboxfilename
> > 
> > Now, granted, if you have 30,000 messages, it could be slow, but its an opt
ion
> > nevertheless.  I use it for when people leave, but forget to forward their
> > mail.  I have them set a forward, then run the resender on it.  In the popu
lar
> > MUA's (eg Eudora), they look at the headers of the original message to get 
the
> > date it was sent.  I don't think RT will (so all of them will probably star
t
> > at 0sec old).
> > 
> > Regards,
> > 
> > -Jeff
> 


-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Jeff Ballard <ballard at engr.wisc.edu>   608-265-5090
Unix Systems Manager
Computer-Aided Engineering


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 245 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20010831/894ca70a/attachment.sig>


More information about the rt-users mailing list