Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Silly idea, need help (verbal announcement of inbound emails)

  1. #1
    Join Date
    May 2006
    Location
    England.
    Posts
    927
    Rep Power
    10

    Default Silly idea, need help (verbal announcement of inbound emails)

    Ok, so here's the deal.

    I was bored and ripped up an old laptop to build into a picture frame type thing, so far all it does is sit there running ether-ape showing network activity on my lan (this is for my home setup) That looks nice and I thought... Hmm, what else can I do, so I came up with this....

    I've installed Cepstral speech engine on the frame and I want the zimbra server to send a message to it somehow so that as an email arrives for any user, the frame will speak a message, like "New mail for Joe User from ****** Spam" etc, I know this is pointless, I know its stupid, but I still think it's kinda cool.

    However, I barely know where to start. I want the notifications to be instant, so any form of pop3 collection is out. I'm thinking it should be possible to set zimbra to send a message to the frame, as the mail arrives and run a shell script on the frame to listen on a port or something. It should be easy, but currently I'm at the 'blank page' stage and struggling to start.

    Anyone have any ideas?

  2. #2
    dijichi2 is offline OpenSource Builder & Moderator
    Join Date
    Oct 2005
    Posts
    1,176
    Rep Power
    12

    Default

    hah, you have far too much time on your hands

    i would see if there's a command line imap notifier that supports IDLE command, or alternatively if the 'frame' is powerful enough to run the zimbra webclient to make some sort of zimlet?

    let us know if you get anywhere!!!

  3. #3
    Join Date
    Apr 2007
    Posts
    23
    Rep Power
    8

    Default

    just a thought but if the zimbra toaster is open source you might want to start there...

  4. #4
    Join Date
    May 2006
    Location
    England.
    Posts
    927
    Rep Power
    10

    Default

    The laptop I used was is a P4 so it can run the client ok, but I want it to check for any incomming mail, not just the account that the client would be logged into.

    I feel the same problem may exist for the toaster, but the source for that will be simpler then the entire web client, so it's something to look at. I'll grab the toaster source and see what I can do, is there a linux version of the toaster? It's running Debian.

    As for too much time, nah, never enough time, just too many ideas! The amount of unfinished projects I have floating around it out of control!

  5. #5
    Join Date
    Oct 2005
    Location
    USA, Canada and India
    Posts
    777
    Rep Power
    11

    Talking This will keep you busy...

    Dirk..As I can see you have time on your hand then try this..

    1# create a pop/email user on your domain [get.copy.of.all@domain.com]

    2# Add the following line to MAIN.CF for postfix
    /opt/zimbra/postfix-2.2.9/conf/main.cf
    always_bcc = get.copy.of.all@domain.com

    * Postfix will send a COPY of every email coming to Zimbra on that address

    3# Setup POP client on your Client/Frame computer and POP [get.copy.of.all@domain.com] account on your server every 30 seconds or less
    * this will download every email coming on to your server every 30 seconds..

    4# Now you have all the time to code the client to trigger your speech engine

    Let us know if this works..we will send you some few thousand emails to keep you entertained…lol


    Raj

  6. #6
    dijichi2 is offline OpenSource Builder & Moderator
    Join Date
    Oct 2005
    Posts
    1,176
    Rep Power
    12

    Default

    I think the toaster is written in c#, so depending on what level of .net it uses mono may be able to use it.

    fetchmail supports imap idle, might be a better starting point?

  7. #7
    Join Date
    May 2006
    Location
    England.
    Posts
    927
    Rep Power
    10

    Default

    I know nothing of imap idle nor why it would be useful, I'll go look that up shortly.

    I think the pop3 method suggested by Raj may be the way to go. With that set up on the zimbra side, I should be able to write a perl script that checks the pop3 box for mail, downloads the ID, TO, FROM and SUBJECT fields (ignoreing message body if possible) and passes those to the TTS engine, then deletes the mail and loops. Cool, sounds easy when you say it quick!

    My initial thoughts were to write a listener of sorts, something that would listen on an IP port for any string or data, and pass that data to the TTS engine when it got it, then have zimbra to the preprocessing of the message when it arrived and stream it to the frame using something like netcat. But that seems to require a lot more work.

  8. #8
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Quote Originally Posted by Dirk View Post
    I know nothing of imap idle nor why it would be useful, I'll go look that up shortly.
    That's how you get mail to a client real-time.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  9. #9
    Join Date
    Oct 2005
    Location
    USA, Canada and India
    Posts
    777
    Rep Power
    11

    Default

    always_bcc = get.copy.of.all@domain.com

    Account has both IMAP and POP3...you can use any one of the two to get email using your client..
    if your client is in Windows Environment then there is lot of free code avail to POP a account using VB or C#

    Raj

  10. #10
    dijichi2 is offline OpenSource Builder & Moderator
    Join Date
    Oct 2005
    Posts
    1,176
    Rep Power
    12

    Default

    ah, if you're proficient in perl, just poll in a loop with something like (numerous other cpan modules available) and fire off a system call when you get something, unless your speech thingee has perl bindings:
    http://search.cpan.org/~conteb/IMAP-...IMAP/Client.pm

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •