Skip to content

Gmail label & out-bound email  #187

Open

Description

@soyapark

Might be related to #169

One of my gmail account, I have a filter rule that if I'm one of recipients or sender add a label X. At Youps, I set a rule, if I got an email arrived on this label/folder, forward the email to my friend.

When I emailed someone, Gmail filter adds the label X to this email and YouPS triggers message arrival event on the label -> then Youps forwards a message to my friend -> YouPS triggers message arrival event on the label -> then Youps forwards a message to my friend -> ....

When we check for message arrival events, can we add one more heuristic to make sure if the message is arrived on the folder or added to the folder? The heuristic could be simple as 1) checking if I'm on the receipients list (oh it might be a problem if I'm on bcc list) 2) if I'm a sender, make sure I'm on the receipient list too?

Activity

  1. lukesmurray commented on Jul 16, 2019

    @lukesmurray
    Collaborator

    Simple idea is to query the database for the message id or base message and if it exists then this was added not arrived.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions