SMTP Inbound

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf SMTP Inbound

  • Creator
    Topic
  • #49682
    garry r fisher
    Participant

      Hi,

      Has anyone any experience of taking an inbound message from an Exchange server? I know tcl has an SMTP and POP library so I assume it is possible to pull a message from the server and then parse it in Tcl.

      Any thoughts on this would be appreciated.

      Regards

      Garry

    Viewing 3 reply threads
    • Author
      Replies
      • #63070
        Charlie Bursell
        Participant

          Download and install the latest tcll library (tcllib1.10). There is a pop3 package in there that should do what you want.

          From the package description:

          The pop3 package provides a simple Tcl-only client library for the POP3 email protocol as specified in RFC 1939 (http://www.rfc-editor.org/rfc/rfc1939.txt). It works by opening the standard POP3 socket on the server, transmitting the username and password, then providing a Tcl API to access the POP3 protocol commands. All server errors are returned as Tcl errors (thrown) which must be caught with the Tcl catch command

        • #63071
          garry r fisher
          Participant

            Thanks Charlie,

            I’m going to give that a try today. It looks to be what I need.

            Regards

            Garry

          • #63072
            David Barr
            Participant

              Your original title for this topic was “SMTP inbound”.  If that’s what you really want to do, that works as well.  It would be best to use “sendmail” as your SMTP server.  It should already be installed on your system (if it is AIX).  You can also install “procmail”, which is used to route e-mail messages to different places based on their content.  It would probably be simplest to set up “procmail” to write the messages to a specific directory and set up a fileset thread to read the messages into Cloverleaf.

              We’ve got “procmail” installed, but we aren’t using it to route Cloverleaf messages.

            • #63073
              garry r fisher
              Participant

                Hi David,

                The title reflecteed my original thoughts at the time. All I’d been told was that I needed to receive an email as input.

                Having followed up on this I can now download emails from a POP server using the TclLib routines. I just needed to prove the concept for a client so it’s rough and ready at the minute but it can be done.

                Regards

                Garry

            Viewing 3 reply threads
            • The forum ‘Cloverleaf’ is closed to new topics and replies.