Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
I have had a fairly simple script to pull lotus notes emails and dump the subject lines and bodies into a text file. If you want them in separate files it's not all that hard, but if you want to name a bunch of files with the subject line as the title keep in mind you'll need to get rid of '\/?:*"|<> Maybe if you posted our code here it would help?
use Win32::OLE; my $server; my $database; my $folder; my $file = "temp_file.csv"; my $ini = "get_emails.ini"; if (-e $ini) { open (INI,$ini) || die "Not able to open $ini: $!\n"; chomp ($server ='' ); chomp ($database = ''); chomp ($folder = ''); } else { $server = 'servername'; $database = 'mail\user.nsf'; $folder = 'TargetFolder'; } #connect to the Notes database my $Notes = Win32::OLE->new('Notes.NotesSession') || warn "Cannot star +t Lotus Notes Session object: $!\n"; my $Database = $Notes->GetDatabase($server, $database); #Fetch contents of the folder my $Response = $Database->GetView($folder); my $Count = $Response->TopLevelEntryCount; my $Index = $Count; open (OUT, ">$file"); #loop through all emails for (1..$Count) { my $Document = $Response->GetNthDocument($Index--); my $subject = $Document->GetFirstItem('Subject')->{Text}; my $body = $Document->GetFirstItem('Body')->{Text}; print OUT "Subject: $subject\n", "Body: $body\n"; } ##`start excel.exe $file`;

s''limp';@p=split '!','n!h!p!';s,m,s,;$s=y;$c=slice @p1;so brutally;d;$n=reverse;$c=$s**$#p;print(''.$c^chop($n))while($c/=$#p)>=1;

In reply to Re: Store Lotus Notes Email by SamCG
in thread Store Lotus Notes Email by gawilcox

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2022-07-07 17:23 GMT
Find Nodes?
    Voting Booth?

    No recent polls found