Answers.Body: <p>Two options for the past emails:</p>
  <ol>
  <li><p>You'll want to store the emails as activities, which you can import from a CSV. I'm sure you can find a Google Apps Script that will pull all a users emails based on whatever criteria you like into Google Sheets and then export that to CSV.
  Do you want to connect these activities to other contacts in CiviCRM (the contacts the emails went to)?</p>
  </li>
  <li><p>Depending on the number of accounts you are talking about and how the emails are stored, you could use Email-to-Activity processing with a specified IMAP folder and just go through each email account in turn by changing the settings in the Mail Account. The downside here can be that you'll create contacts for all cc-ed emails as well as from and to emails.</p>
  </li>
  </ol>
  <p>For new messages, have you read <a href="https://docs.civicrm.org/sysadmin/en/latest/setup/civimail/#email-to-activity-processing" rel="nofollow noreferrer">Email-to-Activity processing</a>?</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-07-07T21:02:56.260Z
Answers.Text: Thanks! That makes sense, then how do I auto import the csv into Civi? I know you can batch it is there a way to do that on a timer? 
  
  Yes I would like to connect them to the other contacts.
  
  I did read that, I'm not very familiar with how the backend of it all works though.
Answers.UserDisplayName: User123123123
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-07-07T21:31:48.737Z
Answers.Text: You might want to look at the API CSV importer (https://civicrm.org/extensions/api-csv-import-gui) for large imports and at Civi Import Helper for the new and existing contacts (https://lab.civicrm.org/extensions/importhelper).
Answers.UserDisplayName: Lars SG
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-07-07T21:44:53.667Z
Answers.Text: Okay, I'll look into it thanks!
Answers.UserDisplayName: User123123123
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-07-08T15:08:28.540Z
Answers.Text: There is another option for the past emails with IMAP, I added this to my answer above.
Answers.UserDisplayName: Lars SG
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-07-12T20:21:47.477Z
Answers.Text: App Script was definitely the way to go, now looking into getting the csv into civi automatically. Thanks for the help!
Answers.UserDisplayName: User123123123
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-07-07T18:07:55.483Z
Answers.LastActivityDate: 2023-07-08T22:02:20.207Z
Answers.LastEditDate: 2023-07-08T22:02:20.207Z
Answers.UserDisplayName: Lars SG
Body: <p>I was asked to implement a system within civi where we can <strong>upload historical record of email</strong> messages. I then found out these are supposed to be <strong>auto updated with new messages every time a certain user sends a message</strong>?</p>
  <p>Not sure where to start with the implementation. I made a tab within a contact to write everything for a message, this would work great manually. I thought about using the mail account on civi then checking inbound messages and somehow storing it in a contact... but I'm really new this stuff.</p>
  <p>Any tips are appreciated :)</p>
  <p>Additional info: we currently use Gsuite and it would be specific accounts within the org that need to be storing their emails</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-07-07T20:23:26.880Z
Comments.Text: In theory i think you could create a way of fwd'ing your old emails to an address and then have the suggestion by Lars do the required. And use a CC to auto add a new message when another one gets sent.
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-07-07T20:23:38.727Z
Comments.Text: Question - does this have anything to do with Case Management?
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-07-07T21:00:06.783Z
Comments.Text: I was looking into CC earlier, not sure how to get it done. I think it is partly for case management yes
Comments.UserDisplayName: User123123123
Tags: <activities><data-import><inbound-email><mail>
Title: Using Civi to Store historical mailing data, and auto updating
ThreadText: # Using Civi to Store historical mailing data, and auto updating
  
  (Asked by: username_0 on 2023-07-07)
  
  I was asked to implement a system within civi where we can **upload historical record of email** messages. I then found out these are supposed to be **auto updated with new messages every time a certain user sends a message**?
  
  Not sure where to start with the implementation. I made a tab within a contact to write everything for a message, this would work great manually. I thought about using the mail account on civi then checking inbound messages and somehow storing it in a contact... but I'm really new this stuff.
  
  Any tips are appreciated :)
  
  Additional info: we currently use Gsuite and it would be specific accounts within the org that need to be storing their emails
  
  **Tags:** activities, data-import, inbound-email, mail
  
  > **Comments:**
  > **username_1**: In theory i think you could create a way of fwd'ing your old emails to an address and then have the suggestion by username_2 do the required. And use a CC to auto add a new message when another one gets sent.  
  > **username_1**: Question - does this have anything to do with Case Management?  
  > **username_0**: I was looking into CC earlier, not sure how to get it done. I think it is partly for case management yes  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2023-07-07. Score: 1 | Accepted answer
  
  Two options for the past emails:
  
  1. You'll want to store the emails as activities, which you can import from a CSV. I'm sure you can find a Google Apps Script that will pull all a users emails based on whatever criteria you like into Google Sheets and then export that to CSV.
     Do you want to connect these activities to other contacts in CiviCRM (the contacts the emails went to)?
  2. Depending on the number of accounts you are talking about and how the emails are stored, you could use Email-to-Activity processing with a specified IMAP folder and just go through each email account in turn by changing the settings in the Mail Account. The downside here can be that you'll create contacts for all cc-ed emails as well as from and to emails.
  
  For new messages, have you read [Email-to-Activity processing](https://docs.civicrm.org/sysadmin/en/latest/setup/civimail/#email-to-activity-processing)?
  
  > **Comments:**
  > **username_0**: Thanks! That makes sense, then how do I auto import the csv into Civi? I know you can batch it is there a way to do that on a timer?   Yes I would like to connect them to the other contacts.  I did read that, I'm not very familiar with how the backend of it all works though.  
  > **username_2**: You might want to look at the API CSV importer (https://civicrm.org/extensions/api-csv-import-gui) for large imports and at Civi Import Helper for the new and existing contacts (https://lab.civicrm.org/extensions/importhelper).  
  > **username_0**: Okay, I'll look into it thanks!  
  > **username_2**: There is another option for the past emails with IMAP, I added this to my answer above.  
  > **username_0**: App Script was definitely the way to go, now looking into getting the csv into civi automatically. Thanks for the help!  
  
  ---
  
  