!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/laravel-crm/vendor/webklex/php-imap/tests/fixtures/   drwxrwxrwx
Free 13.14 GB of 57.97 GB (22.67%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     MailThatIsAttachmentTest.php (2.32 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/*
* File: MailThatIsAttachmentTest.php
* Category: -
* Author: M.Goldenbaum
* Created: 09.03.23 02:24
* Updated: -
*
* Description:
*  -
*/

namespace Tests\fixtures;

use 
Webklex\PHPIMAP\Attachment;

/**
 * Class MailThatIsAttachmentTest
 *
 * @package Tests\fixtures
 */
class MailThatIsAttachmentTest extends FixtureTestCase {

    
/**
     * Test the fixture mail_that_is_attachment.eml
     *
     * @return void
     */
    
public function testFixture() : void {
        
$message $this->getFixture("mail_that_is_attachment.eml");

        
self::assertEquals("Report domain: yyy.cz Submitter: google.com Report-ID: 2244696771454641389"$message->subject);
        
self::assertEquals("2244696771454641389@google.com"$message->message_id);
        
self::assertEquals("1.0"$message->mime_version);
        
self::assertFalse($message->hasTextBody());
        
self::assertFalse($message->hasHTMLBody());

        
self::assertEquals("2015-02-15 10:21:51"$message->date->first()->setTimezone('UTC')->format("Y-m-d H:i:s"));
        
self::assertEquals("xxx@yyy.cz"$message->to->first()->mail);
        
self::assertEquals("xxx@yyy.cz"$message->sender->first()->mail);

        
$from $message->from->first();
        
self::assertEquals("noreply-dmarc-support via xxx"$from->personal);
        
self::assertEquals("xxx"$from->mailbox);
        
self::assertEquals("yyy.cz"$from->host);
        
self::assertEquals("xxx@yyy.cz"$from->mail);
        
self::assertEquals("noreply-dmarc-support via xxx <xxx@yyy.cz>"$from->full);

        
self::assertCount(1$message->attachments());

        
$attachment $message->attachments()->first();
        
self::assertInstanceOf(Attachment::class, $attachment);
        
self::assertEquals("google.com!yyy.cz!1423872000!1423958399.zip"$attachment->name);
        
self::assertEquals('zip'$attachment->getExtension());
        
self::assertEquals('text'$attachment->type);
        
self::assertEquals("application/zip"$attachment->content_type);
        
self::assertEquals("c0d4f47b6fde124cea7460c3e509440d1a062705f550b0502b8ba0cbf621c97a"hash("sha256"$attachment->content));
        
self::assertEquals(1062$attachment->size);
        
self::assertEquals(0$attachment->part_number);
        
self::assertEquals("attachment"$attachment->disposition);
        
self::assertNotEmpty($attachment->id);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0051 ]--