in reply to Re^2: Handling reconnection with Mail::IMAPClient
in thread Handling reconnection with Mail::IMAPClient

I have probably poorly expressed my question, but no: I'm not trying to implement a server logic. I'm implementing a client that connect to an IMAP server, fetches for new messages and (in the full version of the program) applies some rule to incoming messages.

That sounds like server-side filters (e.g. Sieve = RFC3028, exim filter) moved to the client.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
  • Comment on Re^3: Handling reconnection with Mail::IMAPClient

Replies are listed 'Best First'.
Re^4: Handling reconnection with Mail::IMAPClient
by Discipulus (Canon) on Jan 26, 2023 at 09:38 UTC
    dear afoken,

    > That sounds like server-side filters

    I have both kind of replies on this:

    No: my perl imap client reads via text2speech important mail sender and subject in my headset while I'm listening music to avoid the openspace chaos. So it is a filter yes, but eminently client side.

    Yes: my perl imap client also mark as read some mail, move other ones to specific subfolder or mark them as important, so it is something should be done server side via message rules. But the actual server offers an OWA interface and rules are not always applied and I dont know why. Also: I use Thunderbird as mail client and it offers message filters too, but they have broken something recently and message filters are now very instable and new applied filters simply dont work.

    But I dont think my question was about filtering. My question is about making a reconecction using Mail::IMAPClient and implementation apart I think is a valid question. The module offers methods to connect, check the status of the connection so I suppose should be great to be able to recover a lost connection. All professional mail clients are able to do this, I want it too.

    L*

    PS from the RFC you kindly linked:

    This document describes a language for filtering e-mail messages at time of final delivery. It is designed to be implementable on eith +er a mail client or mail server.

    There are no rules, there are no thumbs..
    Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
      I dont think my question was about filtering.

      No, but it made me think you were busy re-inventing the wheel on the "wrong" side (on the client).

      my perl imap client reads via text2speech important mail sender and subject in my headset

      Interesting idea. I'm not sure if I would freak out if my computer would suddenly start speaking while I'm deep "in the zone".

      Alexander

      --
      Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)