Created
November 5, 2012 05:12
-
-
Save nobuhito/4015464 to your computer and use it in GitHub Desktop.
Gmailに管理者権限でフィルタを作るサンプル
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#coding: UTF-8 | |
# https://developers.google.com/google-apps/email-settings/?hl=ja#manage_filters | |
import gdata.apps.emailsettings.client | |
client = gdata.apps.emailsettings.client.EmailSettingsClient(domain='XXXXX.XXXX') | |
client.ClientLogin(email='XXXX@XXXX.XXXX', password='XXXXXXX', source='your-apps') | |
client.CreateFilter(username='XXXXX', subject=u"-招待 -invitation", has_the_word='filename:ics', label=u"カレンダー", archive=True, mark_as_read=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment