Retention Comment Stays After Removing Retention Hold

How to you clear the retention comment out after removing a retention hold?
Removing the hold does not seem to automatically remove the comment.
MFA has been run on the account after changing retention hold to $false.

You could try something like this:
Set-Mailbox -Identity username -RetentionHoldEnabled $false -RetentionComment $null
You could also try RetentionComment $false, or just do -RetentionComment ""

Similar Messages

  • Photoshop CC on Win 7! Drop shadow on shape stays after removed

    I started to notice this a few days ago. I created a rectangular shape and applied the drop shadow layer style. I then removed that style first by turning it off and then by dragging it to the trash icon.
    Now I have a shape with a drop shadow but not layer styles. The only solution I have found is to delete the shape and create a new one without the drop shadow applied.
    Seems like a major bug to me.

    Do you have photoshop cc 14.1.2?
    (Help>System Info)
    Resetting the photoshop preferences might clear things up if your updated to version 14.1.2
    Hold down the Shift+Alt+Ctrl keys just after starting the launch of photoshop cc and keep holding the keys down until you get
    a dialog asking if you want to Delete the photoshop settings file.
    Press Yes because you do.

  • External display stays after removing adapter.

    Hi!
    After having my MacBook connected to my TV earlier this week (via the Mini-DVI->TV-out adapter) the computer won't stop recognizing the TV display.
    When I unplug the adapter the screen on my MacBook flickers as if it is searching for displays and then returns to the same state that it had before unplugging the device (except there is no external display plugged in anymore). I have tried almost everything I can come up with, restarting the computer both with and without Mini-DVI-adapters, resetting SMC and P-RAM, connecting various external displays and disconnecting them again and so on. The only thing that remains (that I can come to think of) is to reinstall OS X, which is kind of the last resort for me since I have a lot of things to backup.
    I think it might have something to do with the 10.5.4-update since it occured the first time using an external display after updating. Are there any ways to downgrade my system or do you have any better idea of what my problem is? Please help me!
    I have a MacBook Core Duo 1.83 GHz (the first version) with Mac OS X 10.5.4 installed.

    Yes, that's exactly my problem. It's kind of disturbing when you use spaces and they show you a much larger desktop than there really is, especially since it has been working for more than 1,5 years.
    I just hoped someone knew some kind of fix that would solve my problem, anyone?

  • How to make text STAY up after removing mouse from button?

    Hello!
    I honestly hope that this thread title makes sense. Allow me to explain my predicament.
    Someone has created a map where there are little colored buttons over building locations. The buttons were made so that when you hover your cursor over them, they will bring up a little chat bubble (like the ones you see in comics) with the appropriate street address text. What I cannot figure out is how to, after removing the cursor from over a button, make the text bubble stay put so that those who see the map can highlight then copy and paste the street address from it.
    Is there any advice?

    It kinda depends on what version of actionscript you're using, but one that may work for AS2 and AS3 is to use setTimeout to call a function that does what your rollout code currently does... meaning in your rollout function you use: setTimeout(callFunction, x-seconds)... where callFunction is a function that contains what your rollout function did originally.

  • Kismac stays in location services after removal

    I tried kisMAC under Lion, but it is not ready for 10.7(1) yet. After removal of the app (using AppCleaner) it sticks in the System Preferences - Security & Privicy - Privacy - Location Services app list. Is there anybody who knows how to remove it from this list? Thanks very much!
    Rj.

    Just found a solution here :
    http://superuser.com/questions/429344/remove-application-from-location-services- in-security-privacy-on-mac-os-x-10-7
    Basically :
    1) Open Terminal
    2) Enter super user : sudo su
    3) cd /var/folders/zz/
    4) ls -l and find folder owned by _locationd
    5) cd <this_folder>
    6) cd C
    7) nano clients.plist
    8) Remove the entries you want to remove from location services list. KisMac should be in this list. Remove both the <key>...</key> and <dict>..</dict> parts each time
    9) killall locationd
    Open System Preferences, should now be gone

  • Can't  get  to the Internet  after removing AOL items.

    After removing as many AOL items as I could in order to install cable service with another ISP, I get the following Error message:
    The attempt to load "Accessing URL: http://www.google.com/" failed.
    The Error occurs every time I try to go to the Internet. I get a blank web page to avoid the home page when I hold the Esc key down while Internet Explorer loads. Then, same error occurs when I manually key in the addresses for Google, CNN and the like. I also increased the IE memory size. Did I remove critical software? My new cable service rep said they could not load their software until I removed AOL. How can I ensure that all AOL software has been removed? They have not installed the new ISP software yet. How can I test access to the Internet without an ISP?
    iBook   Mac OS 9.1.x   IE v 5.1.7

    Welcome To Discussions pelancho!
    If AOL is your current ISP, and you have no other means of connecting to the Internet, and you have removed some of the AOL files, then there is no browser that will allow you access.
    "My new cable service rep said they could not load their software until I removed AOL."
    This doesn't make sense to me. I have High-Speed Cable access through my local phone company, and still have the AOL application installed.
    I can use AOL along with the Cable access, and I can also switch back to Dial-Up access if I choose.
    With the Cable access, I don't have to even load the AOL application, and I can use any other browser, like Safari or FireFox to access the Internet.
    Are you sure you understood them correctly? What is the ISP?
    ali b

  • Premiere 6.5-how to keep the last image stay after movie's over?

    Hi.
    I am using Adobe Premiere 6.5.
    I like to keep the last image to stay after movie/ animation finished to play, but they disappear and shows the "x" mark.
    How can I leave the last image stays after they are done playing? Please help with this?
    thanks.

    Welcome to the forum. What you are referring to is a Freeze Frame.
    Though I like John T's method (one that I use), you might want to look into Frame Hold, if it is in Pr 6.5. It works in a similar fashion, but I like the still for my Freeze Frames. Also, remember that you can adjust the Duration of the still, by click-dragging on the Tail, until it is as long as you need.
    Good luck,
    Hunt

  • Can't find printer after removing it.

    Hello,
    I happen to have an HP LaserJet M1132 MFP, which was working pretty well until recently it started sending that "/usr/lib/cups/backend/hp failed" error described in the wiki. I did have dbus running, I tried running avahi-daemon, but no use. So after googling up the problem, I found out that people had the issue solved after removing and installing the printer again.
    Well, I removed the printer via CUPS web interface, and tried to install it again via hp-setup, but this time the printer is not recognized! dbus is running fine, so does cups. lsusb does seem to recognize the printer:
    Bus 001 Device 006: ID 03f0:042a Hewlett-Packard
    Trying to manually feed the device id to hp-setup completely freezes it (and even pkilling it won't remove the window after that).
    dmesg find it too:
    [ 554.981309] usb 1-1.1: new high speed USB device number 6 using ehci_hcd
    [ 555.066090] scsi7 : usb-storage 1-1.1:1.0
    I had it installed before with no problems.
    Anyone can help me to get my printer installed and working again?

    It sounds like you have not installed, but only downloaded it. Have you checked your downloads folder for the installer? 

  • Can't delete a file displayed in ListView ("File in use") even after removing it from window.

    I have a ListView displaying a collection of icons. The user can then select different icons (checkboxes) to do things like Copy or Delete.
    Problem is, when I try to delete the actual file from the disk, I get an error telling me the file is "in use" ("vshost.exe", the VS runtime during testing).
    I thought maybe it was because it still appeared in the window and was still in the ImageList, but even after removing it from both locations, I still get the error. My code:
    Dim intCnt As Integer = 0
    Do
    ImageList2.Images.RemoveAt(intIconsChecked(intCnt)) ' Remove from collection.
    lsvCollection.Items.RemoveAt(intIconsChecked(intCnt)) ' Remove from ListView window.
    FileIO.FileSystem.DeleteFile(strIconPath & "\Icon" & Format(intCnt + 1, "00") & ".rsc") ' "+1" b/c Icons start with "01".
    FileIO.FileSystem.DeleteFile(strIconPath & "\Icon" & Format(intCnt + 1, "00") & ".png") ' "In use" Error here.
    ".rsc" deletes just fine, so I know I'm deleting the correct file. Why does VS still think the file is still "in use"?
    Thx

    Mugsy,
    Consider this as food for thought, even if you don't use it.
    If you set it up right then you can control how it works. A reference is a reference and any left behind will cause you grief down the road when you try to delete things.
    As an example, a simple class follows. It does *not* implement IDispose, although it does have a private shared Dispose method in it:
    Public Class MyImages
    Private _bmp As Bitmap
    Private _name As String
    Private _sourceFilePath As String
    Private Sub New(ByVal bmp As Bitmap, _
    ByVal name As String, _
    ByVal filePath As String)
    _bmp = bmp
    _sourceFilePath = filePath.Trim
    _name = name.Trim
    End Sub
    Public ReadOnly Property Bmp As Bitmap
    Get
    Return _bmp
    End Get
    End Property
    Public ReadOnly Property Name As String
    Get
    Return _name
    End Get
    End Property
    Public ReadOnly Property SourceFilePath As String
    Get
    Return _sourceFilePath
    End Get
    End Property
    Public Shared Sub AddNew(ByRef miList As List(Of MyImages), _
    ByVal imageFilePath As String)
    Try
    If miList Is Nothing Then
    Throw New ArgumentNullException("The collection of MyImages cannot be null.")
    ElseIf String.IsNullOrEmpty(imageFilePath) OrElse imageFilePath.Trim = "" Then
    Throw New ArgumentException("The file path of the image cannot be null or empty.")
    ElseIf Not My.Computer.FileSystem.FileExists(imageFilePath) Then
    Throw New IO.FileNotFoundException("The file path of the image could not be located.")
    Else
    ' Should do validation here that the file
    ' is actually an image but I'll not do this
    ' here...
    Dim thisBMP As Bitmap = New Bitmap(imageFilePath)
    miList.Add(New MyImages(thisBMP, GetFileNameWithoutExtension(imageFilePath), imageFilePath))
    End If
    Catch ex As Exception
    Throw
    End Try
    End Sub
    Public Shared Sub AddNew(ByRef miList As List(Of MyImages), _
    ByVal imageFilePath As String, _
    ByVal imageName As String)
    Try
    If miList Is Nothing Then
    Throw New ArgumentNullException("The collection of MyImages cannot be null.")
    ElseIf String.IsNullOrEmpty(imageFilePath) OrElse imageFilePath.Trim = "" Then
    Throw New ArgumentException("The file path of the image cannot be null or empty.")
    ElseIf Not My.Computer.FileSystem.FileExists(imageFilePath) Then
    Throw New IO.FileNotFoundException("The file path of the image could not be located.")
    ElseIf String.IsNullOrEmpty(imageName) OrElse imageName.Trim = "" Then
    Throw New ArgumentException("The name of this image cannot be null or empty.")
    Else
    ' Should do validation here that the file
    ' is actually an image but I'll not do this
    ' here...
    Dim thisBMP As Bitmap = New Bitmap(imageFilePath)
    miList.Add(New MyImages(thisBMP, imageName, imageFilePath))
    End If
    Catch ex As Exception
    Throw
    End Try
    End Sub
    Public Shared Sub Remove(ByRef miList As List(Of MyImages), _
    ByVal imageFilePath As String, _
    Optional ByVal removeFilePathAlso As Boolean = False)
    Try
    If miList Is Nothing Then
    Throw New ArgumentNullException("The collection of MyImages cannot be null.")
    ElseIf String.IsNullOrEmpty(imageFilePath) OrElse imageFilePath.Trim = "" Then
    Throw New ArgumentException("The file path of the image cannot be null or empty.")
    ElseIf Not My.Computer.FileSystem.FileExists(imageFilePath) Then
    Throw New IO.FileNotFoundException("The file path of the image could not be located.")
    Else
    Dim findInstance As System.Collections.Generic.IEnumerable(Of MyImages) = _
    From mi As MyImages In miList _
    Where mi.SourceFilePath = imageFilePath
    If findInstance.Count <> 1 Then
    Throw New ArgumentException("The instance of MyImages specified by the" & vbCrLf & _
    "image file path is not in the collection.")
    Else
    Dispose(findInstance.First)
    If removeFilePathAlso Then
    My.Computer.FileSystem.DeleteFile(findInstance.First.SourceFilePath)
    End If
    miList.Remove(findInstance.First)
    End If
    End If
    Catch ex As Exception
    Throw
    End Try
    End Sub
    Private Shared Sub Dispose(ByVal instance As MyImages)
    If instance IsNot Nothing AndAlso instance._bmp IsNot Nothing Then
    instance._bmp.Dispose()
    instance._bmp = Nothing
    End If
    End Sub
    End Class
    When you look through that, look specifically at the "Remove" method and in particular, look at the order in which things are done. That's the critical part in this.
    I tested it with a simple form:
    Two buttons, a checkbox, and a picturebox. I also copied a small folder full of image files to my desktop since I'll be deleting a file from it. Following is the code for Form1:
    Option Strict On
    Option Explicit On
    Option Infer Off
    Imports System.IO.Path
    Public Class Form1
    Private miList As New List(Of MyImages)
    Private Sub Form1_Load(ByVal sender As System.Object, _
    ByVal e As System.EventArgs) _
    Handles MyBase.Load
    Dim desktop As String = _
    My.Computer.FileSystem.SpecialDirectories.Desktop
    Dim imgFolder As String = _
    Combine(desktop, "Images")
    PictureBox1.BorderStyle = BorderStyle.FixedSingle
    For Each imgFilePath As String In My.Computer.FileSystem.GetFiles(imgFolder)
    MyImages.AddNew(miList, imgFilePath)
    Next
    btn_RemoveFirstImage.Enabled = False
    CheckBox_RemoveSourcePath.Enabled = False
    End Sub
    Private Sub btn_ShowFirstImage_Click(sender As System.Object, _
    e As System.EventArgs) _
    Handles btn_ShowFirstImage.Click
    Try
    If miList.Count >= 1 Then
    With PictureBox1
    .SizeMode = PictureBoxSizeMode.Zoom
    .Image = miList(0).Bmp
    End With
    btn_RemoveFirstImage.Enabled = True
    CheckBox_RemoveSourcePath.Enabled = True
    End If
    Catch ex As Exception
    MessageBox.Show(String.Format("An exception was thrown:{0}{0}{1}", vbCrLf, ex.Message), _
    "Exception", MessageBoxButtons.OK, MessageBoxIcon.Warning)
    End Try
    End Sub
    Private Sub btn_RemoveFirstImage_Click(sender As System.Object, _
    e As System.EventArgs) _
    Handles btn_RemoveFirstImage.Click
    Try
    If miList.Count >= 1 Then
    MyImages.Remove(miList, miList(0).SourceFilePath, CheckBox_RemoveSourcePath.Checked)
    End If
    PictureBox1.Image = Nothing
    btn_RemoveFirstImage.Enabled = True
    CheckBox_RemoveSourcePath.Enabled = True
    Catch ex As Exception
    MessageBox.Show(String.Format("An exception was thrown:{0}{0}{1}", vbCrLf, ex.Message), _
    "Exception", MessageBoxButtons.OK, MessageBoxIcon.Warning)
    End Try
    End Sub
    End Class
    Running it is straightforward:
    Now when I click to show the first one:
    A different image is shown because that first one no longer exists - either in the collection or in the folder.
    Closing/disposing all references is the key and the order matters.
    Something to consider the next time around. :)
    Still lost in code, just at a little higher level.

  • After removing system fonts and reinstalling fonts, FireFox will not start

    After removing system fonts and reinstalling fonts, FireFox will not start! When I start FireFox the "Mozilla Crash Reporter" opens as if FF just crashed??? I don't see any records in event viewer. I am using FF v3.6.3 on a Windows 7 box. I tried uninstalling 3.6.3 and installing 3.0.18 and had the same problem!
    == This happened ==
    Every time Firefox opened
    == After a uninstalled all fonts including system fonts and then reinstalling system fonts. ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB6.4; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; AskTB5.5)

    The files with submitted crash report ids are inside the ''submitted '' directory, from the directory you found the LastCrash.txt timestamp file.
    The file names will begin with '''bp-'''
    There might be more information from the crash report, but it might just tell us you are crashing the first time Firefox tries to use a font.
    One thing I suppose you could do is select only those fonts you've got in Tools -> Options -> Content -> Fonts and Colors -> Advanced and then uncheck the '''Allow pages to use their own fonts''' option.
    See http://support.mozilla.com/en-US/kb/Options+window+-+Content+panel#Fonts_Dialog
    To be honest, I can't find anything on this Netscape Font Navigator and it sounds highly dubious.

  • Please help: After removed a connector (nagios-connector) there is an error at the operations Manager Console

    Hello,
    after installing the nagios connecor and it doesn'work, i  try to remove it; with the powershell command remove-SCOMConnector. After removing it, Get-SCOMConnector shows me, that it doesn't exist:
    PS D:\> Get-SCOMConnector
    Name        : Network Monitoring Internal Connector
    DisplayName : Connector for populating network devices.
    Description :
    Initialized : False
    Name        :
    DisplayName :
    Description :
    Initialized : True
    Name        : SMASH Discovery Internal Connector
    DisplayName : Connector for populating SMASH devices.
    Description :
    Initialized : False
    Name        : Operations Manager Internal Connector
    DisplayName : A connector used by Operations Manager components to insert discovery data, please create your own connec
                  tor do not use this connector.
    Description :
    Initialized : False
    But when i take a look to the connectors in Operations Manager Console, it hangs, after a while i have this error:
    Date: 27.05.2014 10:04:43
    Application: Operations Manager
    Application Version: 7.1.10226.0
    Severity: Error
    Message: 
    System.NullReferenceException: Object reference not set to an instance of an object.
       at Microsoft.EnterpriseManagement.ConnectorFramework.EnterpriseManagementConnector.Reconnect(EnterpriseManagementGroup managementGroup)
       at Microsoft.EnterpriseManagement.Mom.Internal.UI.Cache.Query`1.GetUpdate(IndexTable indexTable, QueryUpdate`1 update, CacheCursor cursor, Range range, Int32 offset, Int32 groupLevel)
       at Microsoft.EnterpriseManagement.Mom.Internal.UI.Cache.QueryCache`2.GetUpdate(IndexTable indexTable, QueryUpdate`1 update)
       at Microsoft.EnterpriseManagement.Mom.Internal.UI.Cache.QueryCache`2.GetUpdate(CacheSession session, Boolean fullUpdate)
       at Microsoft.EnterpriseManagement.Mom.Internal.UI.Cache.QueryCache`2.FireUpdateEvent(CacheSession session, DateTime updateTime, Boolean dataChanged, Boolean fullUpdate, Boolean updatesOnly, IEnumerable queryResult)
       at Microsoft.EnterpriseManagement.Mom.Internal.UI.Cache.Query`1.FireUpdateEvents(CacheSession session, Boolean dataChanged, Boolean fullUpdate, ICollection`1 queryResult)
       at Microsoft.EnterpriseManagement.Mom.Internal.UI.Cache.Query`1.PostQuery(CacheSession session, IndexTable indexTable, UpdateReason reason, UpdateType updateType, Boolean dataChanged, DateTime queryTime, ICollection`1 queryResult)
       at Microsoft.EnterpriseManagement.Mom.Internal.UI.Cache.Query`1.InternalSyncQuery(CacheSession session, IndexTable indexTable, UpdateReason reason, UpdateType updateType)
       at Microsoft.EnterpriseManagement.Mom.Internal.UI.Cache.Query`1.InternalQuery(CacheSession session, UpdateReason reason)
       at Microsoft.EnterpriseManagement.Mom.Internal.UI.Cache.Query`1.TryDoQuery(UpdateReason reason, CacheSession session)
       at Microsoft.EnterpriseManagement.Mom.Internal.UI.Console.ConsoleJobExceptionHandler.ExecuteJob(IComponent component, EventHandler`1 job, Object sender, ConsoleJobEventArgs args)
    Can somebody help me fixing this error?
    Strange.. the powerShell Command "get-SCOMConnector" works.. but the console hangs (on loading) when i want to show the connectors...
    Kind regards
    Wolfgang

    Hi,
    I agree, we may need to remove the connector from OpsDB. In addition, here is blog regarding to the similar issue, hope it helps:
    Error: “Object reference not set to an Instance of an Object” System Center Operation Manager 2012 Connector.
    http://blogs.technet.com/b/birojitn/archive/2012/07/07/error-object-reference-not-set-to-an-instance-of-an-object-system-center-operation-manager-2012-connector.aspx
    Regards,
    Yan Li
    Regards, Yan Li

  • Hi,   My photo stream used to work fine.  But after removing all the photos to separate folders in my computer, my new photos are no longer streaming to my PC.  They appear in the photo stream on my other devices - iPhone5 and iPad Mini.  It's just my PC

    Hi,
    My photo stream used to work fine.  But after removing all the photos to separate folders in my computer, my new photos are no longer streaming to my PC.  They appear in the photo stream on my other devices - iPhone5 and iPad Mini.  It's just my PC that's missing the photos.
    When I open the iCloud control panel, I cannot turn on the photos.  That option is ghosted.  I'm running on Windows 7 with iCloud 3.0.  Any ideas on how I can fix this?  All help is appreciated!  Thanks!

    Hi Kevinmvb,
    Welcome to the Support Communities!
    The article below may be able to help you with this.  It sounds like you may have moved your photos out of the Uploads folder where they need to reside.
    iCloud: My Photo Stream troubleshooting
    http://support.apple.com/kb/TS3989
    Cheers,
    - Judy

  • I downloaded OS X Lion Server using my apple developer account? Will it stay after my enrolment is over?

    The title says it all. I downloaded OS X Lion Server using my apple developer account? Will it stay after my 1 year enrolment is over? I basicaly signed in and redeemed a code to download OS X Lion Server. It is now in my purchased list in the Mac App Store. But I got it by redeeming a code that I got through being an Apple Mac Developer. I wanted to know if I decided not to pay $99 next year to renew my enrolment, will I still be able to keep OS X Lion Server in my purchased list in the Mac App Store. When I click on More Apps by Apple in the Mac App Store, it takes me to the page with all their apps. OS X Lion Server says it is installed. But I want to know if it will still be in the purchased menu after the enrolment is finished and not renewed.

    I am a new Mac Developer. I checked the page you gave me and I think it's more to do with topics about programming and using the developer tools and pre-release software. I don't think my question relates to any of the topics there. OS X Lion Server has already been released and is available for the public. I was planning on buying it. But before I did that I wanted to become a developer. So I enrolled in the Mac Developer program and I went to download OS X Mountain Lion Developer Preview 2 when I realized that I could also download the already released OS X Lion Server which was available for $50. So instead of buying it from the Mac App Store, I just got the redemption code from the Mac Developer Center and downloaded it free of charge (I did pay the $99 to be a Mac Developer though). Now it has been added to the purchased list in the Mac App Store and when I click the More Apps by Apple button in the Mac App Store, it takes me to the page with all Apple apps. And now on that page it says that OS X Lion Server has been installed. I am just wandering if once my enrollment is over next year April, and I decide not to renew my enrolment, will I still be able to have the OS X Lion Server in my list of purchased apps and still be able to re-download it? Sorry if this is too long, but I am trying to be as clear as possible. Sometimes when I ask questions, I wait a whole day and go back there, only to find out that they didn't understand what I meant. Thank you .

  • Mailbox size increased after removing attachments

    Doing a little clean-up on my mail, I noticed my sent mailbox was 1.23 gigs. So, I went in saved several hundred attachments and then tried to remove attachments. It would only let me remove attachments about 5 messages at a time, so I moved over 300 messages that all had attachments to a new folder. After moving them I was able to remove all the attachments at one time.
    But after moving and removing attachments the size of my sent mailbox did not decrease it actually increased by over 400 megs to 1.7 gigs. And the new folder was also very large, at almost 700 megs (even after removing attachments).
    Any ideas how/why this happens? and what can I do to reduce the size of that mailbox?
    I have had the overflow issue before and have been trying to keep and eye on the mailbox sizes and keep them under 1 gig, but this one got by me. My only complaint is mail does not tell you the size of a mailbox in the application, if I was able to check the mailbox size right from the app it would be an easier thing to keep an eye on an everyday basis.
    Any help would be great.. thanks!
    G4 400   Mac OS X (10.3.9)  

    For each mailbox, Mail 1.x stores messages sequentially in an mbox file within the *.mbox package associated with the mailbox -- you can see the files contained in an *.mbox package by ctrl-cliking on it in the Finder and choosing Show Package Contents from the contextual menu.
    When a message is removed from a mailbox in Mail 1.x, the actual message may be completely erased from the mbox file, or it may remain there just marked for deletion in one of the other supporting files within the *.mbox package. In order to reduce the mailbox size when a message is deleted from the middle, the entire mailbox would have to be rewritten to disk every time, which is clearly not practical.
    When attachments are removed from a message, the attachments aren’t actually removed from anywhere. What really happens is that Mail creates a new message without the attachments and deletes the original message... and now you know what it really is that actually happens when a message buried in the middle of the mailbox is deleted...
    My only complaint is mail does not tell you the size of a
    mailbox in the application
    Mail 1.3 sure does. The size of the selected mailbox is displayed in the status bar (View > Show Status Bar). Interestingly enough, that feature is no longer available in Mail 2.x.

  • How to remove empty lines from xml files after removing nodes from document

    <pre>
    Hi
    <b>i have xml document, which is shown below
    after removing some nodes from the document ,i am getting empty lines in place of removed nodes,how to resolve this and get the proper xml document without any errors</b>
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <!DOCTYPE Message SYSTEM "TRD01.dtd">
    <Message>
    <Header>
    <CounterPartyType>CLIENT</CounterPartyType>
    <CreationTime>20134455</CreationTime>
    <ErrorCode>363 </ErrorCode>
    <ErrorEnterPriseId>N</ErrorEnterPriseId>
    <ErrorStatus>1</ErrorStatus>
    <ErrorSystemId>STL</ErrorSystemId>
    <ErrorTimes>31</ErrorTimes>
    <MessageType>T</MessageType>
    <RecipientEnterpriseId>N</RecipientEnterpriseId>
    <RecipentSystemId>EXM</RecipentSystemId>
    <Remarks>REMARSK</Remarks>
    <SenderEnterpriseId>N</SenderEnterpriseId>
    <SenderSystemId>TR</SenderSystemId>
    </Header>
    </Message>
    <ErrorCode>363 </ErrorCode>
    <ErrorEnterPriseId>NIHK</ErrorEnterPriseId>
    <ErrorStatus>1</ErrorStatus>
    <ErrorSystemId>STL</ErrorSystemId>
    <ErrorTimes>31</ErrorTimes>
    XPathExpression expression5 = xpath.compile(xmlpath5);
    Object result5 = expression5.evaluate(doc, XPathConstants.NODE);
    Node node5 = (Node) result5;
    node5.getParentNode().removeChild(node5);
    XPathExpression expression6 = xpath.compile(xmlpath6);
    Object result6 = expression6.evaluate(doc, XPathConstants.NODE);
    Node node6=(Node) result6;
    node6.getParentNode().removeChild(node6);
    XPathExpression expression7 = xpath.compile(xmlpath7);
    Object result7 = expression7.evaluate(doc, XPathConstants.NODE);
    Node node7=(Node) result7;
    node7.getParentNode().removeChild(node7);
    doc.normalize();
    doc.normalizeDocument();
    TransformerFactory tf = TransformerFactory.newInstance();
    Transformer t = tf.newTransformer();
    t.setOutputProperty(OutputKeys.INDENT, "yes");
    t.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "4");
    t.setOutputProperty(OutputKeys.METHOD,"xml");
    t.setOutputProperty(OutputKeys.ENCODING, "UTF-8");
    the xml output i am getting is
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <Message>
    <Header>
    <CounterPartyType>CLIENT</CounterPartyType>
    <CreationTime>20134455</CreationTime>
    <MessageType>TRD01</MessageType>
    <RecipientEnterpriseId>N</RecipientEnterpriseId>
    <RecipentSystemId>STL</RecipentSystemId>
    <Remarks>REMARSK</Remarks>
    <SenderEnterpriseId>N</SenderEnterpriseId>
    <SenderSystemId>T</SenderSystemId>
    </Header>
    </Message>
    <b>could you please let me know how to avoid empty lines in the xml doucment output</b>
    this is the method i am using to get the result
    public void ValidateRecord(String xml){
    try{
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder db = factory.newDocumentBuilder();
    //parse file into DOM
    /*DOMParser parser = new DOMParser();
    parser.setErrorStream(System.err);
    parser.setValidationMode(DTD_validation);
    parser.showWarnings(true);*/
    System.out.println ("HI THIS xml is validation "+xml);
    Resolver res = new Resolver();
    db.setEntityResolver(res);
    Document doc = db.parse(new InputSource(new StringReader(xml)));
    XPathFactory xpf = XPathFactory.newInstance();
    XPath xpath = xpf.newXPath();
    // XPathExpression expression = xpath.compile("//A/B[C/E/text()=13]");
    String xmlpath="/Message/Header/CounterPartyType/text()";
    String xmlpath1="/Message/Header/RecipentSystemId/text()";
    String xmlpath2="/Message/Header/ErrorSystemId/text()";
    XPathExpression expression = xpath.compile(xmlpath);
    XPathExpression expression1 = xpath.compile(xmlpath2);
    Object result = expression.evaluate(doc, XPathConstants.NODE);
    Object result1 = expression1.evaluate(doc, XPathConstants.NODE);
    Node node = (Node) result;
    Node node1 = (Node) result1;
    System.out.println("the values of the string is " +node.getNodeValue());
    System.out.println("the values of the string is " +node1.getNodeValue());
    // for (int i = 0; i < nodes.getLength(); i++) {
    //System.out.println(nodes.item(i).getNodeValue());
    // CAHNGING THE RECEIPENT NODE
    XPathExpression expression2 = xpath.compile(xmlpath1);
    Object result2 = expression2.evaluate(doc, XPathConstants.NODE);
    Node node2 = (Node) result2;
    System.out.println(node2);
    node2.setNodeValue(node1.getNodeValue());
    System.out.println(node2);
    //removing the nodes from document
    String xmlpath3="/Message/Header/ErrorCode";
    String xmlpath4="/Message/Header/ErrorEnterPriseId";
    String xmlpath5="/Message/Header/ErrorStatus";
    String xmlpath6="/Message/Header/ErrorSystemId";
    String xmlpath7="/Message/Header/ErrorTimes";
    XPathExpression expression3 = xpath.compile(xmlpath3);
    Object result3 = expression3.evaluate(doc, XPathConstants.NODE);
    Node node3 = (Node) result3;
    node3.getParentNode().removeChild(node3);
    XPathExpression expression4 = xpath.compile(xmlpath4);
    Object result4 = expression4.evaluate(doc, XPathConstants.NODE);
    Node node4 = (Node) result4;
    System.out.println("node value");
    System.out.println(node4.getParentNode().getNodeName());
    node4.getParentNode().removeChild(node4);
    XPathExpression expression5 = xpath.compile(xmlpath5);
    Object result5 = expression5.evaluate(doc, XPathConstants.NODE);
    Node node5 = (Node) result5;
    node5.getParentNode().removeChild(node5);
    XPathExpression expression6 = xpath.compile(xmlpath6);
    Object result6 = expression6.evaluate(doc, XPathConstants.NODE);
    Node node6=(Node) result6;
    node6.getParentNode().removeChild(node6);
    XPathExpression expression7 = xpath.compile(xmlpath7);
    Object result7 = expression7.evaluate(doc, XPathConstants.NODE);
    Node node7=(Node) result7;
    node7.getParentNode().removeChild(node7);
    // Node b13Node = (Node) expression.evaluate(doc, XPathConstants.NODE);
    //b13Node.getParentNode().removeChild(b13Node);
    doc.normalize();
    doc.normalizeDocument();
    TransformerFactory tf = TransformerFactory.newInstance();
    Transformer t = tf.newTransformer();
    t.setOutputProperty(OutputKeys.INDENT, "yes");
    t.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "4");
    t.setOutputProperty(OutputKeys.METHOD,"xml");
    t.setOutputProperty(OutputKeys.ENCODING, "UTF-8");
    t.transform(new DOMSource(doc), new StreamResult(System.out));
    catch (Exception e) {
         e.printStackTrace();
    System.out.println(e.getMessage());
    </pre>
    Edited by: user12185243 on Apr 6, 2013 6:38 AM
    Edited by: user12185243 on Apr 6, 2013 6:41 AM
    Edited by: user12185243 on Apr 6, 2013 6:43 AM
    Edited by: user12185243 on Apr 6, 2013 6:45 AM
    Edited by: user12185243 on Apr 6, 2013 9:00 AM

    either this way we can do this
    1)
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    <b> factory.setIgnoringElementContentWhitespace(true); </b>
    DocumentBuilder db = factory.newDocumentBuilder();
    or
    2)
    java.io.StringWriter sw = new java.io.StringWriter();
    StreamResult sr = new StreamResult(sw);
    t.transform(new DOMSource(doc), sr);
    String xml1 = sw.toString().trim();
    <b> xml1=xml1.replaceAll("\\s",""); </b>
    System.out.println(xml1.trim());

Maybe you are looking for

  • Upgrade my 2010 MBP or Purchase a new Mac?

    Hey All, I need some advice and would really value your opinions.  I have a Mid-2010 MacBook Pro and it's been great to me for 5 years, however, it is so slow compared to my work computer which is a 2013 MacBook Air.  Since I don't personally own my

  • 160G iPod classic Will NOT restore

    160G iPod classic Will NOT restore Timeline: 1. iPod freezes 2. restart 3. everything gone from device_ creating appearance of factory settings having been restored. 4. plug into computer. 5. computer says it cannot recognize iPod because formatless

  • Not possible to creat Belgian i-tunes account in i-tunes 8

    Good afternoon, It seems to be impossible to create an account in i-tunes with a belgian visa card. The system keeps, asking for a Dutch billing address. Read my full story here please: http://forums.macrumors.com/showthread.php?t=593070 Many thanks

  • How to change from video function to photo in ipad air

    I'm trying to take a picture with the camera of the ipa iar, but the video function is activated and i can't change it to select photo function. How can I do it?

  • Problem got when setting up Sharepoint 2010

    Hi, As Filter pack 2.0 is one pre-requisite of Sharepoint 2010, but when setting up this Microsoft Filter Pack 2.0 (KB2837594) 64-Bit Edition I get this  As I'm setting up Sharepoint 2010 on the server, BTW, can I use ASP.NET v4.0, instead of v2.0, m