@@ -89,6 +89,185 @@ export default {
8989 cardDAV : false , // contacts sync
9090 activeSync : false , // Exchange ActiveSync
9191 } ,
92+
93+ /**
94+ * Automatic email categorization (Gmail-style folders)
95+ * Emails are automatically sorted into Social, Forums, Updates, Promotions folders
96+ * based on sender patterns. You can customize the patterns below.
97+ */
98+ categorization : {
99+ enabled : true ,
100+
101+ // Social networks - Facebook, Twitter, LinkedIn, etc.
102+ social : {
103+ domains : [
104+ 'facebookmail.com' , 'facebook.com' , 'fb.com' ,
105+ 'twitter.com' , 'x.com' ,
106+ 'linkedin.com' , 'linkedinmail.com' ,
107+ 'instagram.com' ,
108+ 'pinterest.com' ,
109+ 'snapchat.com' ,
110+ 'tiktok.com' ,
111+ 'reddit.com' , 'redditmail.com' ,
112+ 'tumblr.com' ,
113+ 'whatsapp.com' ,
114+ 'telegram.org' ,
115+ 'discord.com' , 'discordapp.com' ,
116+ 'slack.com' ,
117+ 'meetup.com' ,
118+ 'nextdoor.com' ,
119+ 'quora.com' ,
120+ 'medium.com' ,
121+ 'mastodon.social' ,
122+ 'threads.net' ,
123+ 'bluesky.social' ,
124+ ] ,
125+ substrings : [
126+ 'notification@' , 'notifications@' ,
127+ 'noreply@' , 'no-reply@' ,
128+ '@social.' , '@notifications.' ,
129+ 'updates@' , 'info@' ,
130+ ] ,
131+ headers : {
132+ 'x-mailer' : [ 'facebook' , 'twitter' , 'linkedin' ] ,
133+ } ,
134+ } ,
135+
136+ // Forums & mailing lists - Google Groups, Discourse, etc.
137+ forums : {
138+ domains : [
139+ 'googlegroups.com' , 'groups.google.com' ,
140+ 'discourse.org' ,
141+ 'stackoverflow.com' , 'stackexchange.com' ,
142+ 'freelancer.com' ,
143+ 'upwork.com' ,
144+ 'mailman.org' ,
145+ 'listserv.net' ,
146+ 'sympa.org' ,
147+ 'yahoogroups.com' ,
148+ 'topica.com' ,
149+ 'gnu.org' ,
150+ 'sourceforge.net' ,
151+ 'launchpad.net' ,
152+ ] ,
153+ substrings : [
154+ '-list@' , '-users@' , '-dev@' , '-announce@' ,
155+ 'forum@' , 'discuss@' , 'community@' ,
156+ '@lists.' , '@mailman.' , '@groups.' ,
157+ 'reply+' , // GitHub discussion replies
158+ ] ,
159+ headers : {
160+ 'list-unsubscribe' : [ '' ] ,
161+ 'list-id' : [ '' ] ,
162+ 'precedence' : [ 'list' , 'bulk' ] ,
163+ 'x-mailing-list' : [ '' ] ,
164+ } ,
165+ } ,
166+
167+ // Updates & transactional - GitHub, Stripe, shipping, etc.
168+ updates : {
169+ domains : [
170+ 'github.com' , 'gitlab.com' , 'bitbucket.org' ,
171+ 'stripe.com' , 'paypal.com' , 'square.com' , 'venmo.com' ,
172+ 'ups.com' , 'fedex.com' , 'usps.com' , 'dhl.com' ,
173+ 'amazon.com' , 'amazonses.com' ,
174+ 'google.com' , 'accounts.google.com' ,
175+ 'apple.com' , 'id.apple.com' ,
176+ 'microsoft.com' , 'live.com' , 'outlook.com' ,
177+ 'dropbox.com' , 'box.com' ,
178+ 'atlassian.com' , 'jira.com' , 'trello.com' ,
179+ 'notion.so' , 'airtable.com' , 'asana.com' ,
180+ 'vercel.com' , 'netlify.com' , 'heroku.com' ,
181+ 'cloudflare.com' , 'digitalocean.com' ,
182+ 'twilio.com' , 'sendgrid.com' ,
183+ 'intercom.io' , 'zendesk.com' , 'freshdesk.com' ,
184+ 'calendly.com' , 'cal.com' ,
185+ 'zoom.us' , 'zoom.com' ,
186+ 'doordash.com' , 'ubereats.com' , 'grubhub.com' ,
187+ 'airbnb.com' , 'booking.com' , 'expedia.com' ,
188+ 'uber.com' , 'lyft.com' ,
189+ 'netflix.com' , 'spotify.com' , 'hulu.com' ,
190+ ] ,
191+ substrings : [
192+ 'alert@' , 'alerts@' ,
193+ 'notification@' , 'notifications@' ,
194+ 'noreply@' , 'no-reply@' ,
195+ 'security@' , 'support@' ,
196+ 'confirm@' , 'confirmation@' ,
197+ 'receipt@' , 'invoice@' , 'billing@' ,
198+ 'shipping@' , 'delivery@' , 'order@' , 'orders@' ,
199+ 'account@' , 'password@' ,
200+ 'verify@' , 'verification@' ,
201+ ] ,
202+ headers : {
203+ 'auto-submitted' : [ 'auto-generated' , 'auto-replied' ] ,
204+ 'x-auto-response-suppress' : [ '' ] ,
205+ } ,
206+ } ,
207+
208+ // Promotions & marketing - newsletters, sales, etc.
209+ promotions : {
210+ domains : [
211+ 'mailchimp.com' , 'mail.mailchimp.com' ,
212+ 'sendgrid.net' , 'sendgrid.com' ,
213+ 'constantcontact.com' ,
214+ 'mailerlite.com' ,
215+ 'hubspot.com' , 'hubspotmail.com' ,
216+ 'klaviyo.com' ,
217+ 'convertkit.com' ,
218+ 'drip.com' ,
219+ 'getresponse.com' ,
220+ 'aweber.com' ,
221+ 'campaignmonitor.com' ,
222+ 'sendinblue.com' , 'brevo.com' ,
223+ 'activecampaign.com' ,
224+ 'emarsys.net' ,
225+ 'salesforce.com' , 'exacttarget.com' ,
226+ 'amazon.com' , 'amazonsellerservices.com' ,
227+ 'walmart.com' ,
228+ 'target.com' ,
229+ 'bestbuy.com' ,
230+ 'ebay.com' ,
231+ 'etsy.com' ,
232+ 'shopify.com' ,
233+ 'wish.com' ,
234+ 'aliexpress.com' ,
235+ 'wayfair.com' ,
236+ 'homedepot.com' ,
237+ 'lowes.com' ,
238+ 'kohls.com' ,
239+ 'macys.com' ,
240+ 'nordstrom.com' ,
241+ 'gap.com' ,
242+ 'nike.com' ,
243+ 'adidas.com' ,
244+ 'lululemon.com' ,
245+ 'uniqlo.com' ,
246+ 'zara.com' ,
247+ 'hm.com' ,
248+ 'sephora.com' ,
249+ 'ulta.com' ,
250+ 'groupon.com' ,
251+ 'retailmenot.com' ,
252+ ] ,
253+ substrings : [
254+ 'promo@' , 'promotions@' ,
255+ 'marketing@' , 'newsletter@' , 'news@' ,
256+ 'deals@' , 'offers@' , 'sale@' , 'sales@' ,
257+ 'shop@' , 'store@' ,
258+ 'rewards@' , 'loyalty@' ,
259+ 'unsubscribe' , // common in promotional emails
260+ 'campaign' , 'blast@' ,
261+ ] ,
262+ headers : {
263+ 'x-campaign' : [ '' ] ,
264+ 'x-mailchimp-id' : [ '' ] ,
265+ 'x-mc-user' : [ '' ] ,
266+ 'x-sg-eid' : [ '' ] , // SendGrid
267+ 'x-ses-outgoing' : [ '' ] , // AWS SES promotional
268+ } ,
269+ } ,
270+ } ,
92271 } ,
93272
94273 notifications : {
0 commit comments