Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Download email with pop3 commands Post 302926351 by Akyloji on Sunday 23rd of November 2014 02:08:22 PM
Old 11-23-2014
Download email with pop3 commands

Hi!
i have bash script in witch I connect to my gmail account with
Code:
openssl s_client -connect pop.gmail.com:995

then using pop 3 command I view my emails (with retr ). But problem is I don't find sollution to how I can write output of command to a file when using retr. Command logsave doesn't work also as cmd > file. Maybe someone have some sugestions?

P.S. I'm connecting to my university sistem through putty and it seams it doesn't support logsave.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

pop3

hello dear friends I configured my dns in solaris 8 X86 pc and my sendmail, but i only can send email. i don't can receive email...... i saw inetd.conf and don't have the line of pop3. how can i add the line?and what the command? Thanks friends (8 Replies)
Discussion started by: themask
8 Replies

2. Linux

pop3

Hi Can anybody help me for configuring pop3 mail account i linux i m using linux enterprise 3. (1 Reply)
Discussion started by: naik_mit
1 Replies

3. IP Networking

fetchmail with pop3

once i used kmail (or sometimes outlook express) for my e-mail client. i had no problem with that. now being with unix console, i want to retrieve pop3 mails, using fetchmail. (where i can browse my mailbox(es) later) and it seems something i'm missing or do not understand. assuming my e-mail... (2 Replies)
Discussion started by: jaguar
2 Replies

4. UNIX for Dummies Questions & Answers

POP3 and AIX

Here is my situation: I have an old AIX box(AIX 4.3.3) that runs an application absolutely crucial to the company. I am trying to set up one of my client machines (Windows 2000, Outlook Express) as a POP3 client. I cannot get the download to occur, so I look up the error code that Outlook... (1 Reply)
Discussion started by: Jody
1 Replies

5. IP Networking

Pop3

Opensuse Postfix ispconfig I would like to limit pop3 connections to three areas. 1. local, like 192. something 2. top domain for my Internet connection, like 204. something. 3. top domain for one other, like 270. something. What would be the easiest/best way to do this?... (1 Reply)
Discussion started by: KillerDog
1 Replies

6. Shell Programming and Scripting

Send one email with output result from 2 commands

Hi, i want to create a script which should do the following: 1) ping the remote servers and email the hosts which are down 2) netstat on port x on 2 server and email the result too. I want both results to be sent in the same email. I have few ideas but i can't finish it. Here... (4 Replies)
Discussion started by: varu0612
4 Replies

7. Shell Programming and Scripting

Need to check POP3 email

Hey there! I have this problem: i'm in need to check the subject from e-mails from some generic account. This subjects are used as parameters for some program. The thing is, i can do the second, but not the first. I don't know how to handle POP3 accounts from shell. Is there an application that... (1 Reply)
Discussion started by: ghorkov
1 Replies

8. Shell Programming and Scripting

Check email and download attachment

Hi, I had search the web for a script to download email, but failed to found one. I need a bash or perl script that will check for email originating from an address such as john@rambo.com and download the .zip attachment into a specified folder. Anyone could assist or give me some... (1 Reply)
Discussion started by: mynullvoid
1 Replies

9. Shell Programming and Scripting

lftp script to connect to external sftp site and download to internal ftp and then send email

Hi there, I'm new to shell scripting and need some help if possible? I need to create a shell script (.sh) to run as a cron job on an ubuntu linux server to connect to an external sftp sites directory using credentials (which I have) and then download to our internal ftp server and then copy... (3 Replies)
Discussion started by: ghath
3 Replies

10. UNIX for Dummies Questions & Answers

Display Pie Chart/Bar Graph in microsoft outlook email using UNIX commands/Shell scripts

I have a shell script which executes to write html codes into a text file. My next step is to email the text file so that receiving person (people who i send email to) should be able to see pie/chart or bar graph (whatever i design in my code) in their email. Following is the example of a sample... (7 Replies)
Discussion started by: bikerboy
7 Replies
pop3(n) 						      Tcl POP3 Client Library							   pop3(n)

NAME
pop3 - Tcl client for POP3 email protocol SYNOPSIS
package require Tcl 8.2 package require pop3 ?1.5.1? ::pop3::open ?-msex 0|1? ?-retr-mode retr|list|slow? host username password ?port? ::pop3::status chan ::pop3::last chan ::pop3::retrieve chan startIndex ?endIndex? ::pop3::delete chan startIndex ?endIndex? ::pop3::list chan ?msg? ::pop3::top chan msg n ::pop3::uidl chan ?msg? ::pop3::close chan DESCRIPTION
The pop3 package provides a simple Tcl-only client library for the POP3 email protocol (RFC1939). It works by opening the standard POP3 socket on the server, transmitting the username and password, then providing a Tcl API to access the POP3 protocol commands. All server errors are returned as Tcl errors (thrown) which must be caught with the Tcl catch command. COMMANDS
::pop3::open ?-msex 0|1? ?-retr-mode retr|list|slow? host username password ?port? Open a socket connection to the server specified by host, transmit the username and password as login information to the server. The default port number is 110, which can be overridden using the optional port argument. The return value is a channel used by all of the other ::pop3 functions. The command recognizes the options -msex and -retr-mode. The first of them can be used to notify the package of the fact that the server to talk to is an MS Exchange server (which has some oddities we have to work around). The default is 0. The retrieval mode determines how exactly messages are read from the server. The allowed values are retr, list and slow. The default is retr. See ::pop3::retrieve for more information. ::pop3::status chan Query the server for the status of the mail spool. The status is returned as a list containing two elements, the first is the num- ber of email messages on the server and the second is the size (in octets, 8 byte blocks) of the entire mail spool. ::pop3::last chan Query the server for the last email message read from the spool. This value includes all messages read from all clients connecting to the login account. This command may not be supported by the email server, in which case the server may return 0 or an error. ::pop3::retrieve chan startIndex ?endIndex? Retrieve a range of messages from the server. If the endIndex is not specified, only one message will be retrieved. The return value is a list containing each message as a separate element. See the startIndex and endIndex descriptions below. The retrieval mode determines how exactly messages are read from the server. The mode retr assumes that the RETR command delivers the size of the message as part of the command status and uses this to read the message efficiently. In mode list RETR does not deliver the size, but the LIST command does and we use this to retrieve the message size before the actual retrieval, which can then be done efficiently. In the last mode, slow, the system is unable to obtain the size of the message to retrieve in any manner and falls back to reading the message from the server line by line. It should also be noted that the system checks upon the configured mode and falls back to the slower modes if the above assumptions are not true. ::pop3::delete chan startIndex ?endIndex? Delete a range of messages from the server. If the endIndex is not specified, only one message will be deleted. Note, the indices are not reordered on the server, so if you delete message 1, then the first message in the queue is message 2 (message index 1 is no longer valid). See the startIndex and endIndex descriptions below. startIndex The startIndex may be an index of a specific message starting with the index 1, or it have any of the following values: start This is a logical value for the first message in the spool, equivalent to the value 1. next The message immediately following the last message read, see ::pop3::last. end The most recent message in the spool (the end of the spool). This is useful to retrieve only the most recent message. endIndex The endIndex is an optional parameter and defaults to the value "-1", which indicates to only retrieve the one message speci- fied by startIndex. If specified, it may be an index of a specific message starting with the index "1", or it may have any of the following values: last The message is the last message read by a POP3 client, see ::pop3::last. end The most recent message in the spool (the end of the spool). ::pop3::list chan ?msg? Returns the scan listing of the mailbox. If parameter msg is given, then the listing only for that message is returned. ::pop3::top chan msg n Optional POP3 command, not all servers may support this. ::pop3::top retrieves headers of a message, specified by parameter msg, and number of n lines from the message body. ::pop3::uidl chan ?msg? Optional POP3 command, not all servers may support this. ::pop3::uidl returns the uid listing of the mailbox. If the parameter msg is specified, then the listing only for that message is returned. ::pop3::close chan Gracefully close the connect after sending a POP3 QUIT command down the socket. KEYWORDS
mail, email, pop, pop3, RFC1939 pop3 1.5.1 pop3(n)
All times are GMT -4. The time now is 07:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy