I have been using Thunderbird a number of years for sending mail through one SMTP server and receiving mail from several IMAP/POP addresses. I would now like to get rid of Thunderbird. I have tried several other Email clients and liked none of them. I want to write my own bash script or simple language utility to handle the task. My objective is to:-
Compose messages in a text-only environment (joe, nano, etc.).
Attach files of graphic images, HTML’s, PDF’s, etc.
Send them through one SMTP server using locally stored addresses with a different, single “reply-to” address.
Check for received messages and attachments from all IMAP/POP addresses.
Remove all non-text data from the body of the messages and read them.
Save received messages and attachments on my local computer.
Delete messages from their respective servers.
Would someone be kind enough to recommend some reliable Linux utilities that I can use? Thanks in advance.
On 05/28/2013 09:36 AM, ionmich wrote:
> reliable Linux
> utilities
i suppose Pine <http://en.wikipedia.org/wiki/Pine_(email_client)>
will do all you ask, except require you to stitch together a string
of individual bits and pieces (text editor, mail fetch, mail send,
mail viewer, mail db maker, db sorter, etc etc etc)
the version for your openSUSE is in the normal oss repo, just use
YaST and search on pine (or alpine)…or in a root terminal, a simple
On 2013-05-28, ionmich <ionmich@no-mx.forums.opensuse.org> wrote:
> My objective is to:-
<SNIP>
> I have tried several other
> Email clients and liked none of them.
Does that include mutt? Of course there’s nothing to prevent you completely reinventing the wheel, but the list of
objectives you’ve stated are trivial for mutt.
I recommend “nmh” for managing the mail. It use one mail message per file, with a directory for a mail folder. This makes for easy access to messages by shell scripts. It does include a program “packf” to put a bunch of messages into a traditional mailbox file. It is buggy, not well maintained, but it mostly works.
For receiving mail (POP3, IMAP), “fetchmail” is the tool for the job. It works very well. A simple configuration file “$HOME/.fetchmailrc” defines the mailboxes and access passwords.
On 2013-05-28 09:36, ionmich wrote:
>
> I have been using Thunderbird a number of years for sending mail through
> one SMTP server and receiving mail from several IMAP/POP addresses. I
> would now like to get rid of Thunderbird. I have tried several other
> Email clients and liked none of them. I want to write my own bash script
> or simple language utility to handle the task. My objective is to:-
>
> 1. Compose messages in a text-only environment (joe, nano, etc.).
> 2. Attach files of graphic images, HTML’s, PDF’s, etc.
> 3. Send them through one SMTP server using locally stored addresses
> with a different, single “reply-to” address.
> 4. Check for received messages and attachments from all IMAP/POP
> addresses.
> 5. Remove all non-text data from the body of the messages and read
> them.
> 6. Save received messages and attachments on my local computer.
> 7. Delete messages from their respective servers.
>
> Would someone be kind enough to recommend some reliable Linux
> utilities that I can use? Thanks in advance.
You can use Pine (Alpine is the current name) or mutt, both are text
mail clients. Both have options to use some of the facilities from a script.
However, to send email from a script it is easier to use instead “mail”,
which is in fact “mailx”, not the classical unix/linux “mail” command;
although it has the same syntax, with additions. It is designed to be
used from the command line or from a script, but it can also open emails
and use and editor - I have not tried this last feature.
To fetch email from pop/imap server the tool is “fetchmail”, another
classical.
To remove attachments automatically, dunno. Manually, yes, Alpine can do
that. Perhaps have a look at procmail and formail. But this is done after the email is retrieved from the server; to do it before, you
need shell access to the mail server, probably.
–
Cheers / Saludos,
Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)
Thanks to all of you. I read a bit on pine/alpine and mutt but decided to play with fetchmail for a while. After some frustrating failures I have made some progress at receiving messages and think I will continue with it and mailx. I enjoy writing code and have lots of time on my hands.
Could you please advise me as to whom, where, how I should report a problem with the software.opensuse.org: Download openSUSE 12.3 page? If it is accessed without Java script enabled the links to the Live KDE, Rescue, Network and openSUSE Derivatives versions do not show and newcomers might get confused and move on.
On 05/31/2013 01:36 PM, ionmich wrote:
> accessed without
> Java script enabled the links to the Live KDE, Rescue, Network and
> openSUSE Derivatives versions do not show and newcomers might get
> confused and move on.
maybe anyone who gets confused should be allowed to move on??
or maybe the page should test for javascript and throw up a blinking
“javascript required for this page”… i don’t know which of those
would be best…
Blinking was one of the attributes available on the original monochrome display of the IBM PC, if I
recall correctly. Bold (aka highlight), underline, and blink were the available attributes. I don’t
have one to check. I think there was a choice to change blink into some other thing.
–
Cheers / Saludos,
Carlos E. R.
(from oS 12.3 “Dartmouth” GM (rescate 1))
dd wrote:
> On 05/31/2013 01:36 PM, ionmich wrote:
>> accessed without
>> Java script enabled the links to the Live KDE, Rescue, Network and
>> openSUSE Derivatives versions do not show and newcomers might get
>> confused and move on.
>
> maybe anyone who gets confused should be allowed to move on??
>
> or maybe the page should test for javascript and throw up a blinking
> “javascript required for this page”… i don’t know which of those would
> be best…
>
> but i you can report the problem to admin@opensuse.org
Actually, I’m with ionmich.
(1) Javascript is potentially dangerous (i.e. has repeatedly suffered
bugs that can lead to privilege escalation and other exploits, and
there’s no reason to expect that it won’t do so again), so it’s only
sane to browse with javascript disabled by default.
(2) It is not necessary to use javascript for navigation. Links on pages
can be made to work without javascript. (there are legitimate uses for
javascript, but they require that the user trust the web server).
Trusting the web server should not be a requirement to merely browse a page.
So (3) pages should not use javascript for navigation, and any that do
indicate either an ignorance of internet security, or a deliberate
flouting of it, or careless programming.
Hence the opensuse sites should be fixed so they do not use javascript
in this way, IMHO.
dd wrote:
> On 06/03/2013 12:52 PM, Dave Howorth wrote:
>> Hence the opensuse sites should be fixed so they do not use javascript
>> in this way, IMHO.
>
> that all sounds valid to me…but, i use NoScript and then enable the
> sites i trust…
But if you agree, so you think “(3) pages should not use javascript for
navigation, and any that do indicate either an ignorance of internet
security, or a deliberate flouting of it, or careless programming” then
the logical consequence is that you don’t trust the author of any page
that does use it, so you’d be a fool to trust that site …
On 06/03/2013 03:39 PM, Dave Howorth wrote:
> >
> But if you agree, so you think “(3) pages should not use javascript for
> navigation, and any that do indicate either an ignorance of internet
> security, or a deliberate flouting of it, or careless programming” then
> the logical consequence is that you don’t trust the author of any page
> that does use it, so you’d be a fool to trust that site …
i have been a fool before, and probably will again…
on the other hand, if you wish to impact the problem you address i
guess you know that this forum sub-section is an inconsequential
venue for that…
i’d guess to do more than just talk a good story you would need to
write a bugzilla against each wiki/download/blog page which uses
javascript… (or maybe just one bug against all of opensuse.org would
be precise enough…i do not know)
and, please return the bug URL(s)/number(s) to this thread so we may
all audit the discussion and/or progress of the fixes…