procmail
[Top] [All Lists]

Re: how to delay (following) tasks on filtered messages

2005-03-20 04:14:39
Am 2005-03-20 01:43:42, schrieb Professional Software Engineering:

Er, that's fine to lock a RECIPE (and if you're outputting to a file, you 
should), but why lockfile the whole fetchmail invocation (which seems to be 
what you said in your original post)?

Oh, my 'tdfetchmail' (the wraper script) produce an logfile like:

2005-03-20 11:30:01 : Processing started...
2005-03-20 11:30:01 :  athina.russel           default         (1: No mail)
2005-03-20 11:30:02 :  ccenter                 default         (1: No mail)
2005-03-20 11:30:08 :  diana.seitz             default         (1: No mail)
2005-03-20 11:30:11 :  farahnaz.pahlavi        default         (1: No mail)
2005-03-20 11:30:12 :  fayah.dogan             default         (1: No mail)
2005-03-20 11:30:16 :  karima.kalaaji          default         (1: No mail)
2005-03-20 11:30:18 :  lydia.ackermann         default         (1: No mail)
2005-03-20 11:30:20 :  michelle.konzack        0_private       (0: Success)
2005-03-20 11:30:30 :  michelle.konzack        1_tdnet         (1: No mail)
2005-03-20 11:30:51 :  michelle.konzack        2_programming   (1: No mail)
2005-03-20 11:30:54 :  michelle.konzack        3_arabeyes      (1: No mail)
2005-03-20 11:30:57 :  michelle.konzack        4_bts           (1: No mail)
2005-03-20 11:31:01 :  michelle.konzack        5_postgresql    (0: Success)
2005-03-20 11:31:12 :  michelle.konzack        6_php           (1: No mail)
2005-03-20 11:31:15 :  michelle.konzack        7_linux         (0: Success)
2005-03-20 11:32:08 :  michelle.konzack        8_mailsoftware  (1: No mail)
2005-03-20 11:32:12 :  michelle.konzack        9_debian        (0: Success)
2005-03-20 11:33:20 :  michelle.konzack        A_misc          (1: No mail)
2005-03-20 11:33:21 :  michelle.konzack        B_wanadoo       (1: No mail)
2005-03-20 11:33:56 :  michelle.konzack        F_ml4michelle   (0: Success)
2005-03-20 11:34:44 :  mis                     default         (1: No mail)
2005-03-20 11:34:46 :  mos                     default         (1: No mail)
2005-03-20 11:34:47 :  noor.nurani             default         (1: No mail)
2005-03-20 11:34:49 :  sandrine.dario          default         (1: No mail)
2005-03-20 11:34:50 :  tamay.dogan             default         (1: No mail)
2005-03-20 11:34:54 :  zelie.domeracki         default         (1: No mail)
-------------------------------------------------------------------------------
Availlable diskspace:
Filesystem           1M-blocks      Used Available Use% Mounted on
/dev/hda9                72287     52601     16013  77% /home
===============================================================================

So as you can see at my account, I can have multiple fetchmailrc  :-)

With locking I mean, I can loch one fetchmailrc and not the whole system.

So if my wraper is working on the fetchmailrc "8_mailsoftware" it will
locked and if the wraper continue with the next fetchmailrc it will
unlock it.

Which mean, I need to create a new fetchmailrc for the 'tdautobuilder'

And YES, it was a heavy Job to get 'tdfetchmail' working corrctly...

And because we love our procmail:

############### NEW MESSAGE AT 2005-03-20 02:46:06 ################
(6082) FLT_schrott       : pass
(6082) NET_sysmessages   : pass
(6082) NET_tdcontrol     : pass
(6082) NET_ml4michelle   : pass
(6082) My_Progs          : pass
(6082) FLT_received      : pass (9)

    Catch around 25% of all SPAMs per day...

(6082) FLT_yavr          : pass
(6082) FLT_virus         : pass

    5-10 Messages per day

(6082) F-Prot            : start : 2005-03-20 02:46:06
(6082) F-Prot            : stop  : 2005-03-20 02:46:06
(6082) FLT_blacklist     : pass

    Kill all these stupid Anti-Anti-Virus SPAMs
    and other sick mailservers.

(6082) FLT_spamhaus      : begin first IP (2005-03-20 02:46:07)
(6082) FLT_spamhaus      : 1 : sbl-xbl.spamhaus.org
(6082) FLT_spamhaus      : 1 : cbl.abuseat.org
(6082) FLT_spamhaus      : 1 : relays.ordb.org
(6082) FLT_spamhaus      : 1 : list.dsbl.org
(6082) FLT_spamhaus      : begin second IP
(6082) FLT_spamhaus      : 2 : sbl-xbl.spamhaus.org
(6082) FLT_spamhaus      : 2 : cbl.abuseat.org
(6082) FLT_spamhaus      : 2 : relays.ordb.org
(6082) FLT_spamhaus      : 2 : list.dsbl.org
(6082) FLT_spamhaus      : End (2005-03-20 02:46:08)

   Stops every day 45% of my SPAMs

(6082) FLT_kornet        : pass

   Only 5-30 Messages a day

(6082) FLT_rfc2047       : pass
(6082) FLT_subscribe     : pass

   Do you know, how many people try tu unsubscribe daily ?  -  30-200

(6082) FLT_spam_sub      : pass

   Oh yes, we do not like faked Rollex of Meds...

(6082) FLT_spam_body     : pass

   680 URLS listet in my "LIST_spam_body"
   Most domains are created some days before used for SPAMing
   What do myou need ? Logos, Roleex, Meds ?

   Around 5% per day

(6082) FLT_spamips       : pass
(6082) FLT_spamassassin  : start : 2005-03-20 02:46:10
(6082) FLT_spamassassin  : stop  : 2005-03-20 02:46:10

   Uff more then 20% per day...

   Around 1-2% SPAM coming through

(6082) ML_divers         : pass
(6082) ML_miscelaneous   : pass
(6082) BTS_Debian        : pass
(6082) ML_debian         : pass
(6082) BTS_td            : pass
(6082) ML_isc            : pass
(6082) ML_mailsoftware   : pass
(6082) ML_x-window-system: pass
(6082) ML_lugs           : pass
(6082) ML_arabeyes       : pass
(6082) ML_linux          : pass
(6082) FLT_subject       : pass
(6082) ML_postgresql     : pass
(6082) ML_php            : pass
(6082) ML_linuxchix      : pass
(6082) ML_programming    : pass
(6082) ML_dos            : pass
(6082) ML_windows        : pass
(6082) ML_bsd            : pass
(6082) Personen          : pass
(6082) BUSINESS_firms    : pass
(6082) BUSINESS_ebay     : pass
From root  Sun Mar 20 02:46:06 2005
 Subject: Re:  RHEL 4 with Apache 2.0.52 and mod_auth
  Folder: /home/michelle.konzack/Maildir/.ATTENTION/new/1111283170.608     2429


################ NEW MESSAGE AT 2005-03-20 03:46:44 ################
(30153) FLT_schrott       : pass
(30153) NET_sysmessages   : pass
(30153) NET_tdcontrol     : pass
(30153) NET_ml4michelle   : pass
(30153) My_Progs          : pass
(30153) FLT_received      : pass (3)
(30153) FLT_yavr          : pass
(30153) FLT_virus         : pass
(30153) F-Prot            : start : 2005-03-20 03:46:44
(30153) F-Prot            : stop  : 2005-03-20 03:46:44
(30153) FLT_blacklist     : pass
(30153) FLT_spamhaus      : begin first IP (2005-03-20 03:46:45)
(30153) FLT_spamhaus      : 1 : sbl-xbl.spamhaus.org
(30153) FLT_spamhaus      : 1 : cbl.abuseat.org
(30153) FLT_spamhaus      : 1 : relays.ordb.org
(30153) FLT_spamhaus      : 1 : list.dsbl.org
(30153) FLT_spamhaus      : begin second IP
(30153) FLT_spamhaus      : 2 : sbl-xbl.spamhaus.org
From root  Sun Mar 20 03:46:44 2005
 Subject: *****sbl-xbl.spamhaus.org***** ÀÚ°ÝÁõÃëµæ°ú µ¿œÃ¿¡ À¯Åë°üž®°£ºÎÁ÷¿øÀž
  Folder: .ATTENTION.FLT_spamhaus_sbl-xbl.spamhaus.org/new/1111286806.     2959


If procmail write the body of the message to the file above and
my script try to access it, maybe the script run into trouble...

Not the body of the message - your procmail recipe can extract the package 
name identified in the message and create a zero-length file of that name, 
thereby adding it to the "queue".

Ah, OK, this is a new idea...

I was saving the whole BODY of the message because I have coded
a viewer for X so I can see the changes mad and more...

Greetings and nice Sunday
Michelle

-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/ 
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSM LinuxMichi
0033/3/88452356    67100 Strasbourg/France   IRC #Debian (irc.icq.com)


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail


<Prev in Thread] Current Thread [Next in Thread>