Code Monkey home page Code Monkey logo

alfred-mail-sorter's Introduction

alfred-mail-sorter

Moves currently selected message in Mail.app to a folder selected via Alfred interface.

Instalation and pre-requisites

Usage

With a selected message in Mail:

  1. Press ⌃M (default shortcut) or invoke Alfred and type sort
  2. Type the name of the folder (or part of it) until you see the desired folder selected
  3. Hit return/enter and message will be moved

How does it work

  1. Uses AppleScript to enumerate folder names for the selected account and feed a Script Filter on the Alfred Workflow;
  2. Selecting the desired folder will feed the next action with the name of such folder and the name of its account;
  3. A seccond AppleScript will use this info to issue a move command to each of the selected messages.

Known Issues

Does not work with Gmail accounts

For some reason I suspect is related do the way Mail handles Gmail's proprietary protocol, I guess the move command is not properly held.

Previously, I used a move commant based on a System Events requisition to click on the corresponding "Move to…" command. Gmail worked fine this way. That, however, needed folders to have different names on each account and, also, will require retooling yearly (every time macOS updates), since the position of the menus could change. Different languages were also a con… (see Issue #1)

Current approach does work properly with Exchange and iCloud accounts. Others may work as well.

Credits

alfred-mail-sorter's People

Contributors

ldebritto avatar

Stargazers

 avatar Nick Kadutskyi avatar seeumara avatar Christian R Voolstra avatar Chalita N Washington avatar Tobias Zittlau avatar David C avatar Álex Cortiñas avatar Andrew Gilbert avatar Alejandro Soto avatar

Watchers

DavidP avatar Tobias Zittlau avatar  avatar

Forkers

odapg

alfred-mail-sorter's Issues

Emails won't move to the selected folder

Hi,

This is my first time using Alfred (and I haven't used apple script in a long time). But the script doesn't work for me :/

  • I configured a hotkey in Alfred
  • I can summon the interface and the email account folders are listed
  • When selecting a folder and hitting enter, nothing happens :/

I'm on macOS 13.1 and it's in French (a long time ago it was an issue with apple script, I don't know if it still is).

Could you help me?

Emails won't move to subfolders

I cannot move emails to folders within folders.

email

For example, I can move emails to the folder "Kunder".
But can not move emails to folder "Test".

I'm on MacOS 14.1.1

Thanks for your work.

installation

Sorry for the elementary question, but having installed the workflow in Alfred, how do I get it to work in Mail.app under Ventura? Where should the two AppleScripts be placed, and what else needs to be done. I get "Buscando..." but nothing further appears.

(Hoping this can substitute for MsgFiler when Sonoma comes — trying it out under Ventura.)

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.