Zaslat záznam emailem: An algorithm for automated closure during assembly