• Corrupt attachments in Mailspam

    By Steve Roch 2 decades ago

    I use kSpam on Windows 2000 Server SP4 at two different client sites (both Domino 6.5.2). One of the sites has their own MX record to receive email directly and I have no problems there.



    The other site is in a WAN and receives their email from a Notes server in another city, i.e., they don't receive email directly. In this environment, if an email with an attachment is falsely filtered as spam and I hit Move Selected Message to Good, I get the following error:

    "Notes error: One or more of the source document's attachment are missing. Run fixup to delete the document in the source database. (mailspam.nsf)"



    If I delete the "null" attachment (it's basically just an icon) from the email and then hit Move Selected Message to Good, I don't get the error. The email - minus the attachment - is moved as it should be. Unfortunately, this then requires the email with the attachment to be resent (after I add them to the whitelist).



    In the other environment (the one that receives email directly with their own MX record), if an email with an attachment is falsely filtered as spam and I hit Move Selected Message to Good, I don't get the error and both the email and attachment are moved to Mailgood without any problems.



    Does anyone know if there's a way to fix this problem in the non-working environment?



    Thanks!

    • Me too...

      By Eduardo Pulido 2 decades ago

      I am also getting the same issue with some documents in both mailspam and mailgood databases.

    • Plans to fix this?

      By Eduardo Pulido 2 decades ago

      All emails with attachments that get copied to mailgood and mailspam have their attachments corrupted, do you have any plans on fixing this? I went through previous discussions, and it has been already reported for another version.

      • Re:

        By Tom Lyne 2 decades ago

        Once I pin the problem down it will get fixed. At first look it might be an API problem as kSpam just performs a straight NSFNoteCopy call on the message.



        Does this happen even with small attachments e.g. 1-10 Kb?



        -tom

        • Corrupt Attachments

          By Steve Roch 2 decades ago

          Yes, all attachments are corrupt, regardless of file size.

        • possible fix?

          By Eduardo Pulido 2 decades ago

          Any attachment size.



          I am not a C programmer, but I found this. If you read the thread, the issue seems to be the same. Hope it helps:



          http://www-10.lotus.com/ldd/46dom.nsf/55c38d716d632d9b8525689b005ba1c0/edbb43db79203f3285256bda00814760?OpenDocument



          "Changed from NSFNoteCopy to NSFDbCopyNote: everything is fine now!"

          • Re:

            By Tom Lyne 2 decades ago

            NSFDbCopyNote copies notes from one db to another which we can't implement in kSpam because the note isn't in a DB when it is intercepted. However, I've found another post at notes.net which I think explains the problem.



            The attachment is still in the original database (mail.box on the first server) when the note is copied on the second server, so it seems this doesn't allow the attachment to get copied.



            What kSpam needs to do is check if there are attachments and then retrieve them from the original database.



            -tom

    • By Joao Pimenta 2 decades ago

      I have the same problem…



      2 internet domains

      Server A is domain 1 and internet SMTP gateway

      Server B is domain 2 and serves mailfiles to users



      KSPAM is installed on server B