Sponsored Content
Operating Systems Linux Ubuntu Is it possible to fetch my local email log to thunderbird Post 302514659 by jao_madn on Sunday 17th of April 2011 08:24:30 AM
Old 04-17-2011
Is it possible to fetch my local email log to thunderbird

Hi,

I wonder if it possible to read my local user mail log or root mail log in my ubuntu laptop using thunderbird mail client. Im using my the TB mail client for may email management and wonder if it possible to add it to my mail account in TB. You can read your mail log via command mail or mailx right. so i wonder if it possible. Also i had this mbox in my home dir and it contain the mail log in a text format and example below.


Code:
From users@users-linux Sun Apr 10 02:00:02 2011
Return-path: <users@users-linux>
Envelope-to: users@users-linux
Delivery-date: Sun, 10 Apr 2011 02:00:02 +0800
Received: from users by users-linux with local (Exim 4.71)
	(envelope-from <users@users-linux>)
	id 1Q8cS2-0000py-8v
	for users@users-linux; Sun, 10 Apr 2011 02:00:02 +0800
Date: Sun, 10 Apr 2011 02:00:02 +0800
Message-Id: <E1Q8cS2-0000py-8v@users-linux>
From: root@users-linux (Cron Daemon)
To: users@users-linux
Subject: Cron <users@users-linux> /home/users/myscripts/cronjob-script/getcompare-package-daily.csh 2>>/home/users/logfiles/cronjob/users-cronjob.log
Content-Type: text/plain; charset=ANSI_X3.4-1968
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/home/users>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=users>
Status: RO

 
 

From users@users-linux Wed Apr 13 02:00:43 2011
Return-path: <users@users-linux>
Envelope-to: users@users-linux
Delivery-date: Wed, 13 Apr 2011 02:00:43 +0800
Received: from users by users-linux with local (Exim 4.71)
	(envelope-from <users@users-linux>)
	id 1Q9ht1-0003yE-0f
	for users@users-linux; Wed, 13 Apr 2011 02:00:23 +0800
Date: Wed, 13 Apr 2011 02:00:23 +0800
Message-Id: <E1Q9ht1-0003yE-0f@users-linux>
From: root@users-linux (Cron Daemon)
To: users@users-linux
Subject: Cron <users@users-linux> /home/users/myscripts/cronjob-script/getcompare-package-daily.csh 2>>/home/users/logfiles/cronjob/users-cronjob.log
Content-Type: text/plain; charset=ANSI_X3.4-1968
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/home/users>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=users>
Status: RO

 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

where are my email log files

I am trying to find the email log file that would have info on users downloading their pop mail. Our email is hosted on a unix server running apache. I am not sure the exact version of mail software running, but when I telnet to the mail server the response I get is this "+OK POP3 v2003.83rh... (3 Replies)
Discussion started by: mstarcom
3 Replies

2. Shell Programming and Scripting

parsing email log

Can anyone give me some examples of how I can parse the following lines of text so that all characters up to and including the @ symbol are deleted? Also, any duplicates would need to be deleted in order to produce the desired output. Any help is much appreciated and explanations of any... (5 Replies)
Discussion started by: jjamd64
5 Replies

3. Shell Programming and Scripting

Print log to an email

Hi, I have wrote a script and i want to be able to output my variable MSG_DEST (which is a log) to an email. so basically log contains: hello John when i email recipient it says to xxxxxx from xxxxxx subject xxxxxx hello John What do I need to put in my... (3 Replies)
Discussion started by: Pablo_beezo
3 Replies

4. AIX

Do I need to configure my local windows to FTP files from local windows to a UNIX AIX server?

Hi Friends, I have this script for ftping files from AIX server to local windows xp. #!/bin/sh HOST='localsystem.net' USER='myid_onlocal' PASSWD='mypwd_onlocal' FILE='file.txt' ##This is a file on server(AIX) ftp -n $HOST <<END_SCRIPT quote USER $USER quote PASS $PASSWD put $FILE... (1 Reply)
Discussion started by: rajsharma
1 Replies

5. Shell Programming and Scripting

Fetch a value of particular parameter from a log

Fetch a value of particular parameter from a log. for exapmle, i have the below line in the log. now i would like to grep name and fetch only the values of name . here in this case i would like to take out only aps and prabhu. someone please help me on this. (5 Replies)
Discussion started by: apsprabhu
5 Replies

6. Shell Programming and Scripting

Capture all error message in Log file and send the Log file by email

Hi I have a requirement to write a script to capture all errors in a Logfile and send the file in email. If there is any error occurred the subject of email will be ERROR , If there are no error occurred the subject of email will be SUCCESS. So I created a Log file and put the Appropriate... (2 Replies)
Discussion started by: dgmm
2 Replies

7. Shell Programming and Scripting

make the name of file and fetch few things from log file

Hello All, I am working on a script where I need to fetch the value from a log file and log file creates with different name but few thing are common DEV_INFOMGT161_MULTI_PTC_BLD01.Stage_All_to_stp2perf1.042312114644.log STP_12_02_01_00_RC01.Stage_stp-domain_to_stp2perf2.042312041739.log ... (2 Replies)
Discussion started by: anuragpgtgerman
2 Replies

8. Shell Programming and Scripting

Email backup log

Hi, I have a server which appends to two different backup logs, a summary and a full log, I want to write a script which will email out this mornings backup, the problem is that in the log files the date is in the below format: Fri May 31,2013 02:30 the summary log file I can just use... (6 Replies)
Discussion started by: Bdoydie
6 Replies

9. Shell Programming and Scripting

Email with attachment from local machine through UNIX

Hello everyone, So, here is my requirement. I want to run an SQL query and export the result in an excel file and send that as an attachement in an email to the intended receipients. Please help me understand how to do that. How to connect to database, how to export the output in an excel... (3 Replies)
Discussion started by: Mohdrafi12
3 Replies
XDG-EMAIL(1)															      XDG-EMAIL(1)

NAME
xdg-email - command line tool for sending mail using the user's preferred e-mail composer SYNOPSIS
xdg-email [--utf8] [--cc address] [--bcc address] [--subject text] [--body text] [--attach file] [mailto-uri address(es)] xdg-email {--help --manual --version} DESCRIPTION
xdg-email opens the user's preferred e-mail composer in order to send a mail to address(es) or mailto-uri. RFC2368 defines mailto: URIs. xdg-email limits support to, cc, subject and body fields in mailto-uri, all other fields are silently ignored. address(es) must follow the syntax of RFC822. Multiple addresses may be provided as separate arguments. All information provided on the command line is used to prefill corresponding fields in the user's e-mail composer. The user will have the opportunity to change any of this information before actually sending the e-mail. xdg-email is for use inside a desktop session only. It is not recommended to use xdg-email as root. See http://portland.freedesktop.org/EmailConfig for information on how the user can change the e-mail composer that is used. OPTIONS
--utf8 Indicates that all command line options that follow are in utf8. Without this option, command line options are expected to be encoded according to locale. If the locale already specifies utf8 this option has no effect. This option does not affect mailto URIs that are passed on the command line. --cc address Specify a recipient to be copied on the e-mail. --bcc address Specify a recipient to be blindly copied on the e-mail. --subject text Specify a subject for the e-mail. --body text Specify a body for the e-mail. Since the user will be able to make changes before actually sending the e-mail, this can be used to provide the user with a template for the e-mail. text may contain linebreaks. --attach file Specify an attachment for the e-mail. file must point to an existing file. Some e-mail applications require the file to remain present after xdg-email returns. --help Show command synopsis. --manual Show this manualpage. --version Show the xdg-utils version information. ENVIRONMENT VARIABLES
xdg-email honours the following environment variables: XDG_UTILS_DEBUG_LEVEL Setting this environment variable to a non-zero numerical value makes xdg-email do more verbose reporting on stderr. Setting a higher value increases the verbosity. EXIT CODES
An exit code of 0 indicates success while a non-zero exit code indicates failure. The following failure codes can be returned: 1 Error in command line syntax. 2 One of the files passed on the command line did not exist. 3 A required tool could not be found. 4 The action failed. 5 No permission to read one of the files passed on the command line. CONFIGURATION
Visit http://portland.freedesktop.org/EmailConfig for information how to configure xdg-email to use the email client of your choice. EXAMPLES
xdg-email 'Jeremy White <jwhite@example.com>' xdg-email --attach /tmp/logo.png --subject 'Logo contest' --body 'Attached you find the logo for the contest.' 'jwhite@example.com' xdg-email --subject 'Your password is about to expire' 'jwhite@example.com' 'bastian@example.com' 'whipple@example.com' AUTHOR
Kevin Krammer, Jeremy White. <kevin.krammer@gmx.at> <jwhite@codeweavers.com> xdg-utils 1.0 06/24/2007 XDG-EMAIL(1)
All times are GMT -4. The time now is 07:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy