[rt-users] sendmail with e-mail

Mitchell Wright wright at nimm.com
Fri Aug 31 09:22:03 EDT 2001


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 option
> 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 popular
> 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 start
> at 0sec old).
> 
> Regards,
> 
> -Jeff





More information about the rt-users mailing list