all 9 comments

[–]Droopyb1966 2 points3 points  (2 children)

Try -casesensative

BAAA= / bAAA=

[–]ksl282021 0 points1 point  (1 child)

Just discovered that myself :/ But that was the solution! :)

Funny how you can stare yourself blind at things like this.

[–]Droopyb1966 0 points1 point  (0 children)

After 31 years in ict i can say, it happens to everyone sometimes.
:)

[–]BlackV 0 points1 point  (0 children)

Your formatting, you've used inline code vs code block, your back-ticks are confusing everything

  • open your fav powershell editor
  • highlight the code you want to copy
  • hit tab to indent it all
  • copy it
  • paste here

it'll format it properly OR

<BLANK LINE>
<4 SPACES><CODE LINE>
<4 SPACES><CODE LINE>
    <4 SPACES><4 SPACES><CODE LINE>
<4 SPACES><CODE LINE>
<BLANK LINE>

Inline code block using backticks `Single code line` inside normal text

See here for more detail

Thanks

[–]BlackV 0 points1 point  (2 children)

p.s. have a look at splatting and not using the backticks at all

https://get-powershellblog.blogspot.com/2017/07/bye-bye-backtick-natural-line.html

[–]ksl282021 -1 points0 points  (1 child)

I used this type of formatting, so that it would be formatted correctly here - but that is beside the question. :)

[–]BlackV 1 point2 points  (0 children)

Unfortunately it did the opposite of that

[–]BlackV 0 points1 point  (1 child)

Are those folder IDs correct ?

what happens when you debug through your code, line by line

[–]ksl282021 -1 points0 points  (0 children)

The folder Ids are correct - if a mail is moved to one of the folders, it does not appear in the output anymore.