🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: microsoft.public.outlook.general
Article #4

Re: about:junk

#4
From: 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 /-\
-=- -=- -=- -=- -=- -=- -=- -=- - -=-
-.-. .... . ... .. ...- .. -. -.-. .- --- -.-. .... . ... .. .--. . .-. 
-.. .-
..-. --- .-. --.. .- - --- .-. --- . .--- ..- ...- . -- . .-. -.. .-
Technical Details
Message-ID: <11e3nk6$dafm$1@solani.org>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
References: <11e1ol2$cb5p$1@solani.org> <6fzsv3lr7phi$.dlg@v.nguard.lh>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: Ammammata <ammammata@tiscali.it>
Newsgroups: microsoft.public.outlook.general
Subject: Re: about:junk
Date: Tue, 24 Nov 2026 11:07:01 +0100
Message-ID: <11e3nk6$dafm$1@solani.org>
References: <11e1ol2$cb5p$1@solani.org> <6fzsv3lr7phi$.dlg@v.nguard.lh>
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-15"; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 24 Nov 2026 10:07:02 -0000 (UTC)
Injection-Info: solani.org;
	logging-data="436726"; mail-complaints-to="abuse@news.solani.org"
Cancel-Lock: sha1:NgY2qCfysdU9oRqWLwWaeIYUwa0=
X-User-ID: eJwFwQkRwEAIBDBLcDwLcnYo+JfQJCw1B56RHhdXQLQO9xXFmUFDB1tkdxaXfV5j38MR3I8+VodS0X6r8gNQahVx
X-Newsreader: MesNews/1.08.06.00-gb