Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Parse tags and destination folder from Title/Body #8

Open
egauthier opened this issue Nov 5, 2022 · 6 comments
Open

Feature: Parse tags and destination folder from Title/Body #8

egauthier opened this issue Nov 5, 2022 · 6 comments
Labels
enhancement New feature or request

Comments

@egauthier
Copy link

This is awesome!! Thank you!

At the risk of being greedy, there are a couple other features that would be really cool as this matures. I know these are mostly outside the scope (e.g. require file munging and parsing) but could be some cool features.

  • Post processing hook. Even if this was just a script. So for example, you could allow users to pipe PDF attachments through an OCR engine / indexer
  • Delete on fetch (this is destructive, I know, but I am using a dummy Gmail account which I will most likely never log into interactively)
  • Allow for user defined labels, not just the fixed set
  • Auto-filing in the vault. for example, maybe specify a Vault folder in the subject line like Evernote does with @Notebook
  • Auto tagging using tags in the subject line
@thingnotok
Copy link
Collaborator

thingnotok commented Nov 5, 2022

Hi! Thank you for the proposals! All of them are really good ideas. Here's quick reply, I'll post more details after processing these in my spare time.!

  1. Post processing hook. The first one is a dangerous one 🤣. There're some plugins with user scripts/shell scripts support. I'll check first if this plugin can cowork with them.
  2. Delete on fetch. The API supports this (https://developers.google.com/gmail/api/reference/rest/v1/users.messages/batchDelete). Not shipping this one in the current release is for safety concern. But you asked, so it will soon be added as an option (with dangerous mark on it)
  3. I'm expecting users to set labels and filters on Gmail web client. They have well-designed UI to setup and test, and also, I try to reduce the plugin's access to the mail account as less as possible.
  4. Extract attributes like Destination and Tags from subject. Can you share what syntaxes you're using? So I don't need to design the syntaxes and can build this feature for your workflow.
    • #tags
    • /Folder

Thank you for the suggestions again! Please let me know if I mistake anything.

@thingnotok thingnotok added the enhancement New feature or request label Nov 6, 2022
@egauthier
Copy link
Author

  1. I completely understand the concern about the plugin going too far to enable nefarious activity.
  2. Cool. That is the very reason I set up an entirely separate email address for just use with Obsidian. Since I am sending it to myself, I will always have the copy in my sent folder from the source address.
  3. I will check that out. I did add a filter to add a label, but maybe the label isn't populated if it isn't visible if there are no current emails with that label?
  4. In the mail subject line. @Fold/subfolder but this could be a conflict with @person mentions used by other software.
    • Folders: I suppose slash could be the delimiter instead, but then may be confusing to non-Linux / non-Mac users. Perhaps the trigger character could be assignable in the plugin settings. Then the folder would always be delimited with slashes and be relative to the root (e.g. no leading slash, just "{trigger}Folder/subfolder". This way there won't be a conflict with dates in the form of 11/06/2022.
    • Tags: just a simple hashtag syntax would work I think. #tagname

@egauthier
Copy link
Author

Now that I'm thinking more about this, just using the #hashtag syntax in the email ${Subject} , or in the {$Body} should filter right through to the note itself, no programming required. Maybe that is sufficient? It would be cool to strip them and put them in YAML, but really not required.

@thingnotok
Copy link
Collaborator

thingnotok commented Nov 7, 2022

3. I will check that out. I did add a filter to add a label, but maybe the label isn't populated if it isn't visible if there are no current emails with that label?

all the labels (with or without mails) are fetched in my use. but the labels in the plugin UI are only fetched during the login process. So if you add the label after that, you may need to logout and login again.

@thingnotok
Copy link
Collaborator

thingnotok commented Nov 7, 2022

as you say, the hashtags are identified in obsidian if they present in ${subject} or ${Body}. But I do think an option to set tags and folders in the subject line is a great idea too.

@egauthier
Copy link
Author

egauthier commented Nov 7, 2022 via email

@thingnotok thingnotok changed the title Feature Ideas Feature: Parse tags and destination folder from Title/Body Nov 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants