ptonev.com
November 19, 2017, 04:10:13 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: SMF - Just Installed!
 
  Home Help Search Login Register  
  Show Posts
Pages: 1 ... 4 5 [6] 7 8 9
76  Products and Projects / php Mail Notification / subject of email on: October 21, 2004, 12:54:51 am
Hi,

> The problem I am having now is the message send routine is only sending 32 characters no matter what.

I don't understand you.

> So if I have a few messages, I typically only get the first subject. :-(

Strange, I received all.

Example - this is a subject of text. Here is a 3 messages with long site:
Subject: 3 - Nepoznat GSM: SEC-SGHP510/1.0 UP.Browser/6.2.2.6 (GUI) MMP/1.0, Nevalidna zaiavka. Greshen WAP key: , Nevalidna zaiavka. Greshen WAP key:

best regards,
77  Products and Projects / Visibility Level Miranda Plugin / Strange... on: October 15, 2004, 01:15:05 am
Level is abstract conception.

Idea is:

1. First you must give every user a level. (from contact menu)
2. Second you can set the global level (your own level). (from main menu)
3. Then for all user that have level upper or eque from global you is visible.

I use customize text for level name:

; mTemplateMessage

[Visibility 1]
Unknown & Others
[Visibility 2]
Knowns
[Visibility 3]
Co-workers
[Visibility 4]
Friends
[Visibility 5]
VIPs
78  Products and Projects / Visibility Level Miranda Plugin / multiproto+awaysys on: October 11, 2004, 10:27:24 pm
Hi,

I posted question on Miranda IM forum about it.
I can make this, bot don't know who protocols support to make invisible/visible per user.

BG:
Kakva da e vruzkata s Advanced Auto Away plugin?
79  Products and Projects / Visibility Level Miranda Plugin / Strange... on: October 11, 2004, 07:20:48 pm
Hi,

For descriptions and more informations look at Plugin idea...

Best regards,
80  Products and Projects / Visibility Level Miranda Plugin / Plugin idea... on: October 11, 2004, 04:07:04 am
Hi,

Plugin idea is simple.

I want to have different level on visibility but don't want to change always visibility/invisibility on contact persone.

User can set visibility level per contact persone. Then can set gloabl visibility level and all user that have >= level is can view user.
81  Products and Projects / Birthday List Miranda Plugin / micqBirthday version 0.3.3.0 is released. on: October 09, 2004, 09:09:21 am
Fixed bug that shows age incorrect (decrease with 1) during birthday.
82  Products and Projects / php Mail Notification / subject of email on: October 07, 2004, 08:48:28 pm
Hummmm,

Now I test is and all work fine.

When I send 1 email I received this:

[1 - test 1], []
[N - xxx], []

where N is email count and xxx is subject.

Then I send 2 new email and received this:
[2 - test 2, test 3], []

all is ok for me...

check __mnotify_check_mail function:
Code:

function __mnotify_check_mail($host, $port, $user, $pass, $email_old)
{
$read_header = true;
$email_count = 0;
$email_first = 1;
$email_list  = "";

// open mailbox
$mbox = imap_open("{".$host.":".$port."/pop3/notls}INBOX", "$user", "$pass");

if($mbox === false)
{
return false;
}

// get emial count
$email_count = imap_num_msg($mbox);

// find & calc new emails
if($email_old == 0)
{
}
elseif($email_count > $email_old)
{
$email_first = $email_old + 1;
}
else if($email_count < $email_old)
{
}
else
{
$read_header = false;
}

if($read_header)
{
// get emails header
for ($i = $email_first; $i <= $email_count; $i++)
{
$header = imap_headerinfo($mbox, $i, 1024, 1024);
$fetchsubject = $header->fetchsubject;

$sep = (strlen($email_list) > 0)? ", ": "";
$email_list = $email_list.$sep.$fetchsubject;
}
}

// close mailbox
imap_close($mbox);

// return data
if($email_list != "")
{
return array($email_count, $email_list);
}
else
{
return $email_count;
}
}


best regards,
83  Products and Projects / php Mail Notification / subject of email on: October 06, 2004, 10:58:07 pm
Hi,

Open phpIMAPMailNotification.php file:

Code:
find in line 102:
$header = imap_headerinfo($mbox, $i, 80, 80);
$froms = $header->from;

replace with:
$header = imap_headerinfo($mbox, $i, 1024, 1024);
$fetchsubject = $header->fetchsubject;

find in line 105:
foreach($froms AS $from)
{
$sep = (strlen($email_list) > 0)? ", ": "";
$email_list = $email_list.$sep.$from->mailbox."@".$from->host;
}

replace with:
$sep = (strlen($email_list) > 0)? ", ": "";
$email_list = $email_list.$sep.$fetchsubject;


that is, try it.
84  Products and Projects / php Mail Notification / subject of email on: October 02, 2004, 07:30:10 pm
Hi,

really script have sometime problem with received on subjects.

You can try and IMAP-i version. It work really better.

Try it and if it work I will be say what you must fix that you read subject not email.
85  Products and Projects / php Mail Notification / subject of email on: September 30, 2004, 06:43:14 pm
Hi,

this is a very strange.

Now I tested it and all work fine. I received fine subject when I have one email.

You are sure that you not have a email with empty subject.

Best regards,
86  Products and Projects / php Mail Notification / subject of email on: September 28, 2004, 02:54:15 am
This is a very strange...

Can you post example or describe situation...
87  Products and Projects / php Mail Notification / subject of email on: September 25, 2004, 10:11:37 am
Hi, Patches.

Try this:

Code:
find in line 88:
$pos = strpos($v, "From:");

replace with :
$pos = strpos($v, "Subject:");


find in line 96:
return trim(substr($v, 5));

replace with :
return trim(substr($v, 8));


find in line 138:
$from = __mnotify_get_simple_email($from);

replace with :
// $from = __mnotify_get_simple_email($from);


I think that will be enough to solved you question.
88  Products and Projects / php Mail Notification / Must be doing something wrong on: September 24, 2004, 09:46:55 pm
Hi, Patches.

I am not Linux/Unix expert and con't comment your message.

best regards,
89  Products and Projects / php Mail Notification / subject of email on: September 24, 2004, 09:43:55 pm
Hi,

> Is there anyway to retrive the subject of each emails, and forward those on.

Yes have way, but must make change on script.

That version you use: socket or IMAP-i?

best regards
90  Products and Projects / Birthday List Miranda Plugin / вопрос on: September 23, 2004, 10:12:27 pm
Hi, Aleksey.

Miranda MI storeed birthday information as number, not as text.
I told about months, but this is a valid and for other part of birthday.

At you problems is other. If you told what don't show I will be try to help you.

Best regards,
Pages: 1 ... 4 5 [6] 7 8 9
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!