1. Home
  2. Blog
  3. Forum
    1. FAQ
    2. Forum rules
    3. Unresolved Threads
  4. Shop
    1. Pre-Order courses DevonThink 4
    2. Data protection meets IT security
    3. Membership
    4. Coaching
    5. Advertise at Steffi's Cloud
    6. English articles
    7. What my customers say
    8. FAQ's about the shop
    9. My Account
      1. Orders
      2. Downloads
      3. Subscriptions
      4. Licenses
  5. IT-Security and data protection
  6. FileMaker development
  • Login or register
  • Search
DevonThink
  • Everywhere
  • DevonThink
  • Articles
  • Blog Articles
  • Forum
  • Lexicon
  • Products
  • More Options
  1. Welcome to Steffis Cloud
  2. Articles
  3. How To Do
  4. DevonThink

DevonThink: How can I import my emails from Airmail?

  • Steffi
  • March 11, 2017 at 1:00 AM
  • 5,791 Views
  • 0 Comments
  • 2 Minutes

Question from Niklas dated on 11 Feb 2017

I wanted to use the script for Apple Mail within Devonthink to use it for AirMail. Unfortunately, it did not work. I cannot really say, that I am confident with Apple Script. Can you please help? The script should import all emails to the Inbox. [Blocked Image: https://www.steffiscloud.com/steffisInhaltz/uploads/2017/03/Bildschirmfoto-2017-02-11-um-17.08.46-150x150.png]

Answer from 11 Feb 2017

Hello Niklas,

I just ask myself why would you like to import all emails including Spam to DTPO? But does ot matter.

Why do not you use the other way around? This is much easier to get to work directly using AirMail. Just setup a rule and filters within AirMail and export those into a folder. Once set, you can use the folder monitoring within DevonThink to monitor this folder and import all your "cleaned" emails into DTPO.

To setup the folder for DTPO, you click on this folder with the right mouse key and choose "folder actions" there you can use a service or just put the script below into the box.

In the case you like to do a full backup from your emails to DTPO - say once a year or so- you can use Apple Mail as it is much easier with it to import all your emails into DTPO.

This script imports all your emails from a folder into DevonThink Pro:

on adding folder items to this_folder after receiving added_items
try
if (count of added_items) is greater than 0 then
tell application id "DNtp" to launch
repeat with theItem in added_items
try
set thePath to theItem as text
if thePath does not end with ".download:" and thePath does not end with ".crdownload:" then
tell application id "DNtp"
set theRecord to import thePath to incoming group
if exists theRecord then tell application "Finder" to delete theItem
end tell
end if
end try
end repeat
end if
end try
end adding folder items to

[bg_collapse view="link" color="#4a4949" icon="arrow" expand_text="Show Help Form" collapse_text="Hide Help Form" ][usp_form id=2191][/bg_collapse]

  • Previous Article DevonThink: How long should a title be?
  • Next Article DevonThink: How to sync in 10 Minutes

Comments

Newly created comments need to be manually approved before publication, other users cannot see this comment until it has been approved.

  • Smilies
  • :)
  • :(
  • ;)
  • :P
  • ^^
  • :D
  • ;(
  • X(
  • :*
  • :|
  • 8o
  • =O
  • <X
  • ||
  • :/
  • :S
  • X/
  • 8)
  • ?(
  • :huh:
  • :rolleyes:
  • :love:
  • 8|
  • :cursing:
  • :thumbdown:
  • :thumbup:
  • :sleeping:
  • :whistling:
  • :evil:
  • :saint:
  • <3
  • :!:
  • :?:

Newly created comments need to be manually approved before publication, other users cannot see this comment until it has been approved.

  • Smilies
  • :)
  • :(
  • ;)
  • :P
  • ^^
  • :D
  • ;(
  • X(
  • :*
  • :|
  • 8o
  • =O
  • <X
  • ||
  • :/
  • :S
  • X/
  • 8)
  • ?(
  • :huh:
  • :rolleyes:
  • :love:
  • 8|
  • :cursing:
  • :thumbdown:
  • :thumbup:
  • :sleeping:
  • :whistling:
  • :evil:
  • :saint:
  • <3
  • :!:
  • :?:

Sign up and you will receive the newsletter once a week.

Saturday meeting for DevonThink, DevonSphere, DevonAgent

Sign up for the Saturday meeting where we show our workflows and discuss about DevonThink.

Guest book

Do you have an idea or want to say hello, my guest book is available now.

Categories

  1. How To Do 60
  2. DevonThink 33
  3. Tutorials 7
  4. ZoomNotes 17
  5. Setup of your private Cloud 27
  6. More post about the Own Private Cloud (OPC) 16
  7. Productivity 6
  8. Steffi's Cloud 7
  9. Promotions 6
  10. Security 4
  11. Reset Filter
  1. GTC
  2. Privacy Policy
  3. Revocation Services
  4. Revocaition digital
  5. Payment and Shipping
  6. Legal Notice
  7. Terms Of Use
  8. Advertisement at Steffi's Cloud
Powered by WoltLab Suite™
Welcome to Steffis Cloud in the WSC-Connect App on Google Play
Welcome to Steffis Cloud in the WSC-Connect App on the App Store
Download