Help with Mail::Audit module

From: Ichthus (Ichthus.19o6dn_at_mail.codecomments.com)
Date: 07/20/04

  • Next message: Jürgen Exner: "Re: How to handle input and output of a program executed by System function in perl"
    Date: Tue, 20 Jul 2004 00:43:22 GMT
    
    

    I am trying to use the 'Mail::Audit'
    (http://search.cpan.org/~simon/Mail-Audit-2.1/Audit.pm) module for a
    small project i am working on, mainly using the resend() function. I
    have that working, but I would like to add a footer to the email before
    resending it. Is this possible using the reference that body() returns?
    The documentation states the following:
    > BODY
    >
    > Returns a reference to an array of lines in the body of the email.
    >
    I am a beginner perl programmer, but have extensive experience with PHP
    and C++. This description indicates to me that it returns an actual
    reference (pointer) to the array, so I should be able to modify it. I
    tried every possile combination of array references that I could think
    of, but I could not get it to edit the body of the email that gets
    resent.

    If you could let me know the two lines of code that I need to get this
    reference and then just add a line to the end of the email body, I can
    take it from there.

    Thanks SO much in advance,
    Kevin

    --
    Ichthus
    ------------------------------------------------------------------------
    Posted via http://www.codecomments.com
    ------------------------------------------------------------------------
     
    

  • Next message: Jürgen Exner: "Re: How to handle input and output of a program executed by System function in perl"

    Relevant Pages

    • Re: How to pass an Array
      ... > array's reference by Value: Unable to modify the array directly only ... If you give an array reference to a method, ... other, or even discard both. ...
      (comp.lang.java.help)
    • Re: anonymous class questions - why final?
      ... You can't modify the value of the variable "a", but that value is nothing more than a reference to the array. ... All that "final" means in that context is that the variable "a" will always refer to the array that it initially refers to. ...
      (comp.lang.java.programmer)
    • Re: Help with Mail::Audit module
      ... > small project i am working on, mainly using the resend() function. ... >> Returns a reference to an array of lines in the body of the email. ... > reference to the array, so I should be able to modify it. ...
      (comp.lang.perl.modules)
    • Re: [PATCH 00/16] (Resend) Use get_personality()
      ... [PATCH 00/16] (Resend) Use get_personality ... reference. ... Or you want a more generic macro like this? ...
      (Linux-Kernel)
    • Re: is a byte array Byte[] pass by reference
      ... use the ref keyword to be able to mod the contents of the orig array ... If you use a "ref" keyword, then you would be passing "a reference to the reference", which would allow you to point the received reference somewhere else, besides allowing you to merely modify the contents. ...
      (microsoft.public.dotnet.languages.csharp)