Jump to content
Sign in to follow this  
Josh Ormond

360Works Email Plugin - All Mail

Recommended Posts

1. Does anyone know if there is a way to download all incoming mail? Regardless of Folder/Label.

 

2. Does the email download include the name of the folder for the message? I couldn't find anything obvious in the documentation, unless I just overlooked it.

Share this post


Link to post
Share on other sites

that kind of depends i think - ( not sure about google ) but the INBOX is where all mail comes in but if the user has any other filters on the client  machine or manually  moves mail to other folders before the script runs you miss them.

 

In one case we had the server setup to forward/copy  every ones mailbox to a utility email account that we setup the plugin to ingest, and clear out - that way you don't have to touch end user accounts and deal with their credentials. 

Share this post


Link to post
Share on other sites

I responded to Joshua through our support system. I'm including my response here for reference:

 

There's no way to directly download all messages. However, you can pull every message from a given mailbox using EmailReadMessages("mailbox=" & $name ; "deleted=any"), and it would be pretty simple to loop through all mailboxes and pull every message from each one. You can get a list of every mailbox using the function EmailListMailboxes( "" ; true ). If you're using Gmail and have messages with multiples labels, this looping process could cause duplicate messages, so watch out for that! 
 
For your second question, no, the email data doesn't include any information about the mailbox it's in, but since you need to specify a mailbox to read any messages, you could store this separately for each message.

Share this post


Link to post
Share on other sites

Thank you Evan. Again!! ;)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.