-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Never mark spam on restore #342
Comments
Yes, GYB sets this parameter: https://github.com/jay0lee/got-your-back/blob/main/gyb.py#L1971 so this shouldn't be happening. Can you provide sample messages or a sample backup that is showing this problem? |
I'm up to several thousand messages in spam, but thankfully I found a workaround that lets you mark more than 50 messages as "not spam" in the Gmail UI:
|
Each message in spam shows the same reason for being there:
So it doesn't seem like it would be a phishing filter thing (my old and new addresses are similar, which had me wondering). Here is a cleaned-up version of the commands I used: cd
bash <(curl -s -S -L https://git.io/gyb-install)
mkdir first@firstlast.ca
cd first@firstlast.ca/
~/bin/gyb/gyb --email first@firstlast.ca --action quota
~/bin/gyb/gyb --email first@firstlast.ca --action backup
mkdir firstlast.ca@gmail.com
cd firstlast.ca@gmail.com/
~/bin/gyb/gyb --email firstlast.ca@gmail.com --action create-project
~/bin/gyb/gyb --email firstlast.ca@gmail.com --action restore --local-folder ../first@firstlast.ca/GYB-GMail-Backup-first@firstlast.ca/ --label-restored "firstlast.ca" The messages going to spam are decidedly the "spammier" ones, it's almost exclusively newsletters and notification emails; so it does seem like the spam filter is somehow processing each inbound message despite being asked not to. |
Let me know if any of the information above helps. If not, after my restore finishes running, I can try reproducing the problem with a small backup that I'd be comfortable sharing. |
Ha... unaddressed report from 2018 complete with repro: https://issuetracker.google.com/issues/109956036 I added a comment (didn't mention |
I'm seeing this issue as well, backing up a Workspace account and restoring to a free Gmail account. I have a total of 53,001 messages in the backup, and on restore there was ~7,200 messages in the Spam folder. My workaround was to move all of those messages in Spam back to Inbox (by selecting, 100 messages at a time and clicking the Not Spam button in the Gmail UI). If you're going to do this, please ensure that you have 0 spam messages in the target Gmail account, otherwise you could end up moving genuine spam into your Inbox. |
I have this issue too 15000 msgs in spam. Mainly very old messages. Also many seem gotten the date set to the restore time instead of the original date it was sent. Most of the messages affected are from before 2000 but I also found one from 2003 |
--cleanup - ensure restored messages have a valid Message-ID, From and Date header. Should help with #342. --cleanup-date - on --cleanup, use provided date instead of current date when we can't get a valid date on the message at all. --cleanup-from - on --cleanup, use provided from header value when we can't get a valid value on the message at all.
I just released GYB 1.55 which adds a Can a few people do some testing and confirm it works for them? See the 1.55 release details for more info: |
Hm.. I thought if I emptied the spam folder and then did a restore it would restore all those messages again but it doesn't seem so. |
You need to tell GYB to try restoring all messages again with --noresume.
Jay
…On Wed, Jan 26, 2022, 5:26 PM Hans-Henrik Jensen ***@***.***> wrote:
Hm.. I though if I emptied that spam folder and then did a restore it
would restore all those messages again but it doesn't seem so.
What should I do ?
—
Reply to this email directly, view it on GitHub
<#342 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABDIZMGDTP7LIKVKEJQEOPDUYBYINANCNFSM5MOEUPLQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Hm it would be nice to be able to label the messages that were cleaned up though. I tried to use label-restored but it labels everything now. |
Traceback (most recent call last): |
Still got about 300 in spam of the 6000 restored before the exception |
I can no longer reproduce the issue with the sample from the issue tracker and --cleanup. Can you share examples of messages that went to Spam? |
I'd need to see the full headers as described at: |
Does it work to send the eml file ? |
Yes, that's fine. You can post it here or email it to me. |
Ok I sent an email. |
Oh by the way I saw that all the mails that had the now() date after restore seems to have a correct date in msg-db.sqlite so maybe that could be used for --cleanup |
Has anyone else tested with --cleanup to see if that helps?
…On Mon, Jan 31, 2022, 5:56 PM brechmos ***@***.***> wrote:
I am in the same boat (185,000 email to transfer though). I was watching
my Spam as the transfer was happening and saw some go in and then
automatically go out of Spam. I was nervous the "older than 30 days will be
deleted" thing was happening faster than I was moving them out of Spam.
I am redoing my restore but put this filter in place:
[image: image]
<https://user-images.githubusercontent.com/887675/151886623-b1de6315-e273-424e-bd08-ba16df4aefeb.png>
I have not seen anything to to Spam. When the restore is done I'll turn
off that filter.
I don't know enough about how quickly "older than 30 days" gets removed
from Spam, and makes a data hoarder nervous.
—
Reply to this email directly, view it on GitHub
<#342 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABDIZMG2Q44TIVYGJUXROYTUY4HTNANCNFSM5MOEUPLQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Did my EML files work fine for you?
man. 31. jan. 2022 23.59 skrev Jay Lee ***@***.***>:
… Has anyone else tested with --cleanup to see if that helps?
On Mon, Jan 31, 2022, 5:56 PM brechmos ***@***.***> wrote:
> I am in the same boat (185,000 email to transfer though). I was watching
> my Spam as the transfer was happening and saw some go in and then
> automatically go out of Spam. I was nervous the "older than 30 days will
be
> deleted" thing was happening faster than I was moving them out of Spam.
>
> I am redoing my restore but put this filter in place:
> [image: image]
> <
https://user-images.githubusercontent.com/887675/151886623-b1de6315-e273-424e-bd08-ba16df4aefeb.png
>
>
> I have not seen anything to to Spam. When the restore is done I'll turn
> off that filter.
>
> I don't know enough about how quickly "older than 30 days" gets removed
> from Spam, and makes a data hoarder nervous.
>
> —
> Reply to this email directly, view it on GitHub
> <
#342 (comment)
>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/ABDIZMG2Q44TIVYGJUXROYTUY4HTNANCNFSM5MOEUPLQ
>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#342 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACJV5MVQON6764JT5HET3YLUY4H4BANCNFSM5MOEUPLQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.Message ID:
***@***.***>
|
FWIW, I am also experiencing emails going into Spam (I have not yet tried |
Yes I did, and I can say: it doesn't work. My numbers on restoration:
I was restoring different accounts so absolute numbers are different but you can easily calculate the percentage, it's nearly the same, with cleanup even worse. |
I have been doing an import moving 69k emails from a workspace account to a personal gmail account. I used I have been running into this same issue.
This has been my experience as well. Lots of receipts, newsletters, etc. I put in the same filter @brechmos did and that has helped eliminate messages going to spam. The downside to this is new emails are going to "All Mail" but I can live with this for not sending email to spam during the restore. |
The issue tracker is for reporting product deficiencies. How do I questions should be posted to the discussion forum at https://groups.google.com/group/got-your-back. When in doubt, start at the discussion forum and return here only when instructed to do so.
Please confirm the following:
Full steps to reproduce the issue:
Expected outcome (what are you trying to do?): All messages restored with similar structure.
Actual outcome (what errors or bad behavior do you see instead?): Thousands of legitimate messages from the first account classified as spam in the second account.
Unfortunately Gmail won't let me bulk mark them all "not spam", either, so this is a whole lot of repetitive clicking to rectify.
I see the Gmail API has a
neverMarkSpam
option on some endpoints, but I can't tell if it's available on the endpoint you're using because I can't read Python. 🙃The text was updated successfully, but these errors were encountered: