Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Nach E-Mail-Import aus Outlook die E-Mail-Datumfelder korrigieren

Die UserId des Admins ist in den Queries notwendig, um zwischen importierten E-Mails und regulär, abgeholten E-Mails zu unterscheiden

Code Block
breakoutModewide
languagesql
UPDATE
email_messages
    INNER JOIN instance_properties ON instance_properties.instance_id = 3 AND instance_properties.object_id = email_messages.id
    AND instance_properties.direction = 2
SET instance_properties.object_date = email_messages.delivery_date WHERE instance_properties.created_by_userid = 2 --das ist die ID des Admins

...