SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict Chillijam's Avatar
    Join Date
    Nov 2003
    Location
    England
    Posts
    293
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Grabbing attachments from emails.

    Hi,

    I am not sure this is the right forum, but I'll go ahead and ask anyway...

    I have a RedHat server running a site at the moment. The content of the site is submitted by email, in the form of text attachments. I currently have it all set up so that fetchmail and .forward redirect mails to a script in /etc/smrsh that parses the mail. The only problem is that when I wrote the system, I was in a rush, so I kludged the parsing to find attachments.

    Is there a way from the command line to save an attachment from an email to a specified location>? If there is, it will save me about 9 hours per week in tracking down problems with different mail clients being used to send the mails.

    Thanks in advance
    CJ
    Your mind is like a parachute. It works best when open.
    (HH The Dalai Lama)

  2. #2
    SitePoint Wizard
    Join Date
    May 2003
    Location
    Berlin, Germany
    Posts
    1,829
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    As you want this to do from the command line you shall ask in another forum... Apache perhaps.

  3. #3
    SitePoint Addict Chillijam's Avatar
    Join Date
    Nov 2003
    Location
    England
    Posts
    293
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OK, but I would have thought it was even less appropriate to an Apache Forum. I will be using PHP to handle the resulting files that (hopefully) will be created.

    I guess a few hours Googling might be my best bet after all.

    thanks
    CJ
    Your mind is like a parachute. It works best when open.
    (HH The Dalai Lama)

  4. #4
    SitePoint Addict Mower's Avatar
    Join Date
    Feb 2004
    Location
    Aussie Aussie Aussie
    Posts
    307
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    just get them to upload the text doc thorugh a ftp server. then use the command line function `` `` in php to move it around the server hd's. There possess security risks by allowing php to access areas of the HD out side of the web server directory, Or painfuly fix the code in the first place


    "Will I ever find my way to GURU?"


Bookmarks

Posting Permissions

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