[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdepim-users
Subject:    Re: [kdepim-users] kmail command line options
From:       Johannes Niess <linux () johannes-niess ! de>
Date:       2004-07-15 7:10:27
Message-ID: 200407150910.43782.linux () johannes-niess ! de
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Donnerstag, 15. Juli 2004 04:20 schrieb Stuart Miller:
> I wish to send an e-mail once a day containing a file generated by a perl
> script I have written. I can generate the message with kmail -s .....  -msg
> .....  but then I end up in the composer window. How can I go the next step
> and have kmail actually send the message? Then I could get a simple shell
> script to generate the file and send it to me (and others) each morning.
>
> Alternate solution would be to generate the entire message with perl, then
> drop it somewhere that kmail can find it. Problem is, as I understand the
> docs, I would have to force kmail to regenerate the indexes, and I do not
> see a command line option to do this. Can I access the indexes with perl
> and modify them myself? There is also the issue of setting the mesage id
> correctly.
>
> Second problem is with kmail itself. I have configured it to check mail at
> intervals, which it does just fine. I have also set it to send queued mail
> on checkmail. It does this when I do a manual check mail, but does not do
> it on an automatic interval checkmail. Is there some odd configuration item
> I have missed?
>
> I have looked at some perl smtp scripts, but I am not yet experienced
> enough with perl to make those work.
>
> Thanks
>
> Stuart

Stuart,

Ages ago the unix veterans invented cron for tasks like this. That's the 
mechanism used for e. g. daily system maintainance. Just have your perl 
script print to standard out. Cron delivers output of the scripts it runs via 
the local mail transport agent right into your local mailbox. This requires 
setting up a "local" mail account in kmail. You would know if you don't have 
cron and a local mail transport agent. If you can progam in perl you also can 
understand "man crontab".

HTH,

Johannes Nieß
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFA9i3vZ86b9aw2E+0RAjmvAJ951tzm+xLN2UURrxSvm/jBSwYsJwCfVyWl
BBGT4sOIP6JaTsaewe8I1Jc=
=hDol
-----END PGP SIGNATURE-----
_______________________________________________
KDE PIM users mailing list
kdepim-users@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-users

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic