Nested Display

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mshmyob
    Recognized Expert Contributor
    • Jan 2008
    • 903

    #16
    Thanks Fish,

    I just completed my first run to get an understanding of the treeview using AD's code and help file. I am now ready to advance my understanding by looking at your code.

    This will come in very handy.

    Just to let you know I am now working with 3 tables.

    tblMailAccount - holds email account info
    tblMailFolder - holds folder info - linked to tblMailAccount & tblMailMessage
    tblMailMessage - holds all info related to email messages

    Obviously my root is picked up from the tblMailAccount and my child nodes are picked up from the tblMailFolder and the details of the selected node are picked up from the tblMailMessage.

    cheers,

    Originally posted by FishVal
    For those who find it interesting I'm attaching the last version of tree interface sample. There are several major enhancements in comparison with the previous version.
    • Two shortcut menus were added to OtMTree class and now all operations with nodes and tree are being held via these menus.
    • Node properties dialog was added.
    • Tree search dialog was added.


    Regards,
    Fish.

    Comment

    • NeoPa
      Recognized Expert Moderator MVP
      • Oct 2006
      • 32669

      #17
      Originally posted by mshmyob
      I have added email functionality to one of my apps. I use SMTP to send and either POP3 or IMAP4 to receive.
      I want to follow this thread but have little to add, particularly to the Tree structure discussion.

      I would recommend using the ASMTP protocol though. In the current environment there are likely to be more and more situations where restrictions are placed on SMTP traffic at a network and security level. Authenticated SMTP will make it easier to get around such restrictions if/when you come up against them. It will also make you more popular with any network administrator trying to restrict email borne malware etc. Just an idea.

      Good luck with your project :)

      Comment

      • mshmyob
        Recognized Expert Contributor
        • Jan 2008
        • 903

        #18
        Good point Neo,

        The ActiveX client I am using supports ESMTP so I will create functions for both SMTP and ESMTP.

        cheers,

        Originally posted by NeoPa
        I want to follow this thread but have little to add, particularly to the Tree structure discussion.

        I would recommend using the ASMTP protocol though. In the current environment there are likely to be more and more situations where restrictions are placed on SMTP traffic at a network and security level. Authenticated SMTP will make it easier to get around such restrictions if/when you come up against them. It will also make you more popular with any network administrator trying to restrict email borne malware etc. Just an idea.

        Good luck with your project :)

        Comment

        • NeoPa
          Recognized Expert Moderator MVP
          • Oct 2006
          • 32669

          #19
          Does the ESMTP API support the ASMTP protocol?

          Comment

          • mshmyob
            Recognized Expert Contributor
            • Jan 2008
            • 903

            #20
            I can support ESMTP, Plain, Login, CRAM-MD5, NTLM, MSN authentication.

            My understanding of ASMTP is just authorizing your SMTP connection to prevent spammers from gaining access to the outgoing mail server on your ISP or internal mail server.

            cheers,

            Originally posted by NeoPa
            Does the ESMTP API support the ASMTP protocol?

            Comment

            • NeoPa
              Recognized Expert Moderator MVP
              • Oct 2006
              • 32669

              #21
              Mine too. I don't know, but I suspect the API would have to support passing the credentials to the ASMTP server?

              Comment

              • ADezii
                Recognized Expert Expert
                • Apr 2006
                • 8834

                #22
                Originally posted by mshmyob
                I can support ESMTP, Plain, Login, CRAM-MD5, NTLM, MSN authentication.

                My understanding of ASMTP is just authorizing your SMTP connection to prevent spammers from gaining access to the outgoing mail server on your ISP or internal mail server.

                cheers,
                I use code frequently that routes E-Mails directly through a SMPT Server, and have never had a problem yet. If you are interested, let me know and I'll post the relevant code and/or a Demo.

                Comment

                • NeoPa
                  Recognized Expert Moderator MVP
                  • Oct 2006
                  • 32669

                  #23
                  Originally posted by ADezii
                  I use code frequently that routes E-Mails directly through a SMPT Server, and have never had a problem yet. If you are interested, let me know and I'll post the relevant code and/or a Demo.
                  That will either be because the SMTP provider hasn't put the proper security in place, or it is at a network level.

                  With the prevalence of compromised PCs around which have there own SMTP service set up in malware it's not responsible for network administrators to allow SMTP traffic from all PCs to pass through either their SMTP servers or their firewalls.

                  Many do (ISPs have very little choice, although some are preparing to switch to ASMTP already), but there are relatively few who appreciate the problem and the solutions available. I wouldn't ever recommend designing software that relies on such low levels of security though. Customers can be many and varied, and the more there are, the less chance there is that none of them will be required to work in a properly secured environment.

                  Preparing a proper solution is not so hard and protects you from unhappy customers down the line.

                  Comment

                  • ADezii
                    Recognized Expert Expert
                    • Apr 2006
                    • 8834

                    #24
                    Originally posted by NeoPa
                    That will either be because the SMTP provider hasn't put the proper security in place, or it is at a network level.

                    With the prevalence of compromised PCs around which have there own SMTP service set up in malware it's not responsible for network administrators to allow SMTP traffic from all PCs to pass through either their SMTP servers or their firewalls.

                    Many do (ISPs have very little choice, although some are preparing to switch to ASMTP already), but there are relatively few who appreciate the problem and the solutions available. I wouldn't ever recommend designing software that relies on such low levels of security though. Customers can be many and varied, and the more there are, the less chance there is that none of them will be required to work in a properly secured environment.

                    Preparing a proper solution is not so hard and protects you from unhappy customers down the line.
                    I should have been a little more specific in my explanation, NeoPa. Only a select, few, supervisory PCs are allowed to directly route through the SMTP Server via acceptable IP Addresses. On top of this, there is a specific Front End, available to only a select number of individuals who will actually be able to utilize this functionality.

                    Comment

                    • mshmyob
                      Recognized Expert Contributor
                      • Jan 2008
                      • 903

                      #25
                      Thanks for the offer AD but I have no problem with SMTP. Authenticating is also no problem for me.

                      Strange that I can create the entire emial system no problem but the TreeView is the hardest part :) but now I have a grasp of it so now with the final touches of Fish's code I think it will be just what I envisioned it to be. Only one part left of it but I will start a new thread if I have a problem with the last part.

                      cheers,

                      Originally posted by ADezii
                      I use code frequently that routes E-Mails directly through a SMPT Server, and have never had a problem yet. If you are interested, let me know and I'll post the relevant code and/or a Demo.

                      Comment

                      • NeoPa
                        Recognized Expert Moderator MVP
                        • Oct 2006
                        • 32669

                        #26
                        That's good to hear Mshmyob.

                        If I may though, at the risk of weighing down this topic with too much security detail, respond to ADezii's last post, as I feel it is important to clarify this for anyone reading it who may not have the experience it seems clear we all have.

                        Your (ADezii's) network sounds like it's well set up and the security has been considered. This illustrates well the need for considering the security issue in the code as suggested. Consider the code running within your network but from a PC that is not allowed to send SMTP through the server. Not easy for support, when a user calls up that will probably not be aware of the IP security that's in place. I know this as I've had very similar problems in my network where PCs were blocked and I'd forgotten all the details of exactly what was set and where. That was as the administrator. Imagine how a user of the software may be confused.

                        Anyway, I'm glad this security discussion has been aired as it's something many are not aware of.

                        Comment

                        Working...