Community Discussions and Support
Deleting emails from PM & Gmail

I'm running PM 4.91 on Windows 11. One of my email accounts is on Gmail. I have PM set to tell the server to delete each email after I download it. This doesn't seem to work, so I have to periodically log in to Gmail directly & spend time manually deleting hundreds or thousands of emails. Otherwise, my storage allocation gets filled up. How do I fix this?


Also, there seems to be 3 choices for having PM delete messages:


  1. Immediately - when I hit delete
  2. When I hit delete, put them in the Deleted Messages folder. Then delete them when the session ends.
  3. When I hit delete, put them in the Deleted Messages folder and leave them there until I manually delete them.

I like to keep deleted emails for some time, in case I need to look up an older message, so I have PM set to option #3. This causes the Deleted Messages folder to get really large, since I get a lot of emails. Is there a way to have PM clean the Deleted Messages folder each session by deleting messages that are more than a certain age, like 30 days, 3 months, 6 months?


I'm running PM 4.91 on Windows 11. One of my email accounts is on Gmail. I have PM set to tell the server to delete each email after I download it. This doesn't seem to work, so I have to periodically log in to Gmail directly & spend time manually deleting hundreds or thousands of emails. Otherwise, my storage allocation gets filled up. How do I fix this? Also, there seems to be 3 choices for having PM delete messages: 1. Immediately - when I hit delete 2. When I hit delete, put them in the Deleted Messages folder. Then delete them when the session ends. 3. When I hit delete, put them in the Deleted Messages folder and leave them there until I manually delete them. I like to keep deleted emails for some time, in case I need to look up an older message, so I have PM set to option #3. This causes the Deleted Messages folder to get really large, since I get a lot of emails. Is there a way to have PM clean the Deleted Messages folder each session by deleting messages that are more than a certain age, like 30 days, 3 months, 6 months?

One of my email accounts is on Gmail. I have PM set to tell the server to delete each email after I download it. This doesn't seem to work


I know. I have the same problem. It appears that Gmail does not respond to the command by Pegasus Mail to delete messages once they are downloaded. Some folks have talked about using an IMAP connection for cleanup purposes but that is something I have never done so I do not have an opinion about whether doing that is easier the using the Gmail web interface. I hope someone who is doing this will see this discussion and add their thoughts.


Is there a way to have PM clean the Deleted Messages folder each session by deleting messages that are more than a certain age, like 30 days, 3 months, 6 months?


There are filtering rules that can act on the age of a message so you should be able to create a general rule set that contains a filter rule that deletes messages older than whatever age you set, and then attach the rule set to the Deleted Messages folder. There is a catch though. A rule set can be attached to trigger when the folder is opened, or when the folder is closed. Normally the Deleted Messages folder is stagnant in that you almost never open it, so you almost never close it. As such, an attached filter rule would rarely be triggered.


There is a workaround that may or may not fit into how you use Pegasus Mail. The following describes how I use it on my Junk mail folder:


  • I created a general rule set containing rules that detects messages that I know I don't want as well as one that deletes messages older than 30 days.
  • I attached that rule set as a folder-close filter set.
  • I leave the Junk mail folder window open at all times.
  • I shut down Pegasus Mail every night. During shutdown, that folder-close filter gets triggered.

You could do similar with your Deleted Messages folder but your rule set would only need to contain a single rule that detects messages older than a specific age and deletes them.


Hint: When working with rules that delete messages I strongly suggest thorough testing with the rule first configured to change the message color. This makes it clear what messages the filter would act on before permanent deletes happen (filter rule deletes from the Deleted Messages folder are permanent deletes; there is no 'are you sure' prompt).


[quote="pid:58715, uid:28362"]One of my email accounts is on Gmail. I have PM set to tell the server to delete each email after I download it. This doesn't seem to work[/quote] I know. I have the same problem. It appears that Gmail does not respond to the command by Pegasus Mail to delete messages once they are downloaded. Some folks have talked about using an IMAP connection for cleanup purposes but that is something I have never done so I do not have an opinion about whether doing that is easier the using the Gmail web interface. I hope someone who is doing this will see this discussion and add their thoughts. [quote="pid:58715, uid:28362"]Is there a way to have PM clean the Deleted Messages folder each session by deleting messages that are more than a certain age, like 30 days, 3 months, 6 months?[/quote] There are filtering rules that can act on the age of a message so you should be able to create a general rule set that contains a filter rule that deletes messages older than whatever age you set, and then attach the rule set to the Deleted Messages folder. There is a catch though. A rule set can be attached to trigger when the folder is opened, or when the folder is closed. Normally the Deleted Messages folder is stagnant in that you almost never open it, so you almost never close it. As such, an attached filter rule would rarely be triggered. There is a workaround that may or may not fit into how you use Pegasus Mail. The following describes how I use it on my Junk mail folder: - I created a general rule set containing rules that detects messages that I know I don't want as well as one that deletes messages older than 30 days. - I attached that rule set as a folder-close filter set. - I leave the Junk mail folder window open at all times. - I shut down Pegasus Mail every night. During shutdown, that folder-close filter gets triggered. You could do similar with your Deleted Messages folder but your rule set would only need to contain a single rule that detects messages older than a specific age and deletes them. Hint: When working with rules that delete messages I strongly suggest thorough testing with the rule first configured to change the message color. This makes it clear what messages the filter would act on before permanent deletes happen (filter rule deletes from the Deleted Messages folder are permanent deletes; there is no 'are you sure' prompt).

I have my gmail set with option delete mail on server once it has been successfully downloaded.
Had check gmail recently, so logged in via browser to check. inbox shows 0 messages, only spam folder had 132. Check them, and all were real spam, so just deleted them completely.


Only time I've had files in gmail inbox is those that were new since last check, or if was downloading messages and for some reason the process did not end successfull. As I understand it, it flags messages to be delete as each message is downloaded, but only does so if the complete session ends successfully. If there is any failure, the server resets the delete options, and messages all remain in the inbox folder.


I have my gmail set with option delete mail on server once it has been successfully downloaded. Had check gmail recently, so logged in via browser to check. inbox shows 0 messages, only spam folder had 132. Check them, and all were real spam, so just deleted them completely. Only time I've had files in gmail inbox is those that were new since last check, or if was downloading messages and for some reason the process did not end successfull. As I understand it, it flags messages to be delete as each message is downloaded, but only does so if the complete session ends successfully. If there is any failure, the server resets the delete options, and messages all remain in the inbox folder.

mikes@guam.net

I have my gmail set with option delete mail on server once it has been successfully downloaded.
Had check gmail recently, so logged in via browser to check. inbox shows 0 messages, only spam folder had 132.


On POP3 delete requests, Gmail just moves the messages from the Inbox to its All Mail category, at least that is what it is doing for me, including server-side filters with the delete action.


Edit: Actually, I am not sure about the server-side filtering deletes. I see a number of messages in the All Mail category that I believe should have been deleted by a filter but would need to do some analysis to determine certainty.


[quote="pid:58718, uid:2546"]I have my gmail set with option delete mail on server once it has been successfully downloaded. Had check gmail recently, so logged in via browser to check. inbox shows 0 messages, only spam folder had 132.[/quote] On POP3 delete requests, Gmail just moves the messages from the Inbox to its All Mail category, at least that is what it is doing for me, including server-side filters with the delete action. Edit: Actually, I am not sure about the server-side filtering deletes. I see a number of messages in the All Mail category that I believe should have been deleted by a filter but would need to do some analysis to determine certainty.
edited 2 days ago at 12:34 pm

Interesting. Looking at my gmail see the All mail, but it shows nothing.
69a82b771efcd
But if I click on the All mail it shows it has 2420 messages?
Important also shows nothing, but has 16
Sent shows nothing, but has 39 inside
Spam shows 11 and has 11
Updates shows nothing, but has 942
Forums shows nothing, but has 566
Promotions shows nothing, but has 374


Just assumes since generally on inbox and spams have numbers, and all other listed nothing, that they would be empty?
Will have to see why it moved things to these folders. Don't recall ever telling gmail to do this?
Thanks for info.Sent folder probable understand, but will have to look at the others.


Interesting. Looking at my gmail see the All mail, but it shows nothing. ![69a82b771efcd](serve/attachment&path=69a82b771efcd) But if I click on the All mail it shows it has 2420 messages? Important also shows nothing, but has 16 Sent shows nothing, but has 39 inside Spam shows 11 and has 11 Updates shows nothing, but has 942 Forums shows nothing, but has 566 Promotions shows nothing, but has 374 Just assumes since generally on inbox and spams have numbers, and all other listed nothing, that they would be empty? Will have to see why it moved things to these folders. Don't recall ever telling gmail to do this? Thanks for info.Sent folder probable understand, but will have to look at the others.

mikes@guam.net

Will have to see why it moved things to these folders. Don't recall ever telling gmail to do this?


I you don't have to tell it, Google KNOWS what should be best for you so acts accordingly. I still haven't found a way to prevent it from creating copies of sent messages, two copies no less, one is a copy showing the recipient and another shows "me". The "me" copy gets placed in the inbox unless filtered. I use a filter that marks them as read which prevent them from being downloaded via POP3 but I still must delete them manually on the Gmail server when doing cleanup. I hate gmail but have had issues with every other email service I have tried so now work to get the best behavior I can out of Gmail, which they severely limit.


[quote="pid:58720, uid:2546"]Will have to see why it moved things to these folders. Don't recall ever telling gmail to do this?[/quote] I you don't have to tell it, Google KNOWS what should be best for you so acts accordingly. I still haven't found a way to prevent it from creating copies of sent messages, two copies no less, one is a copy showing the recipient and another shows "me". The "me" copy gets placed in the inbox unless filtered. I use a filter that marks them as read which prevent them from being downloaded via POP3 but I still must delete them manually on the Gmail server when doing cleanup. I hate gmail but have had issues with every other email service I have tried so now work to get the best behavior I can out of Gmail, which they severely limit.
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft