Pages: 1
RSS
Using Gmail recent mode to sync laptop and desktop
 
Both computers are set up with Transport/User/Receive mail/User "recent:my gmail userID".


Problem is that if I send a mail, it is downloaded again so I end up with duplicates.

Has made a filter to delete mails that is sent from myself to myself.

Condition:Header match me@gmail.com
AND Recipient match me@gmail.com
Action:
Move to trash
Mark as read

It works, but has some major flaws:
Triggers on Google Calendar notifications.
Triggers on emails from certain senders.

Anyone who have a solution to this?
 
Quote
bat99 wrote:
Problem is that if I send a mail, it is downloaded again so I end up with duplicates.

If you use IMAP, are you sure that you have correctly synced your folders between The Bat and Gmail's mailserver?

Quote
Condition:Header match  me@gmail.com
AND Recipient match  me@gmail.com

I'm not sure if this makes sense. If the recipient matches, then the header matches as well (the recipient is part of the header).

Also, I think that you should use "Contains" instead of "Matches". If I remember correctly, "Contains" does a local search on your own system but "Matches" makes the mail server perform a search, which is much slower.

Quote
Triggers on Google Calendar notifications.
Triggers on emails from certain senders.

Anyone who have a solution to this?

I would change the second condition into something like "AND sender DOES NOT CONTAIN me@gmail.com" so that the filter won't be triggered if the sender is someone other than me.
I volunteer as a moderator to help keep the forum tidy. I do not work for Ritlabs SRL.
 
Many thanks Daniel, I will test your suggestion and come back with the result.
 
Unfortunately this doest work. (I'm using POP3, sorry for not mentioning that).

Problem is:
I use Gmail recent mode. This makes it possible to use Bat while alternating between a desktop at home and a laptop when out travelling.
In recent mode several clients can collect email sent within the last 30 days. (In normal mode only the first client gets it)

But when I send a mail, a coupe of seconds later, I get a copy in return. Ending up with duplicates in The Bat. I want to set up a filter that catches these copies, mark them as read, and send them to Trash.

Her is an example:

First the outgoing mail:

Date: Thu, 10 Jul 2025 11:15:41 +0200
From: <me@gmail.com>
Reply-To: <me@gmail.com>
Message-ID: <3992156.20250410111541@gmail.com>
To: recipient@gmail.com
Subject: test
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Then, after a few seconds Gmail returns this:


Return-Path: <me@gmail.com>
Received: from computerid ([145.1.124.65])
       by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-32fab8bd4a8sd2140841fa.65.2025.07.10.02.15.41
       for <recipient>
       (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
       Thu, 10 Jul 2025 02:15:41 -0700 (PDT)
Date: Thu, 10 Jul 2025 11:15:41 +0200
From: <me@gmail.com>
Reply-To: <me@gmail.com>
Message-ID: <3992156.20250710111541@gmail.com>
To: recipient@gmail.com
Subject: test
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Seems that it might be possible to filter on "Return-Path: <me@gmail.com>", but there are no "Return-Path" option in the filter setup.
 
Quote
bat99 wrote:
I use Gmail recent mode. This makes it possible to use Bat while alternating between a desktop at home and a laptop when out travelling.In recent mode several clients can collect email sent within the last 30 days. (In normal mode only the first client gets it)

I don't use GMail through POP3, but this alternative approach could be possible:

1. Before traveling, in TB on your laptop (and maybe desktop) go to Account -> Properties -> Mail Management and sel ect Leave messages on server.
2. Turn off recent mode in GMail.

In addition, when you want to receive messages you can control what is done to the messages on the server using Account -> Dispatch Mail On Server. A Connection Center window will pop up where you can select which messages to receive, mark as read, and/or delete fr om the server. (Bear in mind, this feature may be partially broken in newer versions of TB, but works for my meager needs.)
 
>> Account -> Dispatch Mail On Server.
It broken on last versions, yep
Модератор. Не являюсь сотрудником RitLabs (I'm not an employee of Ritlabs).
https://belrus.biz/vendors/ritlabs.html — Официальный дистрибьютор The Bat! в России
Pages: 1