need help with inherited script that emails files

Discussion in 'Perl' started by :crp:, Jan 25, 2005.

  1. :crp:

    :crp: Guest

    This perl script goes through a list of files in IFILE and for each file, it sends it on to sendmail. Attachments need special handling and are signified in the email-file by having a line start with 3@ folowed by the name of the file that should be attached.
    There are 3 problems:
    1) There has to be a way of doing this without all those system calls, no?
    2) this Line does not always get processed:
    "cp $base /usr/mailAttached/`date +%d`/"
    3) sometimes the text string of
    ; type=Binary
    gets added after the basename in the output of OFILE. The result is
    Content-type: Application/octet-stream; name=Cycle108.zip; type=Binary
    instead of
    Content-type: Application/octet-stream; name=Cycle108.zip

    this hurts as several email clients seem to have problems parsing the attached filename correctly.

    Thanks.
     
    :crp:, Jan 25, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?Sm9l?=

    Need help with accessing control in inherited form

    =?Utf-8?B?Sm9l?=, Feb 8, 2006, in forum: ASP .Net
    Replies:
    3
    Views:
    587
    Karl Seguin [MVP]
    Feb 8, 2006
  2. Replies:
    1
    Views:
    477
    Dan M
    Feb 6, 2006
  3. 7stud --
    Replies:
    11
    Views:
    466
    7stud --
    Nov 9, 2007
  4. great places to stay.

    Need help with Undeliverable Emails

    great places to stay., Mar 4, 2004, in forum: Perl Misc
    Replies:
    7
    Views:
    163
    James Willmore
    Mar 7, 2004
  5. Replies:
    3
    Views:
    186
    Ted Zlatanov
    Oct 22, 2007
Loading...

Share This Page