Gmail.ps
Gmail.ps copied to clipboard
A PowerShell module for accessing your Gmail. Connect via IMAP and manipulate emails and labels.
If web login required exception occurs then try these two options: 1. Enable less secure apps at [https://myaccount.google.com/lesssecureapps](Lesssecureapps) 2. Unlock the captcha at [https://accounts.google.com/b/0/DisplayUnlockCaptcha](DisplayUnlockCaptcha) 3. Disable Two-step verification of gmail
I'm getting an error calling Move-Message: Exception calling "MoveMessage" with "2" argument(s): "NO [TRYCREATE] No folder All Mail (Failure)" Full Code: $gmail = New-GmailSession -Credential $Creds $inbox = $gmail |...
``` Import-Module ".\gmail.ps\Gmail.ps.psm1" Add-Type -Path '.\gmail.ps\AE.Net.Mail.dll' $userName = "[YOUREMAIL]" $password = "[YOURPASSWORD]" $nc = New-Object System.Net.NetworkCredential($userName, $password); $creds = new-object PSCredential($nc.UserName, (ConvertTo-SecureString $nc.Password -AsPlainText -Force)) Invoke-GmailSession -credential $creds -ScriptBlock {...
Have you seen this error? 
Is there any way to make sure that the attachment has been downloaded completely?
Maybe on the wrong place requested but I am new and dont now where to put it elswhere: I like to read automaticly only the content (money value in $123.45...
Corrected errors affecting in Get-Message (-On, -After, Read and Unread) See these issues for a description of the errors: [https://github.com/nikoblag/Gmail.ps/issues/14](url) and [https://github.com/nikoblag/Gmail.ps/issues/7](url)
**"Exception calling "Search" with "1" argument(s): "xm003 BAD Could not parse command" At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\Gmail.ps\Gmail.ps.psm1:344 char:5** **\+ $result = $Session.Search('(' + $criteria + ')');** **\+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~** **\+ CategoryInfo : NotSpecified: (:)...
I tried this on Powershell 2 and Powershell 4 on Windows Server 2008 and Windows 7 using different PCs. This is a sample code: $EmailUser = '[email protected]' $EmailUser2 = '[email protected]'...
Would it make sense to have sensible defaults of `$imap = @('SEEN','UNSEEN')` if no other parameters are specified (I assume this will return all messages)?. I can add a PR...