Redemption, SafeMailItem and ActivePerl

Ask a Question related to PERL Miscellaneous, Design and Development.

  1. #1

    Default Redemption, SafeMailItem and ActivePerl

    Trying to import an RFC822 message into a PST message store results in
    the error "Can't modify non-lvalue subroutine call" when I set the
    Redemption item equal to the new message item. My code (the line
    where the error occurs is tagged):

    ## redemption testing
    Win32::OLE::CreateObject("Redemption.SafeMailItem" ,
    $RedemptionSession);
    $MAPISession->Logon("tester1",undef,"False",undef);
    $cnt = $MAPISession->Infostores->Count;
    STORES: for ($i = 1; $i<$cnt + 1; $i++) {
    $pststore = $MAPISession->Infostores($i);
    $namer = $pststore->Name;
    print "$namer\n";
    if ($namer eq "Personal Folders") { last STORES; }
    }
    $pstinbox = $pststore->RootFolder->Folders->Item("DEFAULT");
    $newmsg = $pstinbox->messages->Add;
    $newmsg->update;
    ERROR: $RedemptionSession->Item = $newmsg;
    $RedemptionSession->Import("c:\pstconverter\tester.eml",olRFC822);
    $RedemptionSession->save;

    As far as I can tell, the $RedemptionSession object is fine...any
    suggestions appreciated.

    Regards, Brian
    Brian Rankin Guest

  2. Similar Questions and Discussions

    1. Term::ReadLine and ActivePerl
      In Cygwin the readline() call in the following script #!/usr/bin/perl use Term::ReadLine; use strict; use warnings; my $term = new...
    2. PPM through Proxy (Activeperl / Activestate)
      hi, i have just installed the latest Activeperl from activestate.com and need to add some modules through PPM. I am behind a firewall and forced to...
    3. ActivePerl & Apache
      Hi all I ahve installed Active perl & Apache2 on win2k. Everything works fine. My problem how can I ask Apache to execute .cgi with perl.exe....
    4. ActiveState ActivePerl 5.8 - system call
      Hi, We have a perl/cgi script (ActivePerl 5.8) which calls a executable (C code) using the system command. Ex: ...... @args =...
    5. Problems with PPM and ActivePerl
      I recently installed the ActivePerl 5.8.0.806 on my Win2k box. I installed it in the default location "C:\Perl" and have not moved it or done...
  3. #2

    Default Re: Redemption, SafeMailItem and ActivePerl

    [email]brankin@enbonline.net[/email] (Brian Rankin) wrote:

    : Trying to import an RFC822 message into a PST message store results in
    : the error "Can't modify non-lvalue subroutine call" when I set the
    : Redemption item equal to the new message item.

    : ERROR: $RedemptionSession->Item = $newmsg;

    I'm not familiar with that library, but the error message and a gloss of
    the docs suggest that Item is a property of the object, not a method.

    $RedemptionSession->{Item} = $newmsg;

    Jay Tilton Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139