1 package SL::BackgroundJob::CleanUpEmailSubfolders;
6 use parent qw(SL::BackgroundJob::Base);
10 sub clean_up_record_subfolders {
12 my $imap_client = SL::IMAPClient->new(%{$::lx_office_conf{imap_client}});
14 my $open_sales_orders = SL::DB::Manager::Order->get_all(
21 $imap_client->clean_up_record_subfolders(active_records => $open_sales_orders);
25 my ($self, $job_obj) = @_;
26 $self->{job_obj} = $job_obj;
28 $self->clean_up_record_subfolders();
41 SL::BackgroundJob::CleanUpEmailSubfolders - Background job for removing all email
42 subfolders except open records.
46 This background job syncs all emails in subfolders and adds emails files to the
47 corresponding record. After that is removes all subfolders except for open
56 Tamino Steinert E<lt>tamino.steinert@tamino.stE<gt>