<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://rt-wiki.bestpractical.com/index.php?action=history&amp;feed=atom&amp;title=Mbox2Rt</id>
	<title>Mbox2Rt - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://rt-wiki.bestpractical.com/index.php?action=history&amp;feed=atom&amp;title=Mbox2Rt"/>
	<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=Mbox2Rt&amp;action=history"/>
	<updated>2026-08-22T00:34:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://rt-wiki.bestpractical.com/index.php?title=Mbox2Rt&amp;diff=26538&amp;oldid=prev</id>
		<title>Phanousk at 13:07, 29 November 2017</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=Mbox2Rt&amp;diff=26538&amp;oldid=prev"/>
		<updated>2017-11-29T13:07:30Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:07, 29 November 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l12&quot;&gt;Line 12:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 12:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* if the queue you use this on has an autoreply on create, every ticket that will be created will generate an autoreply&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* if the queue you use this on has an autoreply on create, every ticket that will be created will generate an autoreply&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;nowiki&lt;/del&gt;&amp;gt;#!/usr/bin/perl&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;source lang=&quot;perl&quot;&lt;/ins&gt;&amp;gt;#!/usr/bin/perl&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  use strict;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  use strict;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l128&quot;&gt;Line 128:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 128:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;lt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;nowiki&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;lt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;source&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;When used with [[HideGlobalScrips]], I would get errors from this script ([[crit]]: Can&amp;#039;t locate RT/[[QueueDeactivatedScrip]].pm). The fix in my case was to add local/lib.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;When used with [[HideGlobalScrips]], I would get errors from this script ([[crit]]: Can&amp;#039;t locate RT/[[QueueDeactivatedScrip]].pm). The fix in my case was to add local/lib.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key bestpractical_mediawiki1459887241:diff:1.41:old-2165:rev-26538:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Phanousk</name></author>
	</entry>
	<entry>
		<id>https://rt-wiki.bestpractical.com/index.php?title=Mbox2Rt&amp;diff=2165&amp;oldid=prev</id>
		<title>Admin: 2 revisions imported</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=Mbox2Rt&amp;diff=2165&amp;oldid=prev"/>
		<updated>2016-04-06T20:14:34Z</updated>

		<summary type="html">&lt;p&gt;2 revisions imported&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This is a piece of code i use to import unix-style mailboxes ( mbox , or whatever you may call them ) into an RT database and keep the threaded nature of the mail in the mailbox, unfortunately it doesn&amp;#039;t work very well in importing all email in mailboxes; sometimes (failed in investigating when and why exactly), it only imports parts of a mailbox.... :(&lt;br /&gt;
&lt;br /&gt;
Prerequisites:&lt;br /&gt;
&lt;br /&gt;
* Mail::Box perl-module&lt;br /&gt;
* an installed RT (at least the &amp;#039;lib&amp;#039; dir from a RT distribution)&lt;br /&gt;
* a user that can read [[RT SiteConfig|RT_SiteConfig]].pm (otherwise RT will complain)&lt;br /&gt;
&lt;br /&gt;
Caveats:&lt;br /&gt;
&lt;br /&gt;
* I&amp;#039;m quite new to RT internals, most of this code is inspired on the Gateway-subroutine in RT::Interface::Email.pm, so your mileage may vary&lt;br /&gt;
* if the queue you use this on has an autoreply on create, every ticket that will be created will generate an autoreply&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#!/usr/bin/perl&lt;br /&gt;
 use strict;&lt;br /&gt;
 &lt;br /&gt;
 use Getopt::Std;&lt;br /&gt;
 &lt;br /&gt;
 use Mail::Box::Manager;&lt;br /&gt;
 &lt;br /&gt;
 #TODO change this to your local RT lib&lt;br /&gt;
 use lib qw(/usr/local/rt34/lib);&lt;br /&gt;
 use RT;&lt;br /&gt;
 &lt;br /&gt;
 RT::LoadConfig();&lt;br /&gt;
 RT::Init();&lt;br /&gt;
 RT::ConnectToDatabase();&lt;br /&gt;
 &lt;br /&gt;
 my %opts;&lt;br /&gt;
 getopts(&amp;#039;m:q:fh&amp;#039;,\%opts);&lt;br /&gt;
 &lt;br /&gt;
 if ($opts{&amp;#039;h&amp;#039;}) {&lt;br /&gt;
    print &amp;amp;lt;&amp;amp;lt;&amp;quot;&amp;quot;;&lt;br /&gt;
 Usage: $0 -m &amp;amp;lt;mailbox-file&amp;amp;gt; -q &amp;amp;lt;rt-queue-id&amp;amp;gt; [-f] [-v] [-h]&lt;br /&gt;
 -m &amp;amp;lt;mbox&amp;amp;gt; : mailbox file to parse&lt;br /&gt;
 -q &amp;amp;lt;rt-queue id&amp;amp;gt; : numeric ID for the queue where you want to load the mailbox&lt;br /&gt;
 -f : force, get rid of the interactive notices&lt;br /&gt;
 -v : verbose&lt;br /&gt;
 -h : this message&lt;br /&gt;
 &lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 die &amp;quot;can&amp;#039;t open mailbox $opts{&amp;#039;m&amp;#039;} (option -m)&amp;quot; unless (-r $opts{&amp;#039;m&amp;#039;});&lt;br /&gt;
 die &amp;quot;need a queue-id (option -q)&amp;quot; unless ($opts{&amp;#039;q&amp;#039;});&lt;br /&gt;
 # check if this is a valid queue&lt;br /&gt;
 my $queue = RT::Queue-&amp;amp;gt;new( $RT::SystemUser );&lt;br /&gt;
 $queue-&amp;amp;gt;Load( $opts{&amp;#039;q&amp;#039;} ); #this loads a queue by Id&lt;br /&gt;
 die &amp;quot;&amp;#039;$opts{&amp;#039;q&amp;#039;}&amp;#039; is not a valid queue id (option -q)&amp;quot; unless ($queue-&amp;amp;gt;Id);&lt;br /&gt;
 &lt;br /&gt;
 my $mgr = Mail::Box::Manager-&amp;amp;gt;new();&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 my $folder = $mgr-&amp;amp;gt;open(&lt;br /&gt;
    $opts{&amp;#039;m&amp;#039;}&lt;br /&gt;
 );&lt;br /&gt;
 &lt;br /&gt;
 my $threads = $mgr-&amp;amp;gt;threads($folder);&lt;br /&gt;
 foreach my $thread ($threads-&amp;amp;gt;all() ) {&lt;br /&gt;
    if ($opts{&amp;#039;v&amp;#039;}) {&lt;br /&gt;
        print &amp;quot;**new thread**\n&amp;quot;;&lt;br /&gt;
        print $thread-&amp;amp;gt;threadToString();&lt;br /&gt;
    }&lt;br /&gt;
    my @msgs = $thread-&amp;amp;gt;threadMessages;&lt;br /&gt;
    my $first = shift @msgs;&lt;br /&gt;
    my $ticket = process_first_msg($first);&lt;br /&gt;
    foreach my $rest ( @msgs ) {&lt;br /&gt;
        process_rest_msg($rest,$ticket);&lt;br /&gt;
    }&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 sub process_first_msg {&lt;br /&gt;
    my ($msg) = @_;&lt;br /&gt;
    if ($opts{&amp;#039;v&amp;#039;}) {&lt;br /&gt;
        print &amp;quot;\n**first-msg**\n&amp;quot;. $msg-&amp;amp;gt;decoded .&amp;quot;\n****\n&amp;quot;;&lt;br /&gt;
    }&lt;br /&gt;
    if ($opts{&amp;#039;v&amp;#039;} || !$opts{&amp;#039;f&amp;#039;}) {&lt;br /&gt;
        print &amp;quot;\n**email-addrs**\n&amp;quot;. join(&amp;quot;\n&amp;quot;, map {$_-&amp;amp;gt;format} $msg-&amp;amp;gt;to, $msg-&amp;amp;gt;cc,$msg-&amp;amp;gt;from,$msg-&amp;amp;gt;sender);&lt;br /&gt;
        print &amp;quot;\n&amp;quot;;&lt;br /&gt;
    }&lt;br /&gt;
    if (! $opts{&amp;#039;f&amp;#039;}) {&lt;br /&gt;
        print &amp;quot;\n**subject**\n&amp;quot;. $msg-&amp;amp;gt;head-&amp;amp;gt;get(&amp;#039;subject&amp;#039;);&lt;br /&gt;
        print &amp;quot;\n&amp;quot;;&lt;br /&gt;
        print &amp;quot;Are you sure to process this msg? Enter &amp;#039;y&amp;#039; to verify, other to cancel\n&amp;quot;;&lt;br /&gt;
        my $yes = &amp;amp;lt;STDIN&amp;amp;gt;;&lt;br /&gt;
        chomp($yes);&lt;br /&gt;
        return undef unless ($yes eq &amp;#039;y&amp;#039;);&lt;br /&gt;
    }&lt;br /&gt;
    my $Ticket = new RT::Ticket( $RT::SystemUser );&lt;br /&gt;
    my ( $ticket_id, $Transaction, $ErrStr ) = $Ticket-&amp;amp;gt;Create(&lt;br /&gt;
        Queue     =&amp;amp;gt; $queue-&amp;amp;gt;Id,&lt;br /&gt;
        Subject   =&amp;amp;gt; $msg-&amp;amp;gt;head-&amp;amp;gt;get(&amp;#039;Subject&amp;#039;),&lt;br /&gt;
        Requestor =&amp;amp;gt; [ map {$_-&amp;amp;gt;format} $msg-&amp;amp;gt;from ],&lt;br /&gt;
        Cc        =&amp;amp;gt; [ map {$_-&amp;amp;gt;format} $msg-&amp;amp;gt;cc ],&lt;br /&gt;
        MIMEObj   =&amp;amp;gt; mailbox_to_rt($msg),&lt;br /&gt;
    );&lt;br /&gt;
    return $Ticket;&lt;br /&gt;
 }&lt;br /&gt;
 sub process_rest_msg {&lt;br /&gt;
    my ($msg,$ticket) = @_;&lt;br /&gt;
    if ($opts{&amp;#039;v&amp;#039;}) {&lt;br /&gt;
        print &amp;quot;\n**follow-up**\n&amp;quot;. $msg-&amp;amp;gt;decoded .&amp;quot;\n****\n&amp;quot;;&lt;br /&gt;
    }&lt;br /&gt;
    if ($opts{&amp;#039;v&amp;#039;} || !$opts{&amp;#039;f&amp;#039;}) {&lt;br /&gt;
        print &amp;quot;\n**email-addrs**\n&amp;quot;. join(&amp;quot;\n&amp;quot;, map {$_-&amp;amp;gt;format} $msg-&amp;amp;gt;to, $msg-&amp;amp;gt;cc,$msg-&amp;amp;gt;from,$msg-&amp;amp;gt;sender);&lt;br /&gt;
        print &amp;quot;\n&amp;quot;;&lt;br /&gt;
    }&lt;br /&gt;
    if (! $opts{&amp;#039;f&amp;#039;}) {&lt;br /&gt;
        print &amp;quot;\n**subject**\n&amp;quot;. $msg-&amp;amp;gt;head-&amp;amp;gt;get(&amp;#039;subject&amp;#039;);&lt;br /&gt;
        print &amp;quot;\n&amp;quot;;&lt;br /&gt;
        print &amp;quot;Are you sure to process this msg? Enter &amp;#039;y&amp;#039; to verify, other to cancel\n&amp;quot;;&lt;br /&gt;
        my $yes = &amp;amp;lt;STDIN&amp;amp;gt;;&lt;br /&gt;
        chomp($yes);&lt;br /&gt;
        return undef unless ($yes eq &amp;#039;y&amp;#039;);&lt;br /&gt;
    }&lt;br /&gt;
    my ($status,$retmsg) = $ticket-&amp;amp;gt;Correspond(&lt;br /&gt;
        CommitScrips =&amp;amp;gt; 0, #saw this in source code&lt;br /&gt;
        MIMEObj =&amp;amp;gt; mailbox_to_rt($msg),&lt;br /&gt;
    );&lt;br /&gt;
    print &amp;quot;Status: $status\n&amp;quot;;&lt;br /&gt;
    print &amp;quot;Retmsg: $retmsg\n&amp;quot;;&lt;br /&gt;
 }&lt;br /&gt;
 sub mailbox_to_rt {&lt;br /&gt;
    my ($msg) = @_;&lt;br /&gt;
    my $parser = RT::EmailParser-&amp;amp;gt;new();&lt;br /&gt;
    $parser-&amp;amp;gt;SmartParseMIMEEntityFromScalar( Message =&amp;amp;gt; $msg-&amp;amp;gt;string );&lt;br /&gt;
    return $parser-&amp;amp;gt;Entity();&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When used with [[HideGlobalScrips]], I would get errors from this script ([[crit]]: Can&amp;#039;t locate RT/[[QueueDeactivatedScrip]].pm). The fix in my case was to add local/lib.&lt;br /&gt;
&lt;br /&gt;
 --- mbox2rt.pl  2005/08/15 15:15:13     1.1&lt;br /&gt;
 +++ mbox2rt.pl  2005/08/15 15:16:05&lt;br /&gt;
 @@ -6,7 +6,7 @@&lt;br /&gt;
  use Mail::Box::Manager;&lt;br /&gt;
 &lt;br /&gt;
  #TODO change this to your local RT lib&lt;br /&gt;
 -use lib qw(/usr/local/rt34/lib);&lt;br /&gt;
 +use lib qw(/usr/local/rt34/lib /usr/local/rt34/local/lib);&lt;br /&gt;
  use RT;&lt;br /&gt;
 &lt;br /&gt;
  RT::LoadConfig();&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
When using Ubuntu, you&amp;#039;ll have to update the path. Below is what i&amp;#039;ve used to get it to work:&lt;br /&gt;
&lt;br /&gt;
 use lib (&amp;quot;/usr/share/request-tracker3.4/lib&amp;quot;, &amp;quot;/usr/local/share/request-tracker3.4/lib&amp;quot;);&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
Somehow the subject of the mail is not imported properly. For example, it results in this in RT after importation : =?iso-8859-1?q?Qu=E9bec_dans_l=27intranet?= This could be solved using the MIME::[[WordDecoder]].&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>