Changeset 1323 for trunk/MailInContrib/tools/mailincron
- Timestamp:
- 12/13/08 16:58:36 (3 years ago)
- File:
-
- 1 edited
-
trunk/MailInContrib/tools/mailincron (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/MailInContrib/tools/mailincron
r1050 r1323 4 4 # 5 5 # Copyright (C) 2005 TWiki Contributors. All Rights Reserved. 6 # TWiki Contributors are listed in the AUTHORS file in the root 6 # Copyright (C) 2008 Foswiki Contributors. All Rights Reserved. 7 # Foswiki Contributors are listed in the AUTHORS file in the root 7 8 # of this distribution. 8 9 # NOTE: Please extend that file, not this notice. … … 26 27 } 27 28 28 use TWiki::Contrib::MailInContrib;29 use Foswiki::Contrib::MailInContrib; 29 30 30 31 my $debug; … … 43 44 } 44 45 45 my $twiki; 46 my $folders; 47 if( eval 'defined($TWiki::wikiversion)' ) { 48 TWiki::initialize(); 49 $twiki = undef; 50 eval "use LocalSite.cfg"; 51 } else { 52 $twiki = new TWiki(); 53 $TWiki::Plugins::SESSION = $twiki; 54 } 55 $folders = $TWiki::cfg{MailInContrib}; 56 my $processor = new TWiki::Contrib::MailInContrib($twiki, $debug); 46 my $session = new Foswiki(); 47 my $folders = $Foswiki::cfg{MailInContrib}; 48 my $processor = new Foswiki::Contrib::MailInContrib($session, $debug); 57 49 foreach my $folder ( @$folders ) { 58 50 $processor->processInbox( $folder );
Note: See TracChangeset
for help on using the changeset viewer.
