Find the answer to your Linux question:
Results 1 to 2 of 2
how to separate an attachment from an email message ....
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2009
    Posts
    7

    urgent : help me to solve the problem


    how to separate an attachment from an email message .

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,509
    A small C/C++ application could do it pretty easily. Probably easier than trying to script it, though a Perl or Python script wouldn't be too bad either - probably easier than C. Basically:

    1. Open mail file
    2. for each unread message
    2a. for each attachment found, read to end of attachment and pass to decoder if necessary, placing (decoded) attachment data in separate file as per attachment name.
    3. Close mail file.
    4. Exit
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •