3

I'm building tools for maintaining our Google Apps for Business account.

Is there anyway to post content into a Google Group that isn't email? Ideally from within Apps Script but i'm in no way averse to using AppEngine or other exposure to API to achieve this end.

The essential use case is to be able to extract labelled email in a users account and replicat

mhawksey
  • 2,013
  • 5
  • 23
  • 61
JSDBroughton
  • 3,966
  • 4
  • 32
  • 52

2 Answers2

4

Google just today announced the new Google Groups Migration API that allows you to import messages into a Google Group. The messages will not be sent out to group members via email but will appear in the group archive which sounds like your end goal:

https://developers.google.com/google-apps/groups-migration/

Andrew Barber
  • 39,603
  • 20
  • 94
  • 123
Jay Lee
  • 13,415
  • 3
  • 28
  • 59
  • marked as accepted answer, though i've not had time to test it since the announcement. UrlfetchApp has a 10MB limit, so any emails with larger attachments I will have to think of an alternative solution. – JSDBroughton Dec 14 '12 at 20:51
  • Plus 100mB per day limit. Will have to see how to manage that. – JSDBroughton Dec 14 '12 at 21:26
  • 3
    Also, only works for Google Apps accounts, and not for ordinary Groups mailing lists. – David Given Jun 19 '15 at 22:43
1

The Groups service in Apps Script doesn't provide a way of directly posting content to a Google Group, though it has some methods for managing groups. You mentioned that you didn't want to do it via email, but if sending an email to the group programmatically (via Apps Script) would work, you can use MailApp or the Gmail service.

Jan Kleinert
  • 1,789
  • 9
  • 21
  • Yes, that is my fall-back in a sense the question is more about the fundamentals of the groups API first, before looking at Apps Script implementations – JSDBroughton Jul 16 '12 at 09:42