code: def update(cls, domain, login, options, alias_add, alias_del):
          
          cls.echo('Updating your mailbox.')
          result = cls.call('domain.mailbox.update', domain, login, options)
  
          if alias_add or alias_del:
              current_aliases = cls.info(domain, login)['aliases']
              aliases = current_aliases[:]
              if alias_add:
                  for alias in alias_add:
                      if alias not in aliases:
                          aliases.append(alias)
              if alias_del:
                  for alias in alias_del:
                      if alias in aliases:
                          aliases.remove(alias)
  
              if ((len(current_aliases) != len(aliases))
                      or (current_aliases != aliases)):
                  cls.echo('Updating aliases.')
                  result = cls.set_alias(domain, login, aliases)
  
          return result
docs: Update a mailbox.