OESF Portables Forum
Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Sharp ROMs => Topic started by: DrWowe on December 11, 2005, 05:42:04 pm
-
I couldn't find any prebuilt versions of Pine with SSL support, so I just compiled Pine 4.64, the latest and greatest. Now I can finally use my Zaurus to read email on my S/IMAP server.
I can post the binary if anyone wants it. Also tell me if you want pico or the other utils that are part of the package.
I also tried the kmail program from Pi-Sync, but it choked on my inbox with over 10,000 messages. Pine handles it much better.
-
I'm using mutt at the moment with port forwarding as I've never had much luck with kopiemail but I would love to try pine so post away! Pico and pilot would also be nice. Thanks so much.
-
OK then.
-
Wow, fast reply, thanks
-
DrWowe,
Are you using sendmail? If so what version (links will be nice) and setup are you using.
Ensign.
I couldn't find any prebuilt versions of Pine with SSL support, so I just compiled Pine 4.64, the latest and greatest. Now I can finally use my Zaurus to read email on my S/IMAP server.
I can post the binary if anyone wants it. Also tell me if you want pico or the other utils that are part of the package.
I also tried the kmail program from Pi-Sync, but it choked on my inbox with over 10,000 messages. Pine handles it much better.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=106790\"][{POST_SNAPBACK}][/a][/div]
-
DrWowe,
Are you using sendmail?
No, I am not running amy mail daemons on my Zaurus.
-
Thanks for the quick response. I guess you do not require pop/smtp email
DrWowe,
Are you using sendmail?
No, I am not running amy mail daemons on my Zaurus.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=106875\"][{POST_SNAPBACK}][/a][/div]
-
Thanks for the quick response. I guess you do not require pop/smtp email
I use IMAP/S to read mail, and SMTP to send, but I connect to a remote SMTP server (it's a Pine configuration option)
-
Thanks for the quick response. I guess you do not require pop/smtp email
Using Maslovsky's excellent dev_image kit I've compiled procmail as well as fetchmail and msmtp (both with ssl support). I'm using the msmtp-enqueue and msmtp-runqueue scripts to use pine (thanks DrWowe) as an offline reader. Because my ISP doesn't allow smtp access from outside domains I'm using gmail's smtp server to send mail (it won't munge your From: header if you add the addresses as alternates through gmail's web interface). Anyhow, this setup runs more smoothly than I'm making it sound
Let me know if you would like me to post binaries for fetchmail and friends.
-
Let me know if you would like me to post binaries for fetchmail and friends.
[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=106932\")
The best is to create a complete IPK packages, so that they can be easily added to the feed.
A corresponding HOWTO is available here:
[a href=\"https://oesf.org/index.php?title=IPKG_Howto]https://oesf.org/index.php?title=IPKG_Howto[/url]
-
Let me know if you would like me to post binaries for fetchmail and friends.
[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=106932\")
The best is to create a complete IPK packages, so that they can be easily added to the feed.
A corresponding HOWTO is available here:
[a href=\"https://oesf.org/index.php?title=IPKG_Howto]https://oesf.org/index.php?title=IPKG_Howto[/url]
[div align=\"right\"][a href=\"index.php?act=findpost&pid=106937\"][{POST_SNAPBACK}][/a][/div]
Thanks for the link. I shall attempt to package a few things this weekend
-
Thanks DrWowe, sleepy, maslovsky, I shall await the ipk for fetchmail and friends.
Let me know if you would like me to post binaries for fetchmail and friends.
[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=106932\")
The best is to create a complete IPK packages, so that they can be easily added to the feed.
A corresponding HOWTO is available here:
[a href=\"https://oesf.org/index.php?title=IPKG_Howto]https://oesf.org/index.php?title=IPKG_Howto[/url]
[div align=\"right\"][a href=\"index.php?act=findpost&pid=106937\"][{POST_SNAPBACK}][/a][/div]
Thanks for the link. I shall attempt to package a few things this weekend
[div align=\"right\"][a href=\"index.php?act=findpost&pid=106946\"][{POST_SNAPBACK}][/a][/div]
-
Thanks DrWowe, sleepy, maslovsky, I shall await the ipk for fetchmail and friends.
Okay, here they are
Let me know if there any problems. [ You are not allowed to view attachments ] [ You are not allowed to view attachments ] [ You are not allowed to view attachments ] [ You are not allowed to view attachments ]
-
Thanks DrWowe, sleepy, maslovsky, I shall await the ipk for fetchmail and friends.
Okay, here they are
Oh, one other thing. The ipkg-build.sh script didn't work for me on cacko (complained that tar couldn't handle compression). Installing busybox didn't help either so I made some minor changes (piping the tar output to gzip and redirecting to a file in a few places) to get the script working on my Akita. So here is the modified script (gzipped because the site is not happy with shell scripts being uploaded):
[ You are not allowed to view attachments ]
-
Let me know if there any problems
[div align=\"right\"][a href=\"index.php?act=findpost&pid=107460\"][{POST_SNAPBACK}][/a][/div]
Sleepy
The ipks install ok, thanks. I can now go ahead to implement my mail setup.
-
[I'm using the msmtp-enqueue and msmtp-runqueue scripts to use pine (thanks DrWowe) as an offline reader. [div align=\"right\"][a href=\"index.php?act=findpost&pid=106932\"][{POST_SNAPBACK}][/a][/div]
Sleepy,
Do you use the msmtp-* scripts to "compose mails offline" or as an "offline mail reader" as you mentioned above?
After some very minor tweaking I am able to compose mail with pine, offline and send immediately if online (or later by running the msmtp-runqueue script manually).
I just wanted to be sure I am not missing the "offline mail reader" component of these scripts before I delve into the mail reading side of my mail setup.
Thanks
-
Added them to the feed, index will be updated shortly
-
[I'm using the msmtp-enqueue and msmtp-runqueue scripts to use pine (thanks DrWowe) as an offline reader. [div align=\"right\"][a href=\"index.php?act=findpost&pid=106932\"][{POST_SNAPBACK}][/a][/div]
Sleepy,
Do you use the msmtp-* scripts to "compose mails offline" or as an "offline mail reader" as you mentioned above?
After some very minor tweaking I am able to compose mail with pine, offline and send immediately if online (or later by running the msmtp-runqueue script manually).
I just wanted to be sure I am not missing the "offline mail reader" component of these scripts before I delve into the mail reading side of my mail setup.
Thanks
[div align=\"right\"][a href=\"index.php?act=findpost&pid=107569\"][{POST_SNAPBACK}][/a][/div]
Sorry, my bad. I've got pretty much the same setup as you from the sound of things.
Speaking of my bads, the fetchmail-6.2.5 package doesn't have SSL support, as revealed by a fetchmail -V, despite the configure script indicating that it would. So, I've packaged up the most recent fetchmail-6.3.1 with SSL (I promise) and NLS.
[ You are not allowed to view attachments ]
-
Thanks sleepy & DrWowe!
I've downloaded pine_4.64_SSL_SharpROM.tar.gz from here and unzipped it to get pico, pine, and pilot.
But where the heck do I put them for installation?
Also, are there separate config or rc files needed for pine? I had an awful time putting together my own msmtprc, fetchmailrc etc and would appreciate link(s) to suitable rc templates for pine if any are needed.
TIA,
sdjf
-
Hello All!
Figured out I could leave pico, pine and pilot on my SD card and put symlinks to the SD card from /home/QtPalmtop/bin. And, pine created it's own empty /home/root/.pinerc file.
However, can't get the commands requiring ^ to work with either my sl5500 hardware or on-screen keyboards, other than ^z, ^Z, ^c, ^C, ^x, ^X, ^V and ^v on the hardware keyboard.
Can that get fixed? What am I missing?
Thanks,
sdjf
-
so how would one set this up? script for getting and sending email(offline then sync when going "online"), then use mutt or pine to read it and write emails? I really hate the existing email gui type programs.
-
so how would one set this up? script for getting and sending email(offline then sync when going "online"), then use mutt or pine to read it and write emails? I really hate the existing email gui type programs.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=122612\"][{POST_SNAPBACK}][/a][/div]
I personally gave up trying to use pine because of the ergonomic issues (my thumb ain't big enough to hit the shift & control simultaneously, and pine doesn't recognize the shift key on the rt side of my keyboard).
But Bam, have you looked at the fetchmailrc file to see if there is a frequency or polling option you can set there?
Would trying leaving the console open all the time and letting fetchmail run as a background process work, assuming it has the polling interval set however you like it?
We also have an 'at' command instead of the 'cron' command, at least on ROM 2.38, which can be used to schedule jobs in advance, but I don't know how to get it to run from a script.
You mention looking for projects in your signature. Would a "How to Install & Configure Pine, Fetchmail, Procmail, and Msmtp for the Zaurus" suit your fancy?
As I recall, all the pieces create their own run control, *rc, files but a list of recommended configuration tweaks
for the Zaurus would be an asset for the community.
For someone with no experience with these, it's pretty hard to parse through all the documentation, and installation
shouldn't be the painful and complex time-consuming process that it has been for folks like me.
Cheers,
sdjf
-
so how would one set this up? script for getting and sending email(offline then sync when going "online"), then use mutt or pine to read it and write emails? I really hate the existing email gui type programs.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=122612\"][{POST_SNAPBACK}][/a][/div]
You got it right.
You run the OfflineIMAP script when you are on-line and it sync's what you have on your Z with your IMAP account, then you use an application (I know Mutt works, but not sure about Pine) that can read the mail to work with it. I set up sendmail (I think) so that I could send email from my Zaurus too.
I've just reflashed my Z so I'll be documenting all of this soon.
-
you've got sendmail?!?! I've been looking all over for an mtu. Where did you get it?
-
you've got sendmail?!?! I've been looking all over for an mtu. Where did you get it?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=122904\"][{POST_SNAPBACK}][/a][/div]
I don't recall.
But I have to find it again now that I've reflashed.
And that's why i'm going to start doumenting things. *wink*
Let me know if you find it.
-
well fetchmail works great, now I need to get procmail to work like it is supposed to...then off to figure out pine. And what is msmtp?
-
well fetchmail works great, now I need to get procmail to work like it is supposed to...then off to figure out pine. And what is msmtp?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=122951\"][{POST_SNAPBACK}][/a][/div]
That might have been what I used to send mail. Is it in a feed somewhere? I think I found what I used in a feed.
-
what is msmtp?
[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=122951\")
That might have been what I used to send mail. Is it in a feed somewhere? I think I found what I used in a feed.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=123092\"][{POST_SNAPBACK}][/a][/div]
msmtp was written as alternative for sendmail, for use with clients like mutt and pine. I read somewhere that the first 'm' in msmtp stands for mutt.
It's home page is at
[a href=\"http://msmtp.sourceforge.net]http://msmtp.sourceforge.net[/url]
and you can find a link to the zaurus-version on the first page of the current oesf thread.
sdjf
-
what is msmtp?
[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=122951\")
That might have been what I used to send mail. Is it in a feed somewhere? I think I found what I used in a feed.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=123092\"][{POST_SNAPBACK}][/a][/div]
msmtp was written as alternative for sendmail, for use with clients like mutt and pine. I read somewhere that the first 'm' in msmtp stands for mutt.
It's home page is at
[a href=\"http://msmtp.sourceforge.net]http://msmtp.sourceforge.net[/url]
and you can find a link to the zaurus-version on the first page of the current oesf thread.
sdjf
[div align=\"right\"][a href=\"index.php?act=findpost&pid=123141\"][{POST_SNAPBACK}][/a][/div]
I also use msmtp with its offline support scripts. It works very well.
THe only downside is (but that's problably always the case when using mutt with an offline smtp tool) that when you "sent" a message in mutt and it is sent to the offline queue, you cannot edit that message anymore within mutt before sending.
Mutt saves a copy of it in the sent folder (if you configure it to do so) but the actually sent message is somewhere else. Hence if you need to nedit before sending you need to edit a file in the outgoing queue AND the copy in mutt if you want the sent folder to reflect exactly what you have really sent.
daniel
-
finally got fetchmail, procmail and pine to work well together. now I need to get msmtp to work.
-
finally got fetchmail, procmail and pine to work well together. now I need to get msmtp to work.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=123270\"][{POST_SNAPBACK}][/a][/div]
It was a long time ago when i got this going so forgive me if i miss anything.
1. in your .pinerc you must have
.pinerc:sendmail-path=/home/QtPalmtop/bin/msmtp-enqueue.sh
2. I think i had to modify the msmtp scripts. here is my msmtp-enqueue.sh
#!/bin/sh
QUEUEDIR=$HOME/.msmtpqueue
# Set secure permissions on created directories and files
umask 077
# Change to queue directory (create it if necessary)
if [ ! -d "$QUEUEDIR" ]; then
mkdir -p "$QUEUEDIR" || exit 1
fi
cd "$QUEUEDIR" || exit 1
# Create new unique filenames of the form
# MAILFILE: ccyy-mm-dd-hh.mm.ss[-x].mail
# MSMTPFILE: ccyy-mm-dd-hh.mm.ss[-x].msmtp
# where x is a consecutive number only appended if you send more than one
# mail per second.
BASE="`date +%Y-%m-%d-%H.%M.%S`"
if [ -f "$BASE.mail" -o -f "$BASE.msmtp" ]; then
TMP="$BASE"
i=1
while [ -f "$TMP-$i.mail" -o -f "$TMP-$i.msmtp" ]; do
i=`expr $i + 1`
done
BASE="$BASE-$i"
fi
MAILFILE="$BASE.mail"
MSMTPFILE="$BASE.msmtp"
# Write command line to $MSMTPFILE
echo "$@" > "$MSMTPFILE" || exit 1
# Write the mail to $MAILFILE
cat > "$MAILFILE" || exit 1
# If we are online, run the queue immediately.
# Replace the test with something suitable for your site.
ping -c 1 www.google.com > /dev/null
if [ $? -eq 0 ]; then
msmtp-runqueue.sh > /dev/null &
fi
exit 0
3. Also here is my msmtp-runqueue.sh
QUEUEDIR="$HOME/.msmtpqueue"
LOCKFILE="$QUEUEDIR/.lock"
MAXWAIT=120
# wait for a lock that another instance has set
SECONDS=0
while [ -e "$LOCKFILE" -a "$SECONDS" -lt "$MAXWAIT" ]; do
sleep 1
SECONDS="`expr "$SECONDS" + 1`"
done
if [ -e "$LOCKFILE" ]; then
echo "Cannot use $QUEUEDIR: waited $MAXWAIT seconds for"
echo "lockfile $LOCKFILE to vanish, giving up."
echo "If you are sure that no other instance of this script is"
echo "running, then delete the lock file."
exit 1
fi
# change into $QUEUEDIR
cd "$QUEUEDIR" || exit 1
# check for empty queuedir
if [ "`echo *.mail`" = '*.mail' ]; then
echo "No mails in $QUEUEDIR"
exit 0
fi
# lock the $QUEUEDIR
touch "$LOCKFILE" || exit 1
# process all mails
for MAILFILE in *.mail; do
echo "*** Sending $MAILFILE..."
MSMTPFILE="`echo $MAILFILE | sed -e 's/mail/msmtp/'`"
if [ ! -f "$MSMTPFILE" ]; then
echo "No corresponding file $MSMTPFILE found"
echo "FAILURE"
continue
fi
msmtp -t `cat "$MSMTPFILE"` < "$MAILFILE"
if [ $? -eq 0 ]; then
rm "$MAILFILE" "$MSMTPFILE"
echo "$MAILFILE sent successfully"
else
echo "FAILURE"
fi
done
# remove the lock
rm -f "$LOCKFILE"
exit 0
4. Also my .msmtprc
defaults
logfile /mnt/card/temp/msmtp.log
account googlemail
host smtp.gmail.com
from @gmail.com
port 587
auth on
user
password
tls on
account default:googlemail
I had to use google because my isp would not allow me to send mails using their smtp server if i was not connected to their service. no good if you are on the road. you may have the same problem.
-
cool, thanks. as for getting my email, I have my own server so no worries there, except for my work which borks the data going out or in, not sure which one.