Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Wrong newline encoding sievelib.managesieve.Client.getscript ? #95

@tacruc

Description

@tacruc

Thanks for the nice library. Saved me some time in creating sieve scripts to handle my emails.

I had the follwing issue

c = Client(server)
c.connect(user, password, starttls=True)
script = c.getscript('Open-Xchange')
c.havespace('Open-Xchange',len(script))
c.putscript('Open-Xchange',script)

Was not working c.havespace returned true, but putscript failed. The Problem was solved by

c = Client(server)
c.connect(user, password, starttls=True)
script = c.getscript('Open-Xchange')
script.replace("\n","\r\n")
c.havespace('Open-Xchange',len(script))
c.putscript('Open-Xchange',script)

Therefore I'm wondering if this should be fixed in the library or if there is a good reason for this behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions