procmail
[Top] [All Lists]

Re: man pages missing something

2002-11-01 06:28:40
Hello 

Can u please tell me as how can split an attachment from the mail.
If yes pls mail me back as soon as possible. already i wrote  a 
perl program that is parsing the mail but if any mail comes with an
attachment is is in the MIME format and it comes with the mail body
so kindly help me  to solve this problem. I know this is really a 
silly matter that u all can solve it within a couple of  hours

Thanks

rabiya


Thu, 31 Oct 2002, Tom Allison wrote:

Ruud H.G. van Tol wrote:
Hatto von Hatzfeld skribis:


by "* ^From +\/[^ ]+ " (the
space after the last + is important) one can easily extract the From_
address and put it into MATCH.


1. Why would you want the MATCH to end in a space? 
   (AFAIK, \/ is greedy-to-the-right)

2. Using ^^From in stead of ^From is more accurate here.

3. E-mail-addresses are allowed to have embedded whitespace.


 From rfc822:  3.1.4. STRUCTURED FIELD BODIES
  Note: For purposes of display, and when passing such structured 
information to other systems, such as mail protocol services, 
there must be NO linear-white-space between <word>s that are 
separated by period (".") or at-sign ("@") and exactly one SPACE 
between all other <word>s. Also, headers should be in a folded form.
--------------
I think the discrepency here is that an email address, in my 
parallel universe, matches with the above statement.

However many email addresses, using the reference of "^From .*" 
results in white space being used to seperate the first and last 
names of the person sending the email.

The difference between "From " and "From: " makes a nasty 
difference for email coming from mailing lists and email coming 
from real people.  If I get this right so far, for most mailing 
lists, "From " matches the mailing list and "From: " matches the 
person (Ruud H.G. van Tol)

-- 
Facts do not cease to exist because they are ignored.
              -- Aldous Huxley


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail








Regards 
Rabiya
www.ooty.TeNeT.res.in



..............................................................................
*The nice thing about egotists is that they don't talk about other people.   *
*............................................................................*
  
                        


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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