[tpm] downloading 'filtered' gmail via imap
fulko.hew at gmail.com
Wed Jan 23 09:35:33 PST 2013
On Wed, Jan 23, 2013 at 11:05 AM, Henry Baragar <
Henry.Baragar at instantiated.ca> wrote:
> Have you tried emptying the Trash before downloading? Its possible that
> it can be accomplished using the EXPUNGE IMAP command.
I wouldn't want to empty 'all' my trash (because I sort of use that as a
that I occasionally refer back to (if Gmail hasn't auto-purged it yet after
its 30 day limit)).
And, Gmail has removed the (easy) way to permanently delete stuff from
Ie. If you can find the specific mail, you can delete it, but if you
search in the
Trash for the ones you are interested in, they no longer provide a delete
(Others have complained about this already to Google... to no avail.)
So scrolling through 1700+ msgs in the Trash isn't practical, and their
mechanism is broken. So I'm looking for a (usable) alternative.
> On 13-01-23 10:27 AM, Fulko Hew wrote:
> I developed a simple utility that allows me to download
> some of my gmail into seperate files on my filesystem
> using Net::IMAP::Simple. I can select the 'mailbox'
> and download everything in it.
> The trouble is that when you $imap_sess->select($mailbox);
> in Gmail 'mailbox' ==' 'tag', so it actually selects all
> messages with that 'tag' instead. But deleted messages
> are not really 'moved' to another mailbox, or are marked
> (in IMAP terms) as 'deleted', they simply receive another
> tag called 'Trash'.
> if your messages have a tag on them, AND
> you delete them; they will also receive the tag 'Trash'.
> So when I select the mailbox (aka. tag) 'mybox',
> I will get all those messages, but all the 'deleted' ones
> (with the additional 'Trash' tag, also get selected
> because they have both tags: 'mybox' AND 'Trash'.
> Can anyone suggest a simple mechanism for 'mybox' and not 'Trash'?
> (I tried getting the UIDs, and performing a exclusionary
> masking process between the two sets, but the unique IDs
> I was seeing didn't seem overly unique.)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the toronto-pm