Email Archive2FS

Email Archive2FSx.workflow.zip

Email Archive2PDF.workflow.zip

Email Archive2FSx-OpenFolder.workflow.zip

 

  1. First step in installing service(s). I.e.
    1. Unzip archive(s)
      1. Email Archive2FSx.workflow.zip
      2. Email Archive2PDF.workflow.zip
    2. Then simply double-click on extracted file(s) to have macOS install file(s) in correct location ($HOME/Library/Services/)
  2. One config file must (so far) be created completely manually, where to archive emails.
    A hidden file .EmailArchive2FS.conf must be created in your home directory.
    E.g.:
    $ echo $HOME/Dropbox/Documents/Emails/2sort/ > $HOME/.EmailArchive2FS.conf
    WARNING: MUST INCLUDE ending ‘/’ of path to archive folder location!
    WRONG:
    $ echo $HOME/Dropbox/Documents/Emails/2sort > $HOME/.EmailArchive2FS.conf
    (This will archive emails in ‘Emails/’ folder with all emails PREFIXED with ‘2sort’.)
  3. Next, keyboard fixings’.
    1. Open System Preferences,
    2. Keyboard area
    3. Shortcuts tab,
    4. Services section in left column
    5. Scroll down to General (bottom) in right column
    6. For Email Archive2FSx.workflow, add Ctrl+Shift+Command+S (
      1. Pre macOS 12(?, 11?) was using Ctrl+Command+S (w/o Shift but this is now generally used to hide/show side bars, in Mail, in Finder)
    7. For Email Archive2PDF.workflow, add Ctrl+Shift+Command+P
      1. (Ctrl+Command+P, w/o Shift is still unused in macOS 12 but changing this to also use Shift for consistency)
  4. Wait, NOT completely done yet… Due to increased security measures in macOS must do one more thing, actually one thing per each service (to email file, and one extra for PDF handling).
    1. Both services (Email Archive2FSx and Email Archive2PDF) must be able to access file system, and we do this on Mail.app level.
      1. Open System Preferences,
      2. Security & Privacy area
      3. Privacy tab,
      4. Full Disk Access section in left column
      5. In right side, press ‘+’ to add app
      6. Navigate to Applications and select Mail.app and add to list. (Confirm dialog that need to restart Mail.app)
      7. Done
    2. The PDF handling (Email Archive2PDF) must also have additional access, and we do also this on Mail.app level.
      1. Open System Preferences,
      2. Security & Privacy area
      3. Privacy tab,
      4. Accessibility section in left column
      5. In right side, select Mail.app, (automatically added by macOS) (use key lock to unlock dialog as required), put a checkmark next to Mail.app
      6. Done

 

‘ The action “Run AppleScript” encountered an error: “find: /Users/<user>/Library/Mail/V9/433B1959-6899-4176-9914-E49B2520296A/: Operation not permitted” ‘