Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 883199
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T12:32:55+00:00 2026-05-15T12:32:55+00:00

The Problem: I’m looking for a way to create a program that visits an

  • 0

The Problem:

I’m looking for a way to create a program that visits an email host site and log in with a specific credentials and deletes all message at the Inbox and clears the Trash folder.

Background:

I have an email with my domain and that email is hosted on some ISP server. However I have enabled auto-forward all my emails to my gmail, the thing is that there is no option for auto deleting arriving messages so my inbox with its limited size (10MB) gets full and I stop receiving emails. My solution till today was to empty it manually when I remember to or when someone calls me and asks me why my inbox is full. The ISP said that in order to overcome this problem I should upgrade my qouta at their server for some extra $$ per month and Its a thing that I won’t do.

So I’m looking for a way to do this automatically. My impressions as beginner program is to write a script that does that and runs at every system start. My system would be Windows 7, so I thought to work it out with VBScript.

It would be my first experience with VBScript, so any suggestions would be welcomed. On the other hand if you think there is a better way to do that rather than VBScript tell me 🙂 I prefer to write a program that I fully understand, so my experience in programming would be: Pascal/C/C++/Java/C#/ML/Prolog/Squeak(smalltalk)/TCSH(CShell).

Thanks in advance,
Jalil

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T12:32:56+00:00Added an answer on May 15, 2026 at 12:32 pm

    Depends on what email server you use but if you have POP3 access all you really need to do is to connect to it with a TCP\IP connection and send some simple commands. So any language where you have a good library for making a simple connection should be fine.

    Below I show how you could do it just using telnet (be careful doing this over the internet though since it’s not using a secure connection):

    telnet [hostname] 110
    
    USER [username]
    PASS [password]
    LIST - gets you a list of all emails showing the msgindex and it's size    
    DELE [msgindex]    
    QUIT - the emails aren't deleted until you send QUIT!
    

    All you need to do is to create a connection and send those commands in that order (waiting for the response and checking if it was + or - to know if it went ok or not).

    Regarding language, if you do want to use a script language I’d consider Powershell since I think that supports the .Net framework classes and so would be really easy to do.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 434k
  • Answers 434k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Any dynamically added elements will be gone after any postback,… May 15, 2026 at 3:10 pm
  • Editorial Team
    Editorial Team added an answer The code at datatables.net should work on Ubuntu browsers. You… May 15, 2026 at 3:10 pm
  • Editorial Team
    Editorial Team added an answer The client side code is generated by RIA Services. To… May 15, 2026 at 3:10 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.