TIP: Click on subject to list as thread! ANSI
echo: binkd
to: Michiel van der Vlist
from: Fermin Sanchez
date: 2021-05-10 13:43:00
subject: Incoming Netmail from non

   Hello Michiel!

10 May 21 12:57, you wrote to me:

 FS>> But this, according to what is in the config file, only concerns
 FS>> outgoing mails anyway. Noob question, probably - how do others
 FS>> deal with mail arricing in the "inbound-nonsecure" folder? Just
 FS>> copy them manually into the normal inbound to be processed?
 MV> in binkd.cfg:
 MV> exec d:\\fido\\batch\\mailrcvd.bat *

I actually use "*.pkt" as a file mask, but so far, same difference:
*****
exec !@@c:\\bbs\\_batch\\FMail_In.cmd *.pkt
*****

 MV> in mailrcvd.bat:
 MV> if exist \fido\unsecure\*.pkt move \fido\unsecure\*.pkt \fido\secure\

I've adapted this and probably somewhat "overengineered" it. "Sharing is caring", so here you go:
********
@echo off
for %%I in ("%~dp0\..") do set "base=%%~fI"

set unk_mail="%base%\transfer\in.unknown\*.pkt"
IF EXIST "%unk_mail%" GOTO MoveUnknown
GOTO ProcessMail

:MoveUnknown
set in="%base%\transfer\in"
move %unk_mail% "%in%"
GOTO ProcessMail

:ProcessMail
%base%\FMail\fmailw32.exe toss /B
%base%\FMail\fmailw32.exe import
%base%\FMail\ftoolsw32.exe AddNew /A
%base%\FMail\fmailw32.exe toss /B
*********

 MV> So I automatically process *.pkt from the unsecure. Compressed mail is
 MV> another story...

One problem/situation/mailtype at a time... ;-)

Regards
Fermin


... Feel free to *S*W*I*P*E* the Taglines if you like `em. ;-)
--- GoldED+/W64-MSVC 1.1.5-b20180707
                                                                                                              
* Origin: 2:301/123 (2:301/123)

SOURCE: echomail via QWK@pharcyde.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.