Re: Procmail question/puzzle

2011-04-25 Thread Michelle Konzack
Hello Paul E Condon,

Am 2011-04-24 14:13:26, hacktest Du folgendes herunter:
 ## 'unreadable' mail
 :0:
 * 1^0 
 ^\/Subject:.*=\?(.*big5|iso-2022-jp|ISO-2022-KR|euc-kr|gb2312|ks_c_5601-1987|windows-1251|windows-1256)\?
 * 1^0 
 ^\/Content-Type:.*charset=(.*big5|iso-2022-jp|ISO-2022-KR|euc-kr|gb2312|ks_c_5601-1987|windows-1251|windows-1256)
 unreadable_

To let this work, you have to give  them  a  NEGATIVE  score  first  and
escape the - like

:0:
* -1^0
*  1^1 
^Subject:.*=\?(.*big5|iso\-2022-jp|ISO\-2022-KR|euc\-kr|gb2312|ks_c_5601\-1987|windows\-1251|windows\-1256)\?
*  1^1 
^Content-Type:.*charset=(.*big5|iso-2022\-jp|ISO\-2022-KR|euc\-kr|gb2312|ks_c_5601\-1987|windows\-1251|windows\-1256)
unreadable_

 ## bogofilter spam filtering:
 :0fw
 | /usr/bin/bogofilter -eplu

But bogofilter mark the message slike spamassassin...  You have now to
filter out thie crap.  Since I do not know bogofilter and the header  it
sets, I can not help you here.  Maybe you can send the full headers of a
scanned SPAM message here?

Thanks, Greetings and nice Day/Evening
Michelle Konzack

-- 
# Debian GNU/Linux Consultant ##
   Development of Intranet and Embedded Systems with Debian GNU/Linux

itsystems@tdnet France EURL   itsystems@tdnet UG (limited liability)
Owner Michelle KonzackOwner Michelle Konzack

Apt. 917 (homeoffice)
50, rue de Soultz Kinzigstraße 17
67100 Strasbourg/France   77694 Kehl/Germany
Tel: +33-6-61925193 mobil Tel: +49-177-9351947 mobil
Tel: +33-9-52705884 fix

http://www.itsystems.tamay-dogan.net/  http://www.flexray4linux.org/
http://www.debian.tamay-dogan.net/ http://www.can4linux.org/

Jabber linux4miche...@jabber.ccc.de
ICQ#328449886

Linux-User #280138 with the Linux Counter, http://counter.li.org/


signature.pgp
Description: Digital signature


Procmail question/puzzle

2011-04-24 Thread Paul E Condon
The following procmail recipe was copied form a blog about how to set
up Debian/Exim/Procmail/Mutt to use Bogofilter. It is intended to do a
first cut at getting rid of junk that confuses Bogofilter, and appears
just before the recipe that pipes incoming mail through Bogofilter.
But I can't figure out how it works (or even if it does work). It may
just be garbled in copying somewhere along the trail from an original
good idea to a hadly formed helpful hint on the internet. (Procmail
does have its own special tweeks to reg. expressions.) In its original
form it had a particularly infelicitous name for the action file,
which I have changed, but otherwise what you see is GUI window cut and
paste form the internet. Does this make sense? Explain, please.

## 'unreadable' mail
:0:
* 1^0 
^\/Subject:.*=\?(.*big5|iso-2022-jp|ISO-2022-KR|euc-kr|gb2312|ks_c_5601-1987|windows-1251|windows-1256)\?
* 1^0 
^\/Content-Type:.*charset=(.*big5|iso-2022-jp|ISO-2022-KR|euc-kr|gb2312|ks_c_5601-1987|windows-1251|windows-1256)
unreadable_


## bogofilter spam filtering:
:0fw
| /usr/bin/bogofilter -eplu

Also, this is a regexp. Regexp.s can be garbled in email because of
line folding.  If the above is garbled on the list, I'll welcome
suggestions as to how to format it in a reposting.

TIA

-- 
Paul E Condon   
pecon...@mesanetworks.net


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110424201326.ga9...@big.lan.gnu



Bit of a Strange IMAP/POP3/Procmail Question

2004-04-18 Thread Peter A. Cole
Hi all,

I've got a bit of a strange question in relation to IMAP, POP3, and Procmail.

My mail server here at home currently running Debian Sarge uses a combination of 
fetchmail, sendmail, and procmail to deliver email to my local accounts.

I have done nothing with procmail, so everything gets delivered to /var/mail/username.

Currently, I'm using qpopper to allow my clients to retrieve mail via pop3 and 
dovecot-imap to allow me to access mail via horde2/imp remotely. I tried to move to 
dovecot-pop3 tonight instead of qpopper, but dovecot has mysteriously disappeared from 
Sarge...

Anyway, what I really want to achieve is to have two of the mail accounts delivered to 
/var/mail/username as they are now, and have the other four accounts delivered to 
$HOME/mail or whatever the correct maildir usage would be.

I've done google searches etc., but I think I'm searching for the wrong information as 
I'm sure it's out there somewhere. Can someone point me in the right direction?

I'm hoping to end up having the two accounts in /var/mail accessible via POP3 for the 
two Windows clients here at home, and then the other four accounts accessible via IMAP 
so I can read them whereever I am, via horde2/imp, via thunderbird, or whatever.

If anyone can just show me where to look for some procmail recipes or appropriate 
pop3/imap servers to use that would be great.

Thanks,

Pete


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



procmail question

2003-09-28 Thread LeVA
Hello!

How can I make this with procmail (what should I write to the 
~/.procmailrc file):

If an email has a given text in it's subject, delete the mail,
if another email has aonther given text in its subject write it to 
another file than the user's mail spool file.

Thanks!

Daniel

--
LeVA
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: procmail question

2003-09-28 Thread Michael Schulz
Hi,

On Sun, 2003-09-28 at 20:00, LeVA wrote:
 Hello!
 
 How can I make this with procmail (what should I write to the 
 ~/.procmailrc file):
 
 If an email has a given text in it's subject, delete the mail,
 if another email has aonther given text in its subject write it to 
 another file than the user's mail spool file.

man procmailex gives you some good examples.

:0
^Subject:.YOUR_REGEXP_GOES_HERE
FILENAME (for deletion: /dev/null)

hth
mike



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: procmail question

2003-09-28 Thread Monique Y. Herman
On Sun, 28 Sep 2003 20:26:40 +0200, Michael Schulz [EMAIL PROTECTED] penned:
 Hi,
 
 On Sun, 2003-09-28 at 20:00, LeVA wrote:
 Hello!
 
 How can I make this with procmail (what should I write to the 
 ~/.procmailrc file):
 
 If an email has a given text in it's subject, delete the mail,
 if another email has aonther given text in its subject write it to 
 another file than the user's mail spool file.
 
 man procmailex gives you some good examples.
 
:0
 ^Subject:.YOUR_REGEXP_GOES_HERE
 FILENAME (for deletion: /dev/null)
 
 hth
 mike
 

Just to clarify (because I read it as syntax at first)

In the case of deletion, FILENAME would be /dev/null
In the case of wanting to send it somewhere other than your normal
mailbox, FILENAME would be ~/mail/mysupercoolfilterbox or something.

-- 
monique


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: procmail question

2003-09-28 Thread Michael Schulz
On Sun, 2003-09-28 at 20:31, Monique Y. Herman wrote:

 Just to clarify (because I read it as syntax at first)
 
 In the case of deletion, FILENAME would be /dev/null
 In the case of wanting to send it somewhere other than your normal
 mailbox, FILENAME would be ~/mail/mysupercoolfilterbox or something.
yes, sorry if I was unspecific .. don't mix it up :)

bye
mike


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



procmail question

2003-09-28 Thread LeVA
Hello!

Here is a bit harder question :).
I have a few email addresses, and I want to ensure that I get just those 
messages which were posted to me.
So I want a rule (or more, I don't know) which filters all mails, if 
they has a To or Cc or Bcc line in the header, which is followed by one 
of my email addressess.

Hope it is possible to do with procmail :)

Thanks for the help!

Daniel

--
LeVA


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: procmail question

2003-09-28 Thread Michael Schulz
leva,

On Sun, 2003-09-28 at 23:31, LeVA wrote:

 I have a few email addresses, and I want to ensure that I get just those 
 messages which were posted to me.
 So I want a rule (or more, I don't know) which filters all mails, if 
 they has a To or Cc or Bcc line in the header, which is followed by one 
 of my email addressess.

as I said before man procmailex gives you some examples for that. 
You can use regular expressions in .procmailrc. 

bye
mike


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: procmail question

2003-09-28 Thread Monique Y. Herman
On Sun, 28 Sep 2003 23:31:21 +0200, LeVA [EMAIL PROTECTED] penned:
 Hello!
 
 Here is a bit harder question :).
 I have a few email addresses, and I want to ensure that I get just those 
 messages which were posted to me.
 So I want a rule (or more, I don't know) which filters all mails, if 
 they has a To or Cc or Bcc line in the header, which is followed by one 
 of my email addressess.
 
 Hope it is possible to do with procmail :)
 
 Thanks for the help!
 

I'm 99.9% sure you can't filter on bcc: on the receiving end.

If you could, though, the example from the previous post, along with the
pointers to the documentation (and you did read the documentation,
right?), ought to be enough to give you an idea how to do it.

So tell you what: show us the rule that you've created to try to perform
the above filtering and tell us how you know it's not working.  Then
maybe we can tell you the flaw in your approach.

Teach a man to fish ...
-- 
monique


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: procmail question

2003-09-28 Thread kmark


 So tell you what: show us the rule that you've created to try to perform
 the above filtering and tell us how you know it's not working.  Then
 maybe we can tell you the flaw in your approach.

 Teach a man to fish ...
 --
 monique

Since I'm learning procmail, my first procmail rules is to create a
'backup copy' so in case any rule puts it in the wrong place or deletes
it, I have a spare copy.
-K
--
PATH=/usr/local/bin:/usr/bin:/bin
MAILDIR=$HOME/mail  #you'd better make sure it exists
DEFAULT=$HOME/mbox   #completely optional
LOGFILE=$MAILDIR/from   #recommended
# make backup
:0 c
$MAILDIR/backup
...
more rules here


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Advanced procmail question

2002-12-02 Thread Glyn Millington
Paul Johnson [EMAIL PROTECTED] writes:

 What would be a good example procmail rule to automatically delete
 messages 72 hours old or more?

Don't know how to do it in procmail - the link below points to a perl
script which might help


http://www.rosat.mpe-garching.mpg.de/cgi-bin/w3glimpse2html/procmail/2001-09/msg00167.html?174#mfs

Glyn

-- 
Debian Home   http://www.debian.org
Debian Planet http://www.debianplanet.org/ 
For the children  http://www.debian.org/devel/debian-jr/
In a hurry??? http://qref.sourceforge.net/ 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Advanced procmail question

2002-12-02 Thread Oliver Fuchs
On Mon, 02 Dec 2002, Oliver Fuchs wrote:

 On Sun, 01 Dec 2002, Paul Johnson wrote:
 
  On Mon, Dec 02, 2002 at 05:46:19AM +0100, Oliver Fuchs wrote:
   Using mutt adding this macro to your .muttrc answers your question:
   macro index q delete-pattern ~d3denterquit
  
  Ok, this is definately a start.  Now, how to go about limiting it to
  just one folder?
  
 
 How about:
 
 folder-hook myfolder push 'D~d10d'
 

and/or additional:

folder-hook myfolder 'macro index q delete-pattern ~d1denterquit'

-- 
... don't touch the bang bang fruit


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Advanced procmail question

2002-12-01 Thread Oliver Fuchs
On Sat, 30 Nov 2002, Paul Johnson wrote:

 What would be a good example procmail rule to automatically delete
 messages 72 hours old or more?
 

Using mutt adding this macro to your .muttrc answers your question:


macro index q delete-pattern ~d3denterquit

Oliver
-- 
... don't touch the bang bang fruit


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Advanced procmail question

2002-12-01 Thread Paul Johnson
On Mon, Dec 02, 2002 at 05:46:19AM +0100, Oliver Fuchs wrote:
 Using mutt adding this macro to your .muttrc answers your question:
 macro index q delete-pattern ~d3denterquit

Ok, this is definately a start.  Now, how to go about limiting it to
just one folder?

-- 
 .''`. Baloo [EMAIL PROTECTED]
: :'  :proud Debian admin and user
`. `'`
  `-  Debian - when you have better things to do than to fix a system



msg16507/pgp0.pgp
Description: PGP signature


Re: Advanced procmail question

2002-12-01 Thread Chun Kit Edwin Lau
Or you can try archivemail + cron.

Edwin Lau

On Mon, Dec 02, 2002 at 05:46:19AM +0100, Oliver Fuchs wrote:
 On Sat, 30 Nov 2002, Paul Johnson wrote:
 
  What would be a good example procmail rule to automatically delete
  messages 72 hours old or more?
  
 
 Using mutt adding this macro to your .muttrc answers your question:
 
 
 macro index q delete-pattern ~d3denterquit
 
 Oliver
 -- 
 ... don't touch the bang bang fruit
 
 
 -- 
 To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
 with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]

-- 
Edwin ERTW Lau
__ 
Post your free ad now! http://personals.yahoo.ca


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Advanced procmail question

2002-12-01 Thread Oliver Fuchs
On Sun, 01 Dec 2002, Paul Johnson wrote:

 On Mon, Dec 02, 2002 at 05:46:19AM +0100, Oliver Fuchs wrote:
  Using mutt adding this macro to your .muttrc answers your question:
  macro index q delete-pattern ~d3denterquit
 
 Ok, this is definately a start.  Now, how to go about limiting it to
 just one folder?
 

How about:

folder-hook myfolder push 'D~d10d'

Oliver
-- 
... don't touch the bang bang fruit


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Advanced procmail question

2002-12-01 Thread Oliver Fuchs
On Sun, 01 Dec 2002, Paul Johnson wrote:

 On Mon, Dec 02, 2002 at 05:46:19AM +0100, Oliver Fuchs wrote:
  Using mutt adding this macro to your .muttrc answers your question:
  macro index q delete-pattern ~d3denterquit
 
 Ok, this is definately a start.  Now, how to go about limiting it to
 just one folder?
 

How about:

folder-hook myfolder push 'D~d10d'

Oliver
-- 
... don't touch the bang bang fruit


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Advanced procmail question

2002-11-30 Thread Paul Johnson
What would be a good example procmail rule to automatically delete
messages 72 hours old or more?

-- 
 .''`. Baloo [EMAIL PROTECTED]
: :'  :proud Debian admin and user
`. `'`
  `-  Debian - when you have better things to do than to fix a system



msg16315/pgp0.pgp
Description: PGP signature


Procmail question

2002-02-24 Thread Corey Halpin
  Does anybody have a procmail script to trim html out of email?
  such that all the email I get is only text-plain?

thanks,
crh
-- 
Corey R. Halpin (http://www.cae.wisc.edu/~halpin/ )
Student of Electrical Engineering and Computer Sciences
University of Wisconsin - Madison




Re: Procmail question

2002-02-24 Thread Tony Green
On Mon, 2002-02-25 at 10:51, Corey Halpin wrote:
   Does anybody have a procmail script to trim html out of email?
   such that all the email I get is only text-plain?


 :0
* ^Content-Type: text/html
{

:0 bfW:
| (echo [html stripped]; lynx -dump -force_html -stdin)

:0 ahfw:
| formail -iContent-Type: text/plain
}


You need lynx installed, but that works for me
-- 
Tony Green [EMAIL PROTECTED]
Tel   :   +61-(0)2-9500-9996
Mobile:   +61-(0)4-2521-9996
GnuPG Key :  1024D/B5657C8B
Key fingerprint = 9ED8 59CC C161 B857 462E  51E6 7DFB 465B B565 7C8B



Procmail Question

2002-02-19 Thread Corey Halpin
  Does anyone know of a way in procmail to to replace one header with another? 
 (ie, replace the contents of the From header with the contents of the List-ID 
header?)

thanks,
crh
-- 
Corey R. Halpin (http://www.cae.wisc.edu/~halpin/ )
Student of Electrical Engineering and Computer Sciences
University of Wisconsin - Madison




Re: Procmail Question

2002-02-19 Thread Corey Halpin
  Nevermind.
  I found formail -i.

  In case anyone's interested, here's a recipe that I find handy for 
debian-user:

:0
* ^x-mailing-list.*debian-user
| formail -i reply-to: debian-user@lists.debian.org \
| rcvstore +lists/debian/user

   Does anyone know of a way in procmail to to replace one header with 
 another? 
  (ie, replace the contents of the From header with the contents of the 
 List-ID 
 header?)

crh
-- 
Corey R. Halpin (http://www.cae.wisc.edu/~halpin/ )
Student of Electrical Engineering and Computer Sciences
University of Wisconsin - Madison




Procmail question (was Re: Virus incident)

2001-11-22 Thread Richard Cobbe
Lo, on Thursday, November 22, Linda Laubenheimer did write:

 Craig Dickson wrote:
 
  * 1^0 ^From:[EMAIL PROTECTED]
  * 1^0 ^From:[EMAIL PROTECTED]
  /dev/null
 
 Add 
* 1^0 ^From:[EMAIL PROTECTED]
 to that last one...
 

I understood all of the rules that were posted except for one thing.
Just out of curiosity, what does the 1^0 above do?  The procmail
manpages weren't much help.

Richard



Re: Procmail question (was Re: Virus incident)

2001-11-22 Thread Craig Dickson
Richard Cobbe wrote:

 I understood all of the rules that were posted except for one thing.
 Just out of curiosity, what does the 1^0 above do?  The procmail
 manpages weren't much help.

Try man procmailsc and read up on scoring.

Craig



Mutt - Procmail Question

2001-11-10 Thread Jijo Jose A
hi all
still i used procmail 3.21.20010831.3.22pre-1 for mail processing and mutt
1.3.22-1 as MUA, to remove the unwanted headers i wrote '|cat | formail -k -X 
From:
-X Return-Path: -X Date:.. my_mbox' in .procmailrc as the action line 
for a condition. but i started 'mutt -f my_mbox ', my_mbox is not a mailbox
error will occured. 
how can i solve this ?
TIA
-jijo jose



Re: Mutt - Procmail Question

2001-11-10 Thread John Patton
On Sat, Nov 10, 2001 at 07:48:00PM +0530, Jijo Jose A wrote:
 hi all
 still i used procmail 3.21.20010831.3.22pre-1 for mail processing and mutt
 1.3.22-1 as MUA, to remove the unwanted headers i wrote '|cat | formail -k -X 
 From:
 -X Return-Path: -X Date:.. my_mbox' in .procmailrc as the action line 
 for a condition. but i started 'mutt -f my_mbox ', my_mbox is not a 
 mailbox
 error will occured. 
 how can i solve this ?

A couple of possibilities come to mind. A line looking like:

From [EMAIL PROTECTED]

is used to seperate different emails. If it's being removed you will
have problems. The other thing is that the mbox format is picky about
certain things, like trailing empty lines. Look at the actual file and
find out what doesn't look right and then fix your procmail action
accordingly. Try looking up the specifications for mbox style mail boxes
online to find out what's wrong with your file.

-- 
John Patton  [EMAIL PROTECTED]

Love conquers all things; let us too surrender to Love.
-Virgil, Eclogues



Re: Mutt - Procmail Question

2001-11-10 Thread dman
On Sat, Nov 10, 2001 at 01:48:29PM -0600, John Patton wrote:
| On Sat, Nov 10, 2001 at 07:48:00PM +0530, Jijo Jose A wrote:
...
| 'mutt -f my_mbox ', my_mbox is not a mailbox
...
|  how can i solve this ?
...
| then fix your procmail action accordingly.

Once the mailbox is fixed, I recommend using mutt, not procmail, to
remove unwanted headers.  For example, in my .muttrc I have :




# Headers config:

# I can get rid of the extra headers 
ignore *
unignore From: To: Date: Cc: Reply-To: 
unignore User-Agent: X-Mailer: List-Id: X-Mailing-List: X-No-Cc:
unignore Mail-Followup-To:

# I can order the headers the way I want
hdr_order From Date To Cc User-Agent X-Mailer Reply-To Mail-Followup-To X-No-Cc 
List-Id X-Mailing-List

#



In reality it doesn't remove the headers, they are still in the
mailbox, but you don't see the ones you don't want in your pager which
is the whole purpose.

HTH,
-D



Re: Procmail question-

2000-05-09 Thread Mario Olimpio de Menezes
On Mon, 8 May 2000, brian moore wrote:

 
 true.  procmail ain't ideal for this, but it's the best tool around
 without loading perl on every MIME'd mail.
 


how do you put this in a exim.conf file? 
do you use it as your .procmailrc or a system-wide one?


thanks,


  :0
  *  5
  {
  
  :0 B:
  * .*(name=.*\.vbs|[EMAIL PROTECTED]).*
  /share/etc/ILOVEYOU
  }
 
 I find this one is a bit safer (though slightly more complex) -- note
 that your filter will match your mail as well as this one.
 
 :0
 *^Content-type: (multipart/mixed|application/octet-stream)
 {
 :0 B
 *^Content-Disposition: (attachment|inline);
 *filename=.*\.(vbs|wsf)
 {
:0 fbw
|/usr/bin/sed -e 's/\([nN][aA][mM][eE]=.*\.[vV][bB][sS]\)/\1.txt/' \
  -e 's/\([nN][aA][mM][eE]=.*\.[wW][sS][fF]\)/\1.txt/'
 
 }
 }
 
 This will rename 'foo.vbs' to 'foo.vbs.txt', which breaks the
 auto-execution.  It's relatively lightweight, so you can leave it in
 (sadly, I still pick up a couple of happy99's a day still).
 
 -- 
 Brian Moore   | Of course vi is God's editor.
   Sysadmin, C/Perl Hacker | If He used Emacs, He'd still be waiting
   Usenet Vandal   |  for it to load on the seventh day.
   Netscum, Bane of Elves.
 
 


[]s
Mario O.de MenezesMany are the plans in a man's heart, but
IPEN-CNEN/SP is the Lord's purpose that prevails
http://curiango.ipen.br/~mario Prov. 19.21
   http://www.revistalinux.com.br



Procmail question-

2000-05-08 Thread Tom Warfield
okay yes i know procmail has its own list, but i cant get there system to
respond to my request to subscribe.  here is my question:

Right now i have the following rule in my procmailrc:
:0 BD:
* VBS
/this/directory

Well there is a problem with this rule, it searches the entire email for
VBS.  All i want it to search for is the attachment of a file name with the
extension of .vbs  Okay can this be done?   Im sure it can, just i can not
find any info on how to make it do this.  Can someone purdy please help me
:)

Thank you,

Tom W.


Procmail question-

2000-05-08 Thread Tom Warfield
yes i know procmail has its own list, but i cant get there system to respond
to my request to subscribe.  here is my question:

Right now i have the following rule in my procmailrc:
:0 BD:
* VBS
/this/directory

Well there is a problem with this rule, it searches the entire email for
VBS.  All i want it to search for is the attachment of a file name with the
extension of .vbs  Okay can this be done?   Im sure it can, just i can not
find any info on how to make it do this.  Can someone purdy please help me
:)

Thank you,

Tom W.


Re: Procmail question-

2000-05-08 Thread Oswald Buddenhagen
 Well there is a problem with this rule, it searches the entire email for
 VBS.  All i want it to search for is the attachment of a file name with the
 extension of .vbs  Okay can this be done?   Im sure it can, just i can not
 find any info on how to make it do this.  Can someone purdy please help me
 :)
 
afaik, procmail is not able to understand mime (the format, in
which attachements are sent).
you would have to pipe your mails through a script, which uses some
mime-tools (eg, mime-construct, which also has a mimedecode).
i didn't try anything in that direction, so this is only an idea.

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Linux - the last service pack you'll ever need.


Re: Procmail question-

2000-05-08 Thread Adam Shand

 Well there is a problem with this rule, it searches the entire email for
 VBS.  All i want it to search for is the attachment of a file name with
 the extension of .vbs Okay can this be done?  Im sure it can, just i can
 not find any info on how to make it do this.  Can someone purdy please
 help me :)

procmail doesn't understand mime so there is no way to tell it delete
attachments which end with .vbs.  however what you can do is use a rule
like the below one.  we've been using this rule since the virus came out and
it's been working pretty well (caught almost 500 copies of it).


PATH=/bin:/usr/bin:/usr/local/bin
LOGFILE=/share/etc/procmail.log

:0:
* ^Subject: ILOVEYOU
/share/etc/ILOVEYOU

:0:
* .*name=.*\.vbs.*
/share/etc/ILOVEYOU

:0
*  5
{

:0 B:
* .*(name=.*\.vbs|[EMAIL PROTECTED]).*
/share/etc/ILOVEYOU
}


if you make /share/etc/ILOVEYOU a directory procmail will deliver each
message to a seperate file in that directory.  the  5 means that for
messages which fail the above header check it only scans the first 50k of
the body for matching text.

adam.


Re: Procmail question-

2000-05-08 Thread brian moore
On Mon, May 08, 2000 at 02:39:47PM -0800, Adam Shand wrote:
 
  Well there is a problem with this rule, it searches the entire email for
  VBS.  All i want it to search for is the attachment of a file name with
  the extension of .vbs Okay can this be done?  Im sure it can, just i can
  not find any info on how to make it do this.  Can someone purdy please
  help me :)
 
 procmail doesn't understand mime so there is no way to tell it delete
 attachments which end with .vbs.  however what you can do is use a rule
 like the below one.  we've been using this rule since the virus came out and
 it's been working pretty well (caught almost 500 copies of it).

true.  procmail ain't ideal for this, but it's the best tool around
without loading perl on every MIME'd mail.

 :0
 *  5
 {
 
 :0 B:
 * .*(name=.*\.vbs|[EMAIL PROTECTED]).*
 /share/etc/ILOVEYOU
 }

I find this one is a bit safer (though slightly more complex) -- note
that your filter will match your mail as well as this one.

:0
*^Content-type: (multipart/mixed|application/octet-stream)
{
:0 B
*^Content-Disposition: (attachment|inline);
*filename=.*\.(vbs|wsf)
{
   :0 fbw
   |/usr/bin/sed -e 's/\([nN][aA][mM][eE]=.*\.[vV][bB][sS]\)/\1.txt/' \
 -e 's/\([nN][aA][mM][eE]=.*\.[wW][sS][fF]\)/\1.txt/'

}
}

This will rename 'foo.vbs' to 'foo.vbs.txt', which breaks the
auto-execution.  It's relatively lightweight, so you can leave it in
(sadly, I still pick up a couple of happy99's a day still).

-- 
Brian Moore   | Of course vi is God's editor.
  Sysadmin, C/Perl Hacker | If He used Emacs, He'd still be waiting
  Usenet Vandal   |  for it to load on the seventh day.
  Netscum, Bane of Elves.


Re: viewing pdf from mutt - procmail question?

2000-05-03 Thread J.H.M. Dassen \(Ray\)
On Tue, May 02, 2000 at 16:47:38 -0400, Lee Bradshaw wrote:
 I can view pdf attachments from mutt if they have mime headers like
 
  Content-Type: application/pdf; name=file.pdf
 
 However I get quite a few emails with
 
  Content-Type: application/octet-stream
 
 Does anyone have a reliable way for modifying the Content-Type and
 changing octet-stream to a useable type (pdf in this case)?

I'd approach this in a different way (besides educating people about the
proper use of MIME types of course):
create a viewer script for application/octet-stream which saves its input in
a temporary file, runs
file -b thetempfile | magic2mime
to determine the proper MIME type, and then view it using the see program
from mime-utils.

HTH,
Ray
-- 
Tevens ben ik van mening dat Nederland overdekt dient te worden.


viewing pdf from mutt - procmail question?

2000-05-02 Thread Lee Bradshaw
I can view pdf attachments from mutt if they have mime headers like

 Content-Type: application/pdf; name=file.pdf

However I get quite a few emails with

 Content-Type: application/octet-stream

Does anyone have a reliable way for modifying the Content-Type and
changing octet-stream to a useable type (pdf in this case)? The
Content-Type: application/octet-stream may appear before or after
any of the fields that provide the filename. I'd like to add something
like this to my procmail recipes.

Here's part of an example:

Original:
=

Content-Type: multipart/mixed;
 boundary=_Turnpike_)xJ'3b(WKj+12e_BWEyqXn(zJrIAHoTE0,HCnc/7
X-Mailer: Turnpike Integrated Version 4.02 U YrzOEMMwYk3QO8OuteX9u6dtFP
X-UIDL: ed016b1b488649da6b0ef2351ce0
Status: RO
Content-Length: 1296074
Lines: 16853
 
This is a MIME message

--_Turnpike_)xJ'3b(WKj+12e_BWEyqXn(zJrIAHoTE0,HCnc/7

Welcome to Issue 17 of Incisor, a newsletter created by
Click I.T. Ltd - the IT industry PR and marketing company - for those
people interested in Bluetooth.


--_Turnpike_)xJ'3b(WKj+12e_BWEyqXn(zJrIAHoTE0,HCnc/7
Content-Description: Incisor Issue 17.pdf
Content-Disposition: attachment; filename=Incisor Issue 17.pdf
Content-MD5: WiByMdlwV8pzsqD6omG8GA==
Content-Transfer-Encoding: base64
Content-Type: application/octet-stream

JVBERi0xLjINJeLjz9MNCjc2IDAgb2JqDTw8IA0vTGluZWFyaXplZCAxIA0vTyA3OCANL0ggWyAx
MjIzIDQ5MCBdIA0vTCA5NTg4MTUgDS9FIDkwMDAzIA0vTiAxNCANL1QgOTU3MTc3IA0+PiANZW5k
b2JqDSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg

Modified:
=

Content-Type: multipart/mixed;
 boundary=_Turnpike_)xJ'3b(WKj+12e_BWEyqXn(zJrIAHoTE0,HCnc/7
X-Mailer: Turnpike Integrated Version 4.02 U YrzOEMMwYk3QO8OuteX9u6dtFP
X-UIDL: ed016b1b488649da6b0ef2351ce0
Status: RO
Content-Length: 1296074
Lines: 16853
 
This is a MIME message

--_Turnpike_)xJ'3b(WKj+12e_BWEyqXn(zJrIAHoTE0,HCnc/7

Welcome to Issue 17 of Incisor, a newsletter created by
Click I.T. Ltd - the IT industry PR and marketing company - for those
people interested in Bluetooth.


--_Turnpike_)xJ'3b(WKj+12e_BWEyqXn(zJrIAHoTE0,HCnc/7
Content-Description: Incisor Issue 17.pdf
Content-Disposition: attachment; filename=Incisor Issue 17.pdf
Content-MD5: WiByMdlwV8pzsqD6omG8GA==
Content-Transfer-Encoding: base64
Content-Type: application/pdf; name=Incisor17.pdf

JVBERi0xLjINJeLjz9MNCjc2IDAgb2JqDTw8IA0vTGluZWFyaXplZCAxIA0vTyA3OCANL0ggWyAx
MjIzIDQ5MCBdIA0vTCA5NTg4MTUgDS9FIDkwMDAzIA0vTiAxNCANL1QgOTU3MTc3IA0+PiANZW5k
b2JqDSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg



-- 
Lee Bradshaw [EMAIL PROTECTED] (preferred)
Alantro Communications   [EMAIL PROTECTED]


Re: procmail question (was: looking for a mail client)

1999-08-10 Thread Michael Stenner
On Mon, Aug 09, 1999 at 10:31:51PM +0200, Peter Palfrader aka Weasel wrote:
 I think I will go for mutt since the PGP stuff works really fine now.
 However, I have some questions regarding procmail.

You have chosen wisely.  I switched recently and can't imagine using
anything else.

 Is it possible to have it run automatically when new mail arrives
 without the need for every user to have his .forward set to
 |/usr/bin/procmail so only having a .procmailrc fur users that want it?

The first paragraph of the procmail manpage says:

Procmail should be invoked automatically over the .forward file
mechanism as soon as mail arrives.  Alternatively, when installed by a
system administrator.

It looks like you can set it up to automatically run for every mail
that arrives (regardless of what people have or have not done to their
.forward files) and just not DO anything unless they have a
.procmailrc.  Is this what you were asking?

-Michael

-- 
  Michael Stenner   Office Phone: 919-660-2513
  Duke University, Dept. of Physics   [EMAIL PROTECTED]
  Box 90305, Durham N.C. 27708-0305


Re: procmail question (was: looking for a mail client)

1999-08-10 Thread Lex Chive
On Mon, Aug 09, 1999 at 10:31:51PM +0200, Peter Palfrader aka Weasel wrote:
 
 Is it possible to have it run automatically when new mail arrives
 without the need for every user to have his .forward set to
 |/usr/bin/procmail so only having a .procmailrc fur users that want it?
 
Of course, you just need to set up your mta to use procmail. The exact way to
do it vary of course. That should be given in either the mta's doc or procmail
doc.

-Lex


pgpVVWF8LX0QK.pgp
Description: PGP signature


Re: procmail question (was: looking for a mail client)

1999-08-10 Thread Mark Brown
On Mon, Aug 09, 1999 at 10:31:51PM +0200, Peter Palfrader aka Weasel wrote:
 I thank everybody for their great help.

 Is it possible to have it run automatically when new mail arrives
 without the need for every user to have his .forward set to
 |/usr/bin/procmail so only having a .procmailrc fur users that want it?

Most MTAs support the use of an external delivery agent - a program used
to perform the actual addition of the mail to the recipient mailbox.  If
you make procmail this program then the right thing should happen.

Unfortunately I don't have any examples handy...

-- 
Mark Brown  mailto:[EMAIL PROTECTED]   (Trying to avoid grumpiness)
http://www.tardis.ed.ac.uk/~broonie/
EUFShttp://www.eusa.ed.ac.uk/societies/filmsoc/


pgpP11xOgxQEE.pgp
Description: PGP signature


Re: procmail question (was: looking for a mail client)

1999-08-10 Thread Phillip Deackes
Sorry, I can't quote since I've deleted the original posting.

All I used to do when I used Procmail was add a line to my .fetchmailrc
so it looked like this:

poll pop.ukgateway.net
protocol pop3
username gsmh
password 
mda /usr/bin/procmail -d gsmh

The last line specifies the Mail Delivery Agent. If you simply want to
hand all incoming mail to, say Exim, you can leave this line off and
exim will automatically receive the mail.

Your .procmailrc will contain rules to sort messages into folders.

As an alternative to 'username whatever' you can have 'username whatever
is someothername on this system' which makes things a lot easier if your
username on your Linux box is not the same as your email name.


--
Phillip Deackes
Debian Linux (Potato) 


procmail question (was: looking for a mail client)

1999-08-09 Thread Peter Palfrader aka Weasel
I thank everybody for their great help.

I think I will go for mutt since the PGP stuff works really fine now.
However, I have some questions regarding procmail.

Is it possible to have it run automatically when new mail arrives
without the need for every user to have his .forward set to
|/usr/bin/procmail so only having a .procmailrc fur users that want it?

Thank you.

PS: scsi idle spin down anyone?

-- 
Weaselhttp://www.cosy.sbg.ac.at/~ppalfrad/
PGP encrypted messages prefered.   See my site for my PGP key.
--
   The software said Windows95 or better, so I got Linux...


Re: procmail question

1998-04-16 Thread Remco Blaakmeer
On Tue, 14 Apr 1998, Art Lemasters wrote:

  Hi all there!
  I just set-up my .procmailrc (Many thanks to Oliver Elphick). But I have 
  big mailbox (/var/spool/mail/) I want to process w. procmail. Can anybody 
  tell me how?
 
  Try the procmail and procmailex (examples) man or info (better yet)
 pages.  They are some of the better-written documents I've seen!  Oh...
 and read the /usr/doc/procmail directory (.gz files with the zless
 command) first!  The examples in the procmailex page should be most
 helpful, then more specific questions will be easier to get answers
 for.  You'll do fine! 

A tip for people who are still using zless:

If you have already upgraded your system to hamm, place this line in your
.bash_profile:

eval $(/usr/bin/lesspipe)

/usr/bin/lesspipe is a filter for less that decompresses .gz files and
gives you useful information about a lot of other file formats (among
which .tar and .deb). Look at the script itself for details.

If you have Debian 1.3.X or earlier I can send you this script. It is not
large and quite useful. I don't know which version of less is required,
but I know it works with the less package in Debian 1.3.

Remco


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


procmail question

1998-04-15 Thread Vaclav Hula
Hi all there!
I just set-up my .procmailrc (Many thanks to Oliver Elphick). But I have big 
mailbox (/var/spool/mail/) I want to process w. procmail. Can anybody tell me 
how?

Thanks.
Ax
-- 
Vaclav Hula
[EMAIL PROTECTED]
http://atrey.karlin.mff.cuni.cz/~ax


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


Re: procmail question

1998-04-15 Thread Art Lemasters
 Hi all there!
 I just set-up my .procmailrc (Many thanks to Oliver Elphick). But I have big 
 mailbox (/var/spool/mail/) I want to process w. procmail. Can anybody tell me 
 how?

 Try the procmail and procmailex (examples) man or info (better yet)
pages.  They are some of the better-written documents I've seen!  Oh...
and read the /usr/doc/procmail directory (.gz files with the zless
command) first!  The examples in the procmailex page should be most
helpful, then more specific questions will be easier to get answers
for.  You'll do fine! 

Art

 
 Thanks.
 Ax
 -- 
 Vaclav Hula
 [EMAIL PROTECTED]
 http://atrey.karlin.mff.cuni.cz/~ax
 
 
 --
 To UNSUBSCRIBE, email to [EMAIL PROTECTED]
 with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
 
 


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


Re: procmail question

1998-04-15 Thread Carl Mummert
Art Lemasters wrote:
  Try the procmail and procmailex (examples) man or info (better yet)
 pages.  They are some of the better-written documents I've seen!  Oh...
 and read the /usr/doc/procmail directory (.gz files with the zless
 command) first!  The examples in the procmailex page should be most
 helpful, then more specific questions will be easier to get answers
 for.  You'll do fine! 

I think his question was I have mail I already received, how do I get it
filtered?

The answer: formail, a program that comes with procmail.  Basicly, you
will move oyur /var/spool/mail/user file to a temp file, rm the
/var/spool/mial/user, and then cat the temp file throuch formail, which
will remail it all.

Look at formail(1) for the command line options.

Carl

-- 
[EMAIL PROTECTED]
  
The sun's not eternal
   That's why there's the blues...
 -- Ginsburg


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


Re: procmail question

1998-04-15 Thread Santiago Vila Doncel
-BEGIN PGP SIGNED MESSAGE-

On Wed, 15 Apr 1998, Vaclav Hula wrote:

 I just set-up my .procmailrc (Many thanks to Oliver Elphick). But I
 have big mailbox (/var/spool/mail/) I want to process w. procmail. Can
 anybody tell me how?

What you need is probably:

cat mbox | formail -s procmail

[ I think I will add this to the QuickStart file in hamm ].

Thanks.

-BEGIN PGP SIGNATURE-
Version: 2.6.3ia
Charset: latin1

iQCVAgUBNTSZQCqK7IlOjMLFAQEZ9AQAjjYFIOKLOxRaxQ3b5SyluDNi+8SYQRRZ
TGBhUaxVyv+eNqLIVE+Y5aSOk82G891YJaCBUadQQjspqmes7wtn7X5UtEuBHRik
UrJSbvgSzoxZaJvvhUvlg3EZydnz9lnqIpT1PVpsMuoRjVxfEK773imvL/Nc/WQb
ez1pj2fZEjc=
=Xe2E
-END PGP SIGNATURE-


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]