 




<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Lotus Notes 6 &#8211; Copy Rich Text</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/copy-rich-text/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/copy-rich-text/</link>
	<description></description>
	<lastBuildDate>Sat, 25 May 2013 13:28:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: mrg</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/copy-rich-text/#comment-66943</link>
		<dc:creator>mrg</dc:creator>
		<pubDate>Fri, 14 Aug 2009 15:10:29 +0000</pubDate>
		<guid isPermaLink="false">#comment-66943</guid>
		<description><![CDATA[After doing a bit more reading in the help..  Does anyone know if I would need to write some lotusscript to take the existing &#039;text&#039; field and either set it as read-only? Or should I copy it into another variable and then back again?

This is a modified version of what is in the help, (since I don&#039;t completely understand it) but any other suggestions would be appreciated.

Sub Initialize
  Dim s As New NotesSession
  Dim db As NotesDatabase
  Dim dc As NotesDocumentCollection
  Dim doc As NotesDocument
  Dim mime As NotesMIMEEntity
  Dim m As String
  Set db = s.CurrentDatabase
  s.ConvertMIME = False &#039; Do not convert MIME to rich text
  Set dc = db.UnprocessedDocuments
  Set doc = dc.GetFirstDocument
  While Not(doc Is Nothing)
    Set mime = doc.GetMIMEEntity
    If Not(mime Is Nothing) Then
      m = &quot;Content type:&quot; &amp; Chr(9) &amp; _
      mime.ContentType &amp; Chr(13) &amp; _
      &quot;Content subtype:&quot; &amp; Chr(9) &amp; _
      mime.ContentSubType &amp; Chr(13) &amp; _
      &quot;Character set:&quot; &amp; Chr(9) &amp; _
      mime.Charset &amp; Chr(13) &amp; _
      &quot;Encoding:&quot; &amp; Chr(9) &amp; Chr(9) &amp; _
      mime.Encoding
      Messagebox mime.ContentAsText,, &quot;Content as text&quot;
    Else
      Messagebox &quot;Not MIME&quot;,, doc.GetItemValue(&quot;Subject&quot;)(0)
    End If
    Set doc = dc.GetNextDocument(doc)
  Wend
  s.ConvertMIME = True &#039; Restore conversion
End Sub]]></description>
		<content:encoded><![CDATA[<p>After doing a bit more reading in the help..  Does anyone know if I would need to write some lotusscript to take the existing &#8216;text&#8217; field and either set it as read-only? Or should I copy it into another variable and then back again?</p>
<p>This is a modified version of what is in the help, (since I don&#8217;t completely understand it) but any other suggestions would be appreciated.</p>
<p>Sub Initialize<br />
  Dim s As New NotesSession<br />
  Dim db As NotesDatabase<br />
  Dim dc As NotesDocumentCollection<br />
  Dim doc As NotesDocument<br />
  Dim mime As NotesMIMEEntity<br />
  Dim m As String<br />
  Set db = s.CurrentDatabase<br />
  s.ConvertMIME = False &#8216; Do not convert MIME to rich text<br />
  Set dc = db.UnprocessedDocuments<br />
  Set doc = dc.GetFirstDocument<br />
  While Not(doc Is Nothing)<br />
    Set mime = doc.GetMIMEEntity<br />
    If Not(mime Is Nothing) Then<br />
      m = &#8220;Content type:&#8221; &amp; Chr(9) &amp; _<br />
      mime.ContentType &amp; Chr(13) &amp; _<br />
      &#8220;Content subtype:&#8221; &amp; Chr(9) &amp; _<br />
      mime.ContentSubType &amp; Chr(13) &amp; _<br />
      &#8220;Character set:&#8221; &amp; Chr(9) &amp; _<br />
      mime.Charset &amp; Chr(13) &amp; _<br />
      &#8220;Encoding:&#8221; &amp; Chr(9) &amp; Chr(9) &amp; _<br />
      mime.Encoding<br />
      Messagebox mime.ContentAsText,, &#8220;Content as text&#8221;<br />
    Else<br />
      Messagebox &#8220;Not MIME&#8221;,, doc.GetItemValue(&#8220;Subject&#8221;)(0)<br />
    End If<br />
    Set doc = dc.GetNextDocument(doc)<br />
  Wend<br />
  s.ConvertMIME = True &#8216; Restore conversion<br />
End Sub</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 6/9 queries in 0.013 seconds using memcached
Object Caching 266/269 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-25 14:18:45 -->