<?xml version="1.0"?>
<ownershipDocument>

    <schemaVersion>X0202</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2007-10-22</periodOfReport>

    <notSubjectToSection16>0</notSubjectToSection16>

    <issuer>
        <issuerCik>0000880562</issuerCik>
        <issuerName>UNIFY CORP</issuerName>
        <issuerTradingSymbol>UFYC</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001044321</rptOwnerCik>
            <rptOwnerName>MARXE AUSTIN W &amp; GREENHOUSE DAVID M</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>C/O SPECIAL SITUATIONS FUNDS</rptOwnerStreet1>
            <rptOwnerStreet2>527 MADISON AVENUE, SUITE 2600</rptOwnerStreet2>
            <rptOwnerCity>NEW YORK</rptOwnerCity>
            <rptOwnerState>NY</rptOwnerState>
            <rptOwnerZipCode>10022</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>1</isTenPercentOwner>
            <isOther>0</isOther>
        </reportingOwnerRelationship>
    </reportingOwner>

    <nonDerivativeTable>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common Stock</value>
            </securityTitle>
            <transactionDate>
                <value>2007-10-22</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>C</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionTimeliness>
                <value></value>
            </transactionTimeliness>
            <transactionAmounts>
                <transactionShares>
                    <value>135314</value>
                    <footnoteId id="F1"/>
                    <footnoteId id="F2"/>
                </transactionShares>
                <transactionPricePerShare>
                    <value>2.5</value>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>A</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>1514891</value>
                    <footnoteId id="F1"/>
                    <footnoteId id="F2"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>I</value>
                    <footnoteId id="F1"/>
                </directOrIndirectOwnership>
                <natureOfOwnership>
                    <value>By Limited Partnerships</value>
                    <footnoteId id="F1"/>
                </natureOfOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
    </nonDerivativeTable>

    <derivativeTable>
        <derivativeTransaction>
            <securityTitle>
                <value>Convertible Bonds</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <value>2.5</value>
            </conversionOrExercisePrice>
            <transactionDate>
                <value>2007-10-22</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>C</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionTimeliness>
                <value></value>
            </transactionTimeliness>
            <transactionAmounts>
                <transactionShares>
                    <value>338286</value>
                    <footnoteId id="F2"/>
                    <footnoteId id="F3"/>
                </transactionShares>
                <transactionPricePerShare>
                    <value>2.5</value>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <exerciseDate>
                <value>2007-10-22</value>
            </exerciseDate>
            <expirationDate>
                <value>2010-10-31</value>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>Common Stock</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>135314</value>
                    <footnoteId id="F2"/>
                    <footnoteId id="F3"/>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>1521829</value>
                    <footnoteId id="F2"/>
                    <footnoteId id="F3"/>
                    <footnoteId id="F4"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>I</value>
                    <footnoteId id="F3"/>
                </directOrIndirectOwnership>
                <natureOfOwnership>
                    <value>By Limited Partnerships</value>
                    <footnoteId id="F3"/>
                </natureOfOwnership>
            </ownershipNature>
        </derivativeTransaction>
    </derivativeTable>

    <footnotes>
        <footnote id="F1">This is a joint filing by Austin W. Marxe (Marxe) &amp; David M. Greenhouse (Greenhouse).  They share voting and investment control over all securities owned by Special Situations Fund III QP, L.P. (QP), Special Situations Cayman Fund, L.P. (Cay), Special Situations Private Equity Fund, LP (PE), Special Situations Technology Fund, L.P. (Tech) &amp; Special Situations Technology II, L.P. (Tech II),  respectively 642,574 shares of Common Stock are held by QP, 209,262 shares of Common Stock are held by Cay, 330,113 shares of Common Stock are held by PE, 55,808 shares of Common Stock are held by Tech &amp; 277,134 shares of Common Stock are held by Tech II.  The interest of Marxe and Greenhouse in the shares of Common Stock owned by QP, Cay, PE, Tech &amp; Tech II is limited to the extent of his pecuniary interest.</footnote>
        <footnote id="F2">Pursuant to the Term loan 1 agreement dated November 30, 2006 as of October 22, 2007 the note was called and exchanged for Common Shares.</footnote>
        <footnote id="F3">This is a joint filing by Austin W. Marxe (Marxe) &amp; David M. Greenhouse (Greenhouse).  They share voting and investment control over all securities owned by Special Situations Fund III QP, L.P. (QP), Special Situations Cayman Fund, L.P. (Cay), Special Situations Private Equity Fund, LP (PE), Special Situations Technology Fund, L.P. (Tech) &amp; Special Situations Technology II, L.P. (Tech II),  respectively.  634,095 CB cvtd into 126,819 shares of CS are held by QP, 206,081 CB cvtd into 41,216 shares of CS are held by Cay, 332,900 CB cvtd into 66,580 shares of CS are held by PE, 63,410 CB cvtd into 12,682 shares of CS are held by Tech and 285,343 CB cvtd into 57,069 shares of CS are held by Tech II. The interest of Marxe and Greenhouse in the shares of Corporate Bond owned by QP, Cay, PE, Tech &amp; Tech II is limited to the extent of his pecuniary interest.</footnote>
        <footnote id="F4">Pursuant to term loan agreement dated November 30, 2006, the Funds received monthly payments of principal until the Notes are repaid in full. Through October 31, 2007, the Funds received $194,285.71 of principal payments.</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>Austin W. Marxe</signatureName>
        <signatureDate>2007-11-15</signatureDate>
    </ownerSignature>

    <ownerSignature>
        <signatureName>David M. Greenhouse</signatureName>
        <signatureDate>2007-11-15</signatureDate>
    </ownerSignature>
</ownershipDocument>
