WebFaction
Community site: login faq

I setup a catch all for email to may domain and it all goes to a single mailbox.

what would be the best way to setup a filter so that when an email is received, it gets moved into a folder that is the name of the email address in the TO: field?

So I would have a folder automatically created for each email's TO address, and the emails sent to that address would be moved into that folder.

asked 16 Aug, 18:03

MikesTooLz
111
accept rate: 0%


You might be able to achieve this using procmail rules to filter in such a way. I think it can also create folders on the go. https://docs.webfaction.com/user-guide/email.html?highlight=filter#filtering-by-sender

You might find some way to do that here, http://www.elisanet.fi/tsalmi/info/proctips.html

permanent link

answered 03 Oct, 02:13

NickR ♦♦
4165
accept rate: 19%

NickR, would you know the syntax to setup a rule that does something like this:

email sent to First.Last@domain.com would be put in First folder. Email sent to Second.Last@domain.com would be put in Second folder.

basically just sorting every email by the first word as each email address will be two words separated by a period @domain.com

(03 Oct, 02:34) MikesTooLz

Sorry, I do not. Which is why I recommended the link above. Or maybe this one - http://porkmail.org/era/procmail/mini-faq.html

But more specifically, some Googling can provide some examples that might work after some tweaking/testing. Eg.

https://stackoverflow.com/questions/50512756/procmail-to-automatically-make-new-folders-to-store-emails-from-new-senders

(03 Oct, 02:45) NickR ♦♦

If you're storing the email on the server I would say this is done with an IMAP email client. with smart folders or "rules" like in Microsoft outlook. or other popular email clients

permanent link

answered 03 Oct, 01:53

fawwal
213
accept rate: 0%

there are no iPhone email clients that allow you to setup "rules" or I would have don't it already. That is why I'm looking at how to do it on the server side.

(03 Oct, 02:35) MikesTooLz
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×258
×1

question asked: 16 Aug, 18:03

question was seen: 215 times

last updated: 03 Oct, 02:45

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2016 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM