🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: microsoft.public.outlook.general
4 messages
4 total messages Started by Ammammata Mon, 23 Nov 2026 16:12
about:junk
#2
Author: Ammammata
Date: Mon, 23 Nov 2026 16:12
10 lines
1243 bytes
How long will we have to wait before we get a "Block sender domain" 
menu, instead of the nearly useless ones we have available today?
 :-[

-- 
/-\ /\/\ /\/\ /-\ /\/\ /\/\ /-\ T /-\
-=- -=- -=- -=- -=- -=- -=- -=- - -=-
-.-. .... . ... .. ...- .. -. -.-. .- --- -.-. .... . ... .. .--. . .-. 
-.. .-
..-. --- .-. --.. .- - --- .-. --- . .--- ..- ...- . -- . .-. -.. .-
Re: about:junk
#3
Author: VanguardLH
Date: Mon, 23 Nov 2026 16:34
45 lines
2808 bytes
Ammammata <ammammata@tiscali.it> wrote:

> How long will we have to wait before we get a "Block sender domain" 
> menu, instead of the nearly useless ones we have available today?
>  :-[

Which Outlook?
  Android Outlook
  Outlook new (UWP app)
  Standalone Outlook client (with a year version)
  Outlook webmail service
  
And domain specified in which header?
  From
  Sent From
  Received headers
  Some other header
  
Assuming one scenario where you are using Outlook standalone client and
you are trying to filter on the domain specified in the sender's e-mail
address (which THEY get to choose, not what their e-mail provider
specifies), why not create a rule that looks for the domain in the From
header?  I could look like:

Apply this rule after the message arrives
  with <host@domain> in the sender's address
  move it to the <folder> folder
  
You aren't clear on what header you are trying filter, and what you want
to do with the message.  Outlook standalone has a slew of conditions and
actions you can define in filters.  My bet, and if you are using Outlook
standalone, is that you have never bothered to look at rules.
  
Instead of creating the rule at the client end, look at what rules your
e-mail provider lets you define in your account.  Better to have the
server run the filtering than waste the bandwidth downloading messages
to your local client that you don't want.  Some e-mail providers have
robust rules.  Some are weak, or don't provide any server-side rules.

Since the sender gets to specify what is their From address, any method
that filters on their domain is useless against spammers that use random
domains, invalid domains, or cycles through numerous domains (but for
which they don't have an account at the domain, anyway).  Filtering on
the From header only works if the sender always uses the same address in
their From header, and if they are the ONLY sender using that domain.
Re: about:junk
#4
Author: Ammammata
Date: Tue, 24 Nov 2026 10:07
105 lines
4546 bytes
VanguardLH presented the following explanation :
> Ammammata <ammammata@tiscali.it> wrote:
>
>> How long will we have to wait before we get a "Block sender domain" 
>> menu, instead of the nearly useless ones we have available today?
>>  :-[
>
> Which Outlook?
>   Standalone Outlook client (with a year version)

all of them, starting from 2007 up to 2024

>   
> And domain specified in which header?
>   From

this one

>   
> Assuming one scenario where you are using Outlook standalone client and
> you are trying to filter on the domain specified in the sender's e-mail
> address (which THEY get to choose, not what their e-mail provider
> specifies), why not create a rule that looks for the domain in the From
> header?  I could look like:
>

no rules, must be easy-to-use: right click on the mail, select "block 
domain", done.


> Since the sender gets to specify what is their From address, any method
> that filters on their domain is useless against spammers that use random
> domains, invalid domains, or cycles through numerous domains (but for
> which they don't have an account at the domain, anyway).  Filtering on
> the From header only works if the sender always uses the same address in
> their From header, and if they are the ONLY sender using that domain.

around 80% of them come from *.com domains, the rest from new first 
level like .info .biz and so on
I already blocked almost all country extensions, leaving the local one 
and few countries here around. Of course I can't block outlook.com or 
hotmail.com or similar well known providers, so I spend a few minutes 
every day blocking new domains and single mail addresses. Unfortunately 
the hosting provider lacks a good spam filter, I tried a few program 
like spamihilator but they made a mess :(

I asked both chatgpt and gemini for a VBA script to implement the 
trick, but it failed on the instruction:

Application.ActiveExplorer.CommandBars.ExecuteMso 
"JunkMailOptionsDialog"

Once I told them they replied "we can't access the Junk E-mail Blocked 
Senders list", sorry.



just for your info, the VBA code is this:


Sub CopyDomainAndOpenJunk()
    Dim olItem As Object
    Dim senderAddr As String
    Dim atPos As Long
    Dim domainStr As String
    Dim dataObj As Object

    If Application.ActiveExplorer.Selection.Count = 0 Then
        MsgBox "First select an email.", vbExclamation
        Exit Sub
    End If

    Set olItem = Application.ActiveExplorer.Selection.Item(1)

    If olItem.Class = olMail Then
        If LCase(olItem.SenderEmailType) = "ex" Then
            On Error Resume Next
            senderAddr = 
olItem.Sender.GetExchangeUser().PrimarySmtpAddress
            On Error GoTo 0
        End If
        If senderAddr = "" Then senderAddr = olItem.SenderEmailAddress

        atPos = InStr(senderAddr, "@")
        If atPos > 0 Then
            domainStr = Mid(senderAddr, atPos) ' Include "@" es. 
@domain.com
            Set dataObj = 
CreateObject("New:{1C3B4210-F441-11CE-B9EA-00AA006B1A69}")
            dataObj.SetText domainStr
            dataObj.PutInClipboard
        End If
    End If

    ' Open Junk Mail Options (Home -> Junk mail -> Junk Mail Options)
    Application.ActiveExplorer.CommandBars.ExecuteMso 
"JunkMailOptionsDialog"
End Sub

-- 
/-\ /\/\ /\/\ /-\ /\/\ /\/\ /-\ T /-\
-=- -=- -=- -=- -=- -=- -=- -=- - -=-
-.-. .... . ... .. ...- .. -. -.-. .- --- -.-. .... . ... .. .--. . .-. 
-.. .-
..-. --- .-. --.. .- - --- .-. --- . .--- ..- ...- . -- . .-. -.. .-
Re: about:junk
#5
Author: VanguardLH
Date: Tue, 24 Nov 2026 17:36
68 lines
4060 bytes
Ammammata <ammammata@tiscali.it> wrote:

> VanguardLH presented the following explanation :
>
>> why not create a rule that looks for the domain in the From
>> header?
> 
> no rules, must be easy-to-use: right click on the mail, select "block 
> domain", done.

Not all possible rules (conditions and actions) can be added to a
context menu.  There are LOTS of rules with varying conditions and
actions that you could define.  You're asking on blocking a domain.
Lots of users could ask for other context menu entries based on some
other criteria.  The context menu would become unusable, and effectively
become the rule manager that is already separately available.

The simple context menu method of blocking by sender is pretty stupid.
Anyone can specifying whatever they want in the From header.  That
Microsoft made is easy to block by sender didn't mean it was a smart
method.  Spammers and scammers lie, so adding them to a block list
naive.

>> Since the sender gets to specify what is their From address, any method
>> that filters on their domain is useless against spammers that use random
>> domains, invalid domains, or cycles through numerous domains (but for
>> which they don't have an account at the domain, anyway).  Filtering on
>> the From header only works if the sender always uses the same address in
>> their From header, and if they are the ONLY sender using that domain.
> 
> around 80% of them come from *.com domains, the rest from new first 
> level like .info .biz and so on
> I already blocked almost all country extensions, leaving the local one 
> and few countries here around. Of course I can't block outlook.com or 
> hotmail.com or similar well known providers, so I spend a few minutes 
> every day blocking new domains and single mail addresses. Unfortunately 
> the hosting provider lacks a good spam filter, I tried a few program 
> like spamihilator but they made a mess :(

In the Junk Email Options of standalone Outlook, under the Blocked
Senders tab, you can add templates of sender addresses there, like:

.biz

but that might too general, so use:

@*.biz

I haven't tested using wildcards in the block string to know Outlook
knows how to parse on them.  It let me add @*.biz, so presumably it
supports wildcards.  I'd have to get e-mails from someone@somewhere.biz
to know if @*.biz would trigger on that e-mail.

Alas, Outlook doesn't support defining free-form rules that incorporate
regex, like matching on "@.+\.(biz|store|info|etc)$".

The Outlook webmail's junk filter on domain isn't so robust.  You cannot
specify @*.biz nor even .biz.  You have to enter <domain>.<tld>, like
metafork.biz.  However, doesn't look like whomever you use as e-mail
provider has decent server-side (account-define) rules to do the
filtering at the server, and eliminate the bandwidth to get unwanted
e-mails to your local e-mail client.

> I asked both chatgpt and gemini for a VBA script to implement the 
> trick, but it failed on the instruction:

I've never delved into VBA in Outlook, Word, or in the other Office
components, so I can't help you there.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads