PEM's stuff

Sorry to bother again but I have a question in the mail.plx

I have the ~/.secret_pop3 with

server xxxxx
login xxxxx
passwd xxxxx

and when I run it on command line all I get is this

account!

The stamp icon shows up just the plain one but no numbers as to how many messages I have?

Thanks so much.

You donā€™t bother buddy. This site is done for this purpose :slight_smile:

The script in charge to get these info is ~/.fvwm/script/mail.plx. You can call it on the command line and its content is:

[code]#!/usr/bin/perl
use strict;
use Net::POP3;
use Env qw(HOME);
open(POP3FILE, $HOME . ā€œ/.secret_pop3ā€) or print ā€œfile!ā€ and exit;
my $var; my $varVal; my %allVar;
while () {
chomp;
($var,$varVal) = split(/ /);
$allVar{$var} = $varVal;
}
my $pop = Net::POP3->new($allVar{server}, Timeout=>5) or print ā€œnet!ā€ and exit;
$pop->apop($allVar{login}, $allVar{passwd}) or print ā€œaccount!ā€ and exit;
my ($undeleted) = $pop->popstat;

print $undeleted;
$pop->quit[/code]
From line 5 to 11, it simply parses the info in you ~/.secret_pop3 file.
At line 12, it opens a socket on the POP3 server with the info it has parsed as ā€˜serverā€™ and exit in case of error. This displays net!.
At line 13, it provides the POP3 server with the info it has parsed as ā€˜loginā€™ and ā€˜passwdā€™ and exit in case of error. This displays account!.
If there was no error, the remaining part gets stats on the server and print out the number of undeleted mail available on the server.

So, your issue should be in the ā€˜loginā€™ or ā€˜passwdā€™ declaration that your declared POP3 server did not understand.

I have checked to login and password and they are what I use to login in to my comcast account?

Are you sure itā€™s a POP3 server and not a POP3 SSL server? Because this script only handle regular (and old) POP3 server. :frowning:

There are still some possibility to handle POP3 SSL (Ultradabios was also looking for something like that) but itā€™s not bases on the old but very widespread libnet module. Here is a link on how to proceed with another PERL module called : Mail::POP3Client :wink:

First off how can I tell if it uses SSL

Secondly what clients donā€™t like gmail, yahoo, etc. any thing like that?

I only assume that it uses SSL because the script works quite well on the POP3 server Iā€™m connected to. Beside, itā€™s an old module (still maintain) and I think we can rely on it. IMHO, having an error while logging seems a normal bahaviour because the login and the password are transmitted ciphered by the SSL socket at authentication timeā€¦ though here, Iā€™m not an expert. :confused: To be sure of it, check the web of your ISP, they generally provides this kind of details.

Well, Iā€™m not sure to have uderstood you. My ISP provides me with 3 kind of access: a POP3, an IMAP4 and webmail (you are citing webmails, I think). POP3 is really easy to parse and does not require exotic module. Thatā€™s the reason of my little script. To read my mail or to send some, I rely on BALSA a lightweight and fast IMAP4 client. Webmail can be parsed but itā€™s not really natural and each ISP provides its interface. It can be done (using libwww for instance) but it will only be useful for you. Iā€™ve seen PERL modules that were able to parse some: seems too tricky for me.

Donā€™t know if that answer your questionā€¦

I donā€™t think comcast uses SSL from what I can find but this is in my xsession-errors if this helps?

sh: /mail.plx: No such file or directory sh: line 0: exec: /mail.plx: cannot execute: No such file or directory

Allright, it seems more an access problem to me. Did you check the script by calling it directly on the command line? You could also have a look at the execution right.

Just wanted to say thanks for all the help :smiley: and show you what I came up with so far from your config (1024x768)

http://home.comcast.net/~dyhedrol/08102005-1.png

Thanks again great work on the config. I still have a few things to work out like the mail, volume icons changing, the wifi deal, and for some reason I used the same fvwmanimate settings as you and it was working but now it only animates when I de-iconify, so when I iconify no animation. Oh well

Hey all! I have the theme loaded, amd I can see the dockbar and whatnot, but everything is black or some other dark color.

Pem: How can I get it to have the colors you have?

Thanks in advance,
mw007

That reminds a post from swim that you can found: here. I guess the answers that follow should lead you on the right track.

One thing though that I havenā€™t mention already, this configuration comes along with 2 themes,. By default, the theme is set on Smokey, which relies a lot on transparencies, thus requiring a wallpaper properly set to show itā€™s true shape. You can easily switch from one theme to the other by modifying the fvwm_theme environment variable in the main configuration file ~/.fvwm/config.

Should I leave the config file named ā€˜configā€™ under the ~/.fvwm directory or should I rename it to .fvwm2rc? Iā€™ll be looking at that thread as well

Leave it as ā€˜configā€™. Recent 2.5.X versions of FVWM look for that file first of all.

ā€“ Thomas Adam

there r more and more mailing systems have turn to IMAP, and I just change a little bit of the mail.plx at pemā€™s conf at .fvwm/script

below is the source , additionally , u need save the IMAP profile in ~/.IMAP_PROFILE , the format is no diff from pemā€™s ~/.secret_pop3 ,
Iā€™ve use Inbox folder, it should comply with ur own mail account;

BTW pem Dont u think it is better to let the dock in ur conf autohide?
Iā€™ve done that ā€¦

thanks for all the efforts pem has made.

sorry almost forget, u 'll need also have the package libnet-imap-simple-perl, (ahhhā€¦, it seems to be this name, can be checked online:>)
I apt-get it under debian , a web shows that this package is availiable on all the mirrors of **.debian.org around eu .

#!/usr/bin/perl
use strict;
use Net::IMAP::Simple;
use Env qw(HOME);
open(IMAPFILE, $HOME . "/.IMAP_PROFILE") or print "file!" and exit;
my $var; my $varVal; my %allVar;
while (<IMAPFILE>) {
    chomp;
    ($var,$varVal) = split(/ /);
    $allVar{$var} = $varVal;
}
my $server = new Net::IMAP::Simple($allVar{server}) or print "net1!" and exit;
$server->login($allVar{login}, $allVar{passwd}) or print "account!" and exit;
my ($undeleted) = $server->select('Inbox');
print $undeleted;
$server->quit();

Thanks charlottechurch 8)

For those that donā€™t run Debian you can found the archive under the CPAN!

Again Pem pls

the close button does not work properly (this happens while the window is maximized), I mean the 3 fotos (-)(o)(x) of titlebar, the (x) is not shown ,instead, only a complete black rectangle like (-)(o)#. make sense??

well, the failure only occurs in smokey. any idea?

merci [/img]

:confused: Well, I get your point. Unfortunately, Iā€™m really dry on it :frowning:
If somebody has any idea on this issue, I would really appreciate. Hereā€™s the incriminated window decoration:

[code]Style * Button 1, Button 2, Button 4, Button 6, GrabFocusOff
Style * Colorset 0, HilightColorset 1
Style * Borderwidth 0, HandleWidth 5
Style * BorderColorset 0, HilightBorderColorset 1
Style * Font ā€œShadow=1 C:xft:Blippo:pixelsize=16ā€

DestroyDecor Default
AddToDecor Default

  • BorderStyle Inactive Colorset 0 ā€“ flat

  • BorderStyle Active Colorset 1 ā€“ flat

  • BorderStyle ā€“ NoInset HiddenHandles

  • TitleStyle Centered Height 28 ā€“ flat

  • TitleStyle Inactive Colorset 0 ā€“ flat

  • TitleStyle Active Colorset 1 ā€“ flat

  • ButtonStyle Reset

  • ButtonStyle All Active (Colorset 1 ā€“ flat) Inactive (Colorset 0 ā€“ flat)

  • AddButtonStyle 1 Active Pixmap $[fvwm_theme_img]/tb_leftend.png ā€“ flat

  • AddButtonStyle 1 MiniIcon

  • AddTitleStyle Active MultiPixmap Main TiledPixmap $[fvwm_theme_img]/tb_titlemain.png,
    RightEnd AdjustedPixmap $[fvwm_theme_img]/tb_titleright.png

  • AddTitleStyle Inactive MultiPixmap Main TiledPixmap $[fvwm_theme_img]/tb_titlemain.png,
    RightEnd AdjustedPixmap $[fvwm_theme_img]/tb_titleright.png

  • AddButtonStyle 6 Active Pixmap $[fvwm_theme_img]/tb_min.png ā€“ flat

  • AddButtonStyle 6 Inactive Pixmap $[fvwm_theme_img]/tb_min.png ā€“ flat

  • AddButtonStyle 4 Active Pixmap $[fvwm_theme_img]/tb_max.png ā€“ flat

  • AddButtonStyle 4 Inactive Pixmap $[fvwm_theme_img]/tb_max.png ā€“ flat

  • AddButtonStyle 2 Active Pixmap $[fvwm_theme_img]/tb_close.png ā€“ flat

  • AddButtonStyle 2 Inactive Pixmap $[fvwm_theme_img]/tb_close.png ā€“ flat[/code]

The button that does not itā€™s job is described by the latest 2 linesā€¦ Puzzling, puzzling, puzzlingā€¦

I 've communicated with some pleople who are using ur config ,they also got the same problemā€¦

Iā€™ll keep seeking the solutionā€¦

an other question ,if the menustyle option translucent and shape could work together on your laptop?

they are not on mine , when I using Translucent the shape seems being ignored

Transluency and shaping do not work together (at least on the 2.5.12). Only transparency and shaping are working. Thatā€™s why I only shape the root menu wich is set as transparent. The other menus are not shaped and set as tanslucent. This one was a bit tricky :wink:

Hi Mou,

Having xcompmgr working on your computer is certainly the hardest part: it hangs on mine if I put the accelerationā€™s ā€œonā€ :angry: .

Well, humm ā€¦ The transparency on my theme uses 2 things to work: you must have a backgound properly set and your Fvwm must contained the transparency patch.

For the first condition, there are many background setter out there. I use the one named Esetroot delivered with the Eterm package. This thing is fast enough, though some backgound setter based on Imlib2 should be better (one day I will perhaps take some time to do that ā€¦)

For the second condition, this post should lead you on the right track: http://fvwm.lair.be/viewtopic.php?p=2396#239.

Happy customizing :wink: