Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 03de8d48

Von Jan Büren vor 10 Monaten hinzugefügt

  • ID 03de8d48d5d83bdf10d348d8109ccb055adedfd5
  • Vorgänger 99fbec76
  • Nachfolger efd5f30d

Neues optionales IMAP-Flag für Kennzeichnung von importierten E-Mails

Zusätzlich Rückmeldung an die Background-Job-Historie Anzahl der E-Mails

Unterschiede anzeigen:

SL/BackgroundJob/ImportRecordEmails.pm
35 35
    }
36 36
  );
37 37
  return "No emails to import." unless $email_import;
38

  
39
  my $result = "Created email import with id " . $email_import->id . ".";
38
  if ($config->{imported_imap_flag}) {
39
    foreach my $email_journal (@{$email_import->email_journals}) {
40
      $imap_client->set_flag_for_email(
41
            email_journal => $email_journal,
42
            flag          => $config->{imported_imap_flag},
43
      );
44
    }
45
  }
46
  my $result = "Created email import with id " . $email_import->id . " for ". scalar @{ $email_import->email_journals } . " emails.";
40 47

  
41 48
  if ($config->{process_imported_emails}) {
42 49
    my @function_names =
......
158 165
      processed_imap_flag        => { type => SCALAR,   optional => 1, },
159 166
      not_processed_imap_flag    => { type => SCALAR,   optional => 1, },
160 167
      email_import_ids_to_delete => { type => ARRAYREF, optional => 1, },
168
      imported_imap_flag         => { type => SCALAR,   optional => 1, },
161 169
      # email config
162 170
      hostname    => { type => SCALAR,  },
163 171
      port        => { type => SCALAR,  optional => 1},

Auch abrufbar als: Unified diff