Giter VIP home page Giter VIP logo

Comments (6)

mbrt avatar mbrt commented on September 22, 2024 2

Sorry if it was unclear. From the example you posted, it seems that the XML import / export from Gmail takes canned responses into account. However, the API gmailctl depends upon is the REST one: https://developers.google.com/gmail/api/reference/rest/v1/users.settings.filters. I don't see an equivalent there, so it seems impossible at the moment. Unless I'm missing something.

from gmailctl.

mbrt avatar mbrt commented on September 22, 2024 1

Oh that looks so ugly! Thanks for the pointers. A part from the limitation on creating drafts, the other issue is that the users.drafts.list API requires at least the https://www.googleapis.com/auth/gmail.readonly scope, which is pretty sensitive.

Overall I think it's too early to provide a good experience on this. I'll keep this issue open as the situation may change.

from gmailctl.

mbrt avatar mbrt commented on September 22, 2024

That sounds interesting. There's no official API as far as I can tell, so I wonder how gmailctl could expose filters with canned responses.

from gmailctl.

bkudria avatar bkudria commented on September 22, 2024

@mbrt would creating a filter referencing an inline template (as above) not work? I'm not at all familiar with the APIs you use.

from gmailctl.

bkudria avatar bkudria commented on September 22, 2024

Gotcha, that makes sense. FWIW, canned responses seem to be a special type of Draft, which does have an API to at least read¹. But it doesn't seem possible to create them²

1: https://stackoverflow.com/questions/56446142/gmail-api-canned-responses
2: https://stackoverflow.com/questions/57102200/create-canned-responses-in-gmail-using-gmail-api#57114820

Feel free to close this issue as you see fit! (and thanks for the rest of gmailctl - it's awesome!)

from gmailctl.

github-actions avatar github-actions commented on September 22, 2024

This issue is stale because it has been open for 30 days without activity.
This will be closed in 7 days, unless you add the 'lifecycle/keep-alive' label or comment.

from gmailctl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.