<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
All,<br><br>I am new to pymilter and despite writing many python scripts, I cannot, for the life of me, figure out how to obtain email attachments.<br><br>I've added a "data" function in the sample.py script since 'data' is one of the sendmail milter callbacks and in test emails I am able to get into that function.  But as far as extracting attachments for parsing with other tools of mine, I'm at a loss.  I've tried examples from other sample scripts such as check_attachments and message_from_file from the mime package but I still can't figure it out.  I was thinking I should be able to get the attachment(s) in relatively few lines of code which I could then hand off to my other tools, but am I mistaken?  Can anyone provide any samples to help me out?<br><br>Thanks in advance for any assistance anyone can provide.<br><br>Jim<br>                                      </div></body>
</html>