Skip to content

Outlook-exchange/1.0.0 add_category bug #368

Open
@gh0o5t

Description

@gh0o5t

The add_category function of the application can add category to an email which already has a category, but can't add category to an email which does not have a category.

The issue is probably caused by this part of the function:

try:
  email = folder.get(message_id=email_id)
  email.categories.extend(category)
  email.save()

The function tries to extend the categories list, however if there is no category on the email this is a NoneType object.

Exchange version: 15.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions