mirror of
https://github.com/opdavies/gmail-filter-builder.git
synced 2025-09-05 21:15:33 +01:00
Initial commit
This commit is contained in:
commit
d56e7c6620
7 changed files with 389 additions and 0 deletions
25
templates/filters.xml.twig
Normal file
25
templates/filters.xml.twig
Normal file
|
@ -0,0 +1,25 @@
|
|||
<?xml version='1.0' encoding='UTF-8'?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:apps='http://schemas.google.com/apps/2006'>
|
||||
<title>Mail Filters (Blackhole)</title>
|
||||
<id>tag:mail.google.com,2008:filters:1297349082768</id>
|
||||
<updated>2013-02-04T15:50:38Z</updated>
|
||||
<author>
|
||||
<name>{{ name }}</name>
|
||||
<email>{{ email }}</email>
|
||||
</author>
|
||||
|
||||
{% for filter in filters -%}
|
||||
<entry>
|
||||
<category term='filter'></category>
|
||||
<title>Mail Filter</title>
|
||||
<content></content>
|
||||
<apps:property name='shouldArchive' value='{{ filter.isArchive ? 'true' : 'false' }}'/>
|
||||
<apps:property name='shouldTrash' value='{{ filter.isTrash ? 'true' : 'false' }}'/>
|
||||
{% for condition in filter.conditions -%}
|
||||
<apps:property name='{{ condition[0] }}' value='{{ condition[1] }}'/>
|
||||
{%- endfor %}
|
||||
{%- for label in filter.labels %}
|
||||
<apps:property name='label' value='{{ label }}'/>
|
||||
{% endfor %}
|
||||
</entry>
|
||||
{% endfor %}
|
||||
</feed>
|
Loading…
Add table
Add a link
Reference in a new issue