Optional bat-file commands:

Name

Description

Valid values

Default value

/copy

Copy e-mail to selected email-folder.

(If you are using gmail; the default behavior is move, i.e. gmail will copy and delete the e-mails)

<none> (No value given. False if omitted)

<none>

/copyfolder

Name of the e-mail folder to which the used messages should be copied

Name of copy folder

[gmail]/papperskorgen

/delete

Delete e-mail  

<none> (No value given. False if omitted)

<none>

/servername

Name of imap server

Valid server name

imap.gmail.com

/ip

Ip-address (optional)

A string that contains an IP address in dotted-quad notation for IPv4 and in colon-hexadecimal notation for IPv6

<none>

/ssl

If a Secure Socket Layer (SSL) connection should be used

<none> (No value given. False if omitted) Required for gmail.

<none>

/protocol

SSL protocol used

Default  

Specifies that either Secure Sockets Layer (SSL) 3.0 or Transport Layer Security (TLS) 1.0 are acceptable for secure communications

 

None     

No SSL protocol is specified.

 

Ssl2      

Specifies the SSL 2.0 protocol. SSL 2.0 has been superseded by the TLS protocol and is provided for backward compatibility only.

 

Ssl3      

Specifies the SSL 3.0 protocol. SSL 3.0 has been superseded by the TLS protocol and is provided for backward compatibility only.

 

Tls        

Specifies the TLS 1.0 security protocol. The TLS protocol is defined in IETF RFC 2246.

 

Tls11    

Specifies the TLS 1.1 security protocol. The TLS protocol is defined in IETF RFC 4346.

 

Tls12    

Specifies the TLS 1.2 security protocol. The TLS protocol is defined in IETF RFC 5246.

Default

/port

Port used for ssl

Valid port number

993

/searchparse

Unseed reads only new e-mails

All reads all e-mails

ALL, UNSEEN

ALL

/base64

The attachment is transfer-encoded in base64

<none> (No value given. False if omitted)

<none>

/unzip

The attachment is zipped and should be unzipped

<none> (No value given. False if omitted)

<none>

 

Good things to consider, written from a Gmail account:

      The program reads from the primary inbox

      Add mailsender to safe-list, to avoid Junk-mail filtering.

SNAGHTML439dead

      Activate IMAP inside Gmail-settings

      Allow less secure Apps to access the account and read the mails. https://myaccount.google.com/security

 

 

 

 

 

      Depending on the Fire wall settings, it might be needed to open Port 993 for IMAP-traffic on the server. (Check with your IT department)