Skip to content

Commit

Permalink
v0.9.3
Browse files Browse the repository at this point in the history
support for autocomplete, saved queries
  • Loading branch information
giovannicoppola committed Jun 10, 2023
1 parent c7781f8 commit 0dbce5f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ src="https://img.shields.io/github/downloads/giovannicoppola/alfred-outlookSuite
- *Folders list refresh rate* - The folder list is generated periodically (default: 30 days) to improve performance, as folders change less often. Enter your preferred number of days here.
- *Snooze file location* - Leave empty if you use this Workflow on one computer (it will be saved in the Workflow's data folder). Enter a shared folder location here in case you want to share the file snoozing information across computers using the same Outlook account.
- *Beeminder info* if you use [Beeminder](https://www.beeminder.com/) to track your inbox, enter your account information here and Alfred will post the number of messages in inbox every time an unsnooze script is run
- *Contact autocomplete* Choose between `None` (no autocomplete, default), `AddressBook`: autocomplete list generated from the Address Book, or `Database`: autocomplete list generated from the senders in the database.
- *Saved Queries* enter here queries that can be inboked using the `sq:` trigger. Enter multiple queries in this format: `RecentUnread = to:me is:unread since:20`, separated by semicolon (`;`)


<h1 id="usage">Basic Usage 📖</h1>
Expand All @@ -72,6 +74,7 @@ src="https://img.shields.io/github/downloads/giovannicoppola/alfred-outlookSuite
- `account:` to filter by Exchange account
- `--a` to sort by increasing date (oldest first)
- `since:n` will return email received in the last `n` days. `w` and `m` are supported for months and weeks, respectively (e.g. `since:2w`).
- `sq:` will open a list of saved queries
- Once an email of interest has been identified, the following actions are possible:
- ↩️Enter will open the email in Outlook
- ^-↩️ (control-enter) will show all the messages in the thread
Expand Down Expand Up @@ -120,6 +123,7 @@ src="https://img.shields.io/github/downloads/giovannicoppola/alfred-outlookSuite

<h1 id="changelog">Changelog 🧰</h1>

- 2023-06-10 version 0.9.2: contact autocomplete, saved queries
- 2023-06-07 version 0.9.1: support for multiple Exchange accounts
- 2023-06-03 version 0.9: complete rewrite, renamed `OutlookSuite`
- 2022-12-05 version 0.3 (Alfred 5)
Expand Down
Binary file added releases/OutlookSuite_0.9.3.alfredworkflow
Binary file not shown.
6 changes: 4 additions & 2 deletions src/consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
SAVED_QUERIES=[]
SAVED_QUERIES_RAW = os.getenv('SAVED_QUERIES')
if SAVED_QUERIES_RAW:
if SAVED_QUERIES_RAW.endswith(";"):
SAVED_QUERIES_RAW = SAVED_QUERIES_RAW[:-1]
for mySavedQuery in SAVED_QUERIES_RAW.split(";"):
CURR_SQ = {'Name': mySavedQuery.split("=")[0],
'Query': mySavedQuery.split("=")[1]
Expand All @@ -37,8 +39,8 @@

OUTLOOK_MSG_FOLDER = f'{MY_HOME}/Library/Group Containers/UBF8T346G9.Office/Outlook/Outlook 15 Profiles/Main Profile/Data/'

OUTLOOK_DB_FILE = f'{MY_HOME}/Library/Group Containers/UBF8T346G9.Office/Outlook/Outlook 15 Profiles/Main Profile/Data/Outlook.sqlite'
#OUTLOOK_DB_FILE = "/Users/giovanni/Desktop/Main Profile/Data/Outlook.sqlite"
#OUTLOOK_DB_FILE = f'{MY_HOME}/Library/Group Containers/UBF8T346G9.Office/Outlook/Outlook 15 Profiles/Main Profile/Data/Outlook.sqlite'
OUTLOOK_DB_FILE = "/Users/giovanni/Desktop/Main Profile/Data/Outlook.sqlite"

WF_DATA_FOLDER = os.getenv('alfred_workflow_data')
OUTLOOK_FOLDER_KEY_FILE = f"{WF_DATA_FOLDER}/keyfolder.json"
Expand Down
5 changes: 3 additions & 2 deletions src/info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -1449,6 +1449,7 @@ A suite of tools to interact with Microsoft Outlook via Alfred
- `-text` to exclude text
- `--a` to sort by increasing date (oldest first)
- `since:n` will return email received in the last `n` days. `w` and `m` are supported for months and weeks, respectively (e.g. `since:2w`).
- `sq:` will open a list of saved queries
- Once an email of interest has been identified, the following actions are possible:
- ↩️Enter will open the email in Outlook
- ^-↩️ (control-enter) will show all the messages in the thread
Expand Down Expand Up @@ -2014,7 +2015,7 @@ A suite of tools to interact with Microsoft Outlook via Alfred
<key>config</key>
<dict>
<key>default</key>
<string>AddressBook</string>
<string>None</string>
<key>pairs</key>
<array>
<array>
Expand Down Expand Up @@ -2044,7 +2045,7 @@ A suite of tools to interact with Microsoft Outlook via Alfred
<key>variablesdontexport</key>
<array/>
<key>version</key>
<string>0.9.2</string>
<string>0.9.3</string>
<key>webaddress</key>
<string>https://github.com/giovannicoppola/alfred-outlook</string>
</dict>
Expand Down

0 comments on commit 0dbce5f

Please sign in to comment.