public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Simple replacement for "getmail"?
@ 2020-07-22  5:02 Walter Dnes
  2020-07-22  7:27 ` Neil Bothwick
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Walter Dnes @ 2020-07-22  5:02 UTC (permalink / raw
  To: Gentoo Users List

  I've been using "getmail" for years to pull down email from multiple
popmail accounts and pass the emails to procmail for processing.  It's
being masked because of hard-coded python 2.7 dependancy.  "fetchmail"
looks promising.  The stable version net-mail/fetchmail-6.4.1 also
requires python 2.7 *IF THE "tk" FLAG IS SET*.

PYTHON_COMPAT=( python2_7 )
PYTHON_REQ_USE="tk"

  Version 6.4.6 says...

PYTHON_COMPAT=( python3_{6,7,8} )
PYTHON_REQ_USE="tk"

...and agin it seems to only be required if built with "tk" flag.  Once
fetchmail version 6.4.6 is marked stable, python should not be a problem,
and I don't expect to build with the "tk" flag anyways.

  Would "fetchmail" work as a drop-in replacement for getmail here?  Are
there any better, simpler solutions?

-- 
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] Simple replacement for "getmail"?
  2020-07-22  5:02 [gentoo-user] Simple replacement for "getmail"? Walter Dnes
@ 2020-07-22  7:27 ` Neil Bothwick
  2020-07-22 11:45   ` David M. Fellows
  2020-07-22 10:01 ` Matthias Hanft
  2020-07-22 10:27 ` [gentoo-user] " Thomas Mueller
  2 siblings, 1 reply; 7+ messages in thread
From: Neil Bothwick @ 2020-07-22  7:27 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 474 bytes --]

On Wed, 22 Jul 2020 01:02:43 -0400, Walter Dnes wrote:

>   Would "fetchmail" work as a drop-in replacement for getmail here?  Are
> there any better, simpler solutions?

I switched to getmail years ago because of frustrations with fetchmail.
At the moment I have getmail in my overlay and unmasked so I'm still
using it, but a comparable alternative would be welcome.


-- 
Neil Bothwick

The considered application of terror is also a form of communication.

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] Simple replacement for "getmail"?
  2020-07-22  5:02 [gentoo-user] Simple replacement for "getmail"? Walter Dnes
  2020-07-22  7:27 ` Neil Bothwick
@ 2020-07-22 10:01 ` Matthias Hanft
  2020-07-22 16:13   ` Stroller
  2020-07-23  6:32   ` Walter Dnes
  2020-07-22 10:27 ` [gentoo-user] " Thomas Mueller
  2 siblings, 2 replies; 7+ messages in thread
From: Matthias Hanft @ 2020-07-22 10:01 UTC (permalink / raw
  To: gentoo-user

Walter Dnes wrote:
> 
>   Would "fetchmail" work as a drop-in replacement for getmail here?  Are
> there any better, simpler solutions?

I don't know "getmail", but "fetchmail" runs here since 10 years
without any problems.  Just put a line like

poll securepop.t-online.de proto pop3
        user "mail@there", with password "pass@there", is "mail@here" here, ssl;

into /etc/fetchmailrc, adjust polling_period="300" in
/etc/conf.d/fetchmail, and that's it. (Of course, the usual
stuff like "/etc/init.d/fetchmail start" and "rc-update
add fetchmail default".)

-Matt


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [gentoo-user] Re: Simple replacement for "getmail"?
  2020-07-22  5:02 [gentoo-user] Simple replacement for "getmail"? Walter Dnes
  2020-07-22  7:27 ` Neil Bothwick
  2020-07-22 10:01 ` Matthias Hanft
@ 2020-07-22 10:27 ` Thomas Mueller
  2 siblings, 0 replies; 7+ messages in thread
From: Thomas Mueller @ 2020-07-22 10:27 UTC (permalink / raw
  To: gentoo-user

> Would "fetchmail" work as a drop-in replacement for getmail here?  Are
> there any better, simpler solutions?

> Walter Dnes <waltdnes@waltdnes.org>

I generally use mpop, and msmtp to send mail.

I suppose you could use mutt; I also have Steffen Nurpmeso's s-mailx on the back of my mind, having used nail when I was using Slackware.

What put me off Slackware was their package manager completely ignoring dependencies; I was spoiled by NetBSD pkgsrc and FreeBSD ports.

Tom



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] Simple replacement for "getmail"?
  2020-07-22  7:27 ` Neil Bothwick
@ 2020-07-22 11:45   ` David M. Fellows
  0 siblings, 0 replies; 7+ messages in thread
From: David M. Fellows @ 2020-07-22 11:45 UTC (permalink / raw
  To: gentoo-user, Neil Bothwick

>On Wed, 22 Jul 2020 01:02:43 -0400, Walter Dnes wrote:
>
>>   Would "fetchmail" work as a drop-in replacement for getmail here?  Are
>> there any better, simpler solutions?
>
>I switched to getmail years ago because of frustrations with fetchmail.
>At the moment I have getmail in my overlay and unmasked so I'm still
>using it, but a comparable alternative would be welcome.

getmail6 is a fork of getmail-5.14. The project is on github
https://github.com/getmail6

It is early days but it is currently working for me fetching from POP3,
POP3 with SSL, and IMAP with ssl.

My description of what I did to get it into my overlay is shown at
https://github.com/getmail6/getmail6/issues/7#issuecomment-661534001

The instructions in the README say how to install it in a directory of
your choice.

DaveF
>
>
>-- 
>Neil Bothwick
>
>The considered application of terror is also a form of communication.
>
>>> application/pgp-signature attachment


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] Simple replacement for "getmail"?
  2020-07-22 10:01 ` Matthias Hanft
@ 2020-07-22 16:13   ` Stroller
  2020-07-23  6:32   ` Walter Dnes
  1 sibling, 0 replies; 7+ messages in thread
From: Stroller @ 2020-07-22 16:13 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 187 bytes --]



> On 22 Jul 2020, at 12:01, Matthias Hanft <mh@hanft.de> wrote:
> 
> I don't know "getmail", but "fetchmail" runs here since 10 years
> without any problems.  Just put a line like

+1


[-- Attachment #2: Type: text/html, Size: 2354 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] Simple replacement for "getmail"?
  2020-07-22 10:01 ` Matthias Hanft
  2020-07-22 16:13   ` Stroller
@ 2020-07-23  6:32   ` Walter Dnes
  1 sibling, 0 replies; 7+ messages in thread
From: Walter Dnes @ 2020-07-23  6:32 UTC (permalink / raw
  To: gentoo-user

On Wed, Jul 22, 2020 at 12:01:02PM +0200, Matthias Hanft wrote
> Walter Dnes wrote:
> > 
> >   Would "fetchmail" work as a drop-in replacement for getmail here?  Are
> > there any better, simpler solutions?
> 
> I don't know "getmail", but "fetchmail" runs here since 10 years
> without any problems.  Just put a line like
> 
> poll securepop.t-online.de proto pop3
>         user "mail@there", with password "pass@there", is "mail@here" here, ssl;
> 
> into /etc/fetchmailrc, adjust polling_period="300" in
> /etc/conf.d/fetchmail, and that's it. (Of course, the usual
> stuff like "/etc/init.d/fetchmail start" and "rc-update
> add fetchmail default".)

  I'd prefer to launch  manually as required.  According to weboage
https://calomel.org/fetchmailrc.html I can set up $HOME/.fetchmailrc
I want to pull email from my local ISP and from 3 other (remote) servers.

Notes:
1) I want to run in "single-drop mode".
2) I do *NOT* want bouncing under any circumstances.
3) My procmail script (built up over the years) decides which local
inbox an individual email goes to.

Here's a first attempt at a ~/.fetchmailrc. I'll have to insert correct
names later...

========================================================================

set logfile fetchmail.log
poll inmail.myisp.com proto POP3
user "remote_username" pass "PASSWORD=" is "local_username" preconnect "date >> fetchmail.log"
#ssl
fetchall
no keep
no rewrite
mda "/usr/bin/procmail -f %F";

set logfile fetchmail.log
poll inmail.server2.com proto POP3
user "remote_username" pass "PASSWORD=" is "local_username" preconnect "date >> fetchmail.log"
ssl
fetchall
no keep
no rewrite
mda "/usr/bin/procmail -f %F";

set logfile fetchmail.log
poll inmail.server3.com proto POP3
user "remote_username" pass "PASSWORD=" is "local_username" preconnect "date >> fetchmail.log"
ssl
fetchall
no keep
no rewrite
mda "/usr/bin/procmail -f %F";

set logfile fetchmail.log
poll inmail.server4.com proto POP3
user "remote_username" pass "PASSWORD=" is "local_username" preconnect "date >> fetchmail.log"
ssl
fetchall
no keep
no rewrite
mda "/usr/bin/procmail -f %F";

========================================================================

-- 
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-07-23  6:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-22  5:02 [gentoo-user] Simple replacement for "getmail"? Walter Dnes
2020-07-22  7:27 ` Neil Bothwick
2020-07-22 11:45   ` David M. Fellows
2020-07-22 10:01 ` Matthias Hanft
2020-07-22 16:13   ` Stroller
2020-07-23  6:32   ` Walter Dnes
2020-07-22 10:27 ` [gentoo-user] " Thomas Mueller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox