rule to move email to folder according to alias ?

%3CLINGO-SUB%20id%3D%22lingo-sub-1036459%22%20slang%3D%22en-US%22%3ERe%3A%20rule%20to%20move%20email%20to%20folder%20according%20to%20alias%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1036459%22%20slang%3D%22en-US%22%3E%3CP%3ESimply%20create%20a%20rule%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3E%20with%20the%20%E2%80%9Cwith%20specific%20words%20in%20the%20message%20header%E2%80%9D%20condition.%26nbsp%3B%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1037760%22%20slang%3D%22en-US%22%3ERE%3A%20rule%20to%20move%20email%20to%20folder%20according%20to%20alias%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1037760%22%20slang%3D%22en-US%22%3E%3CP%3EThank%20you%20Vasil.%3C%2FP%3E%3CP%3EI%20created%20a%20rule%3C%2FP%3E%3CP%3E----------------------------------------------------------------------%3C%2FP%3E%3CP%3Ewith%20the%20specific%20word%20%22email5%40mycompany.com%22%3C%2FP%3E%3CP%3EEXCEPT%20with%20the%20specific%20word%20%22fabio.f%40mycompany.com%22%3C%2FP%3E%3CP%3Emove%20to%20%2Fto_email5%3C%2FP%3E%3CP%3E----------------------------------------------------------------------%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20put%20the%20second%20line%20because%20I%20do%20not%20know%20all%20strange%20cases%20for%20the%20header.%20For%20example%2C%20it%20could%20be%20the%20case%20where%20somebody%20writes%20to%3Afabio.f%40%20and%20cc%3Aemail5%40%20in%20the%20same%20email%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnyhow%2C%20if%20somebody%20sends%20me%20an%20email%20with%20BCC%3A%20email5%40mycompany.com%20I%20see%20no%20way%20to%20make%20the%20rule%20to%20work%20properly.%20Indeed%20email5%40mycompany.com%20does%20not%20appean%20in%20any%20place%20in%20the%20header%20(actually%2C%20also%20fabio.f%40%20is%20not%20present)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethank%20you%20-%20Fabio%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1038686%22%20slang%3D%22en-US%22%3ERE%3A%20rule%20to%20move%20email%20to%20folder%20according%20to%20alias%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1038686%22%20slang%3D%22en-US%22%3E%3CP%3EYup%2C%20that's%20the%20expected%20behavior%20for%20BCC.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1039261%22%20slang%3D%22en-US%22%3ERE%3A%20rule%20to%20move%20email%20to%20folder%20according%20to%20alias%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1039261%22%20slang%3D%22en-US%22%3E%3CP%3Enot%20quite%20really.%3CBR%20%2F%3E%3CBR%20%2F%3EWith%20other%20email%20providers%2C%20in%20the%20header%20remains%20something%20like%20this%3A%3CBR%20%2F%3EX-Original-To%3A%20skynet%40someserver.biz%3CBR%20%2F%3EDelivered-To%3A%20skynet%40someserver.biz%3CBR%20%2F%3E%3CBR%20%2F%3EI%20just%20made%20a%20test%2C%20sending%20from%20a%20provider-A%2C%20an%20email%20with%202%20BCC%3A%20one%20on%20provider-B%2C%20one%20on%20Office365%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20email%20received%20on%20provider-B%20and%20on%20Office-365%20was%20the%20same%2C%20but%20the%20header%20was%20different.%3CBR%20%2F%3EOpening%20that%20one%20arrived%20at%20Office365%2C%20those%20fields%20were%20missing%3A%3CBR%20%2F%3EX-Original-To%3A%20skynet%40someserver.biz%3CBR%20%2F%3EDelivered-To%3A%20skynet%40someserver.biz%3CBR%20%2F%3E%3CBR%20%2F%3EThey%20were%20instead%20present%20opening%20the%20email%20received%20ad%20provider-B%3CBR%20%2F%3E%3CBR%20%2F%3EOff%20course%2C%20as%20you%20said%2C%20in%20the%20email%20header%20received%20at%20provider-B%2C%20it%20was%20still%20missing%20the%20email%20address%20used%20for%20BCC%20to%20office365.%3CBR%20%2F%3E%3CBR%20%2F%3EIt%20looks%20like%20that%20office365%20removes%2Fhide%20the%20header%20fields%20(X-Original-To%20and%20Delivered-To)%3CBR%20%2F%3E%3CBR%20%2F%3EMy%20question%20remains%20partially%20open%3A%3CBR%20%2F%3Eif%20somebody%20send%20me%20an%20email%20in%20BCC%20to%20an%20alias%20of%20mine%2C%20(for%20esemple%20alias1%40myserver.com)%20how%20can%20I%20automatically%20move%20it%20to%20a%20given%20folder%3F%20for%20example%20ealias1%3CBR%20%2F%3E%3CBR%20%2F%3Ethank%20you%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1035685%22%20slang%3D%22en-US%22%3Erule%20to%20move%20email%20to%20folder%20according%20to%20alias%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1035685%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%2C%3C%2FP%3E%3CP%3EI%20have%20as%20email%20address%20fabio.f%40mycompany.com%20with%20an%20alias%20email5%40mycompany.com%3C%2FP%3E%3CP%3EHow%20can%20I%20make%20that%20incoming%20emails%20sent%20to%20email5%40%20are%20automaticcaly%20moved%20to%20a%20folder%20named%20%2Fto_email5%20%3F%3C%2FP%3E%3CP%3EUsually%20this%20rule%20is%20very%20simply%20to%20set%2C%20but%20in%20the%20case%20of%20office365%2C%20the%20email%20appears%20to%20be%20sent%20to%20fabio.f%40%20even%20if%20sent%20to%20email5%40%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E---------------------------------------------%3C%2FP%3E%3CP%3EAdded%20on%202019-12-03%3C%2FP%3E%3CP%3EI%20got%20suggestion%20to%20set%20a%20rule%20using%20the%20header%20fields.%3C%2FP%3E%3CP%3EUnfortunately%2C%20this%20does%20not%20work%20in%20all%20cases.%3C%2FP%3E%3CP%3EIndeed%2C%20Office365%20seems%20to%20remove(hide%3F)%20the%20header%20field%3A%3C%2FP%3E%3CP%3EX-Original-To%3C%2FP%3E%3CP%3Ewhich%20is%20needed%20in%20case%20I%20am%20receiving%20the%20email%20as%20BCC.%3C%2FP%3E%3CP%3EOther%20email%20providers%20keep%20(add%3F)%20the%20field%20%22X-Original-To%22%20in%20the%20header%2C%3C%2FP%3E%3CP%3Eso%20it%20is%20possible%20to%20understand%20to%20which%20email%2Falias%20the%20email%20was%20sent%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E---------------------------------------------%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethank%20you%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1035685%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExchange%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Occasional Contributor

Hi all,

I have as email address fabio.f@mycompany.com with an alias email5@mycompany.com

How can I make that incoming emails sent to email5@ are automaticcaly moved to a folder named /to_email5 ?

Usually this rule is very simply to set, but in the case of office365, the email appears to be sent to fabio.f@ even if sent to email5@

 

---------------------------------------------

Added on 2019-12-03

I got suggestion to set a rule using the header fields.

Unfortunately, this does not work in all cases.

Indeed, Office365 seems to remove(hide?) the header field:

X-Original-To

which is needed in case I am receiving the email as BCC.

Other email providers keep (add?) the field "X-Original-To" in the header,

so it is possible to understand to which email/alias the email was sent

 

---------------------------------------------

 

thank you

4 Replies
Highlighted

Simply create a rule with the “with specific words in the message header” condition. 

Highlighted

Thank you Vasil.

I created a rule

----------------------------------------------------------------------

with the specific word "email5@mycompany.com"

EXCEPT with the specific word "fabio.f@mycompany.com"

move to /to_email5

----------------------------------------------------------------------

 

I put the second line because I do not know all strange cases for the header. For example, it could be the case where somebody writes to:fabio.f@ and cc:email5@ in the same email

 

Anyhow, if somebody sends me an email with BCC: email5@mycompany.com I see no way to make the rule to work properly. Indeed email5@mycompany.com does not appean in any place in the header (actually, also fabio.f@ is not present)

 

thank you - Fabio

Highlighted

Yup, that's the expected behavior for BCC.

Highlighted

not quite really.

With other email providers, in the header remains something like this:
X-Original-To: skynet@someserver.biz
Delivered-To: skynet@someserver.biz

I just made a test, sending from a provider-A, an email with 2 BCC: one on provider-B, one on Office365

The email received on provider-B and on Office-365 was the same, but the header was different.
Opening that one arrived at Office365, those fields were missing:
X-Original-To: skynet@someserver.biz
Delivered-To: skynet@someserver.biz

They were instead present opening the email received ad provider-B

Off course, as you said, in the email header received at provider-B, it was still missing the email address used for BCC to office365.

It looks like that office365 removes/hide the header fields (X-Original-To and Delivered-To)

My question remains partially open:
if somebody send me an email in BCC to an alias of mine, (for esemple alias1@myserver.com) how can I automatically move it to a given folder? for example ealias1

thank you